Skip to content

Commit

Permalink
fix CJS build, bump 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Aug 11, 2023
1 parent 86314b0 commit 95c3852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "re2js",
"version": "0.3.0",
"version": "0.3.1",
"description": "RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching",
"type": "module",
"keywords": [
Expand All @@ -20,13 +20,13 @@
"README.md",
"LICENSE"
],
"main": "build/index.cjs.js",
"main": "build/index.cjs.cjs",
"module": "build/index.esm.js",
"unpkg": "build/index.umd.js",
"exports": {
".": {
"import": "./build/index.esm.js",
"require": "./build/index.cjs.js"
"require": "./build/index.cjs.cjs"
}
},
"types": "build/index.esm.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const makeConfig = () => {
},
{
banner,
file: `${OUTPUT_DIR}/index.cjs.js`, // CommonJS
file: `${OUTPUT_DIR}/index.cjs.cjs`, // CommonJS
format: 'cjs',
exports: 'auto',
globals: GLOBALS,
Expand Down

0 comments on commit 95c3852

Please sign in to comment.