Skip to content

Commit

Permalink
Include cjs in release (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Jan 31, 2023
1 parent aac44ad commit e8b3456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "3.0.0-alpha.4",
"description": "Asciidoctor - the core library",
"main": "dist/node/asciidoctor.js",
"exports": {
".": {
"require": "./dist/node/asciidoctor.cjs",
"import": "./dist/node/asciidoctor.js"
}
},
"browser": "dist/browser/asciidoctor.js",
"module": "dist/browser/asciidoctor.js",
"type": "module",
Expand Down
1 change: 1 addition & 0 deletions packages/core/tasks/module/builder.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,6 @@ module.exports = class Builder {
for (const environment of this.environments) {
bfs.copySync(`build/asciidoctor-${environment}.js`, `dist/${environment}/asciidoctor.js`)
}
bfs.copySync('build/asciidoctor-node.cjs', 'dist/node/asciidoctor.cjs')
}
}

0 comments on commit e8b3456

Please sign in to comment.