Skip to content

Commit

Permalink
Fix CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
aidant committed Apr 9, 2021
1 parent c6a33e6 commit 4e5cd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -5,7 +5,7 @@
"description": "A javascript library for working with Bezier curves",
"type": "module",
"exports": "./src/bezier.js",
"main": "./dist/bezier.common.js",
"main": "./dist/bezier.cjs",
"license": "MIT",
"bugs": {
"url": "https://github.com/Pomax/bezierjs/issues"
Expand All @@ -18,7 +18,7 @@
"funding": {
"type": "individual",
"url": "https://github.com/Pomax/bezierjs/blob/master/FUNDING.md"
},
},
"keywords": [
"bezier",
"curves"
Expand All @@ -29,7 +29,7 @@
"-----": "------------------------------------------",
"build:docs": "npm run rollup -- ./docs/js/bezier.js",
"build:dist": "npm run rollup -- ./dist/bezier.js",
"build:cjs": "babel --plugins @babel/plugin-transform-modules-commonjs dist/bezier.js --out-file dist/bezier.common.js",
"build:cjs": "babel --plugins @babel/plugin-transform-modules-commonjs dist/bezier.js --out-file dist/bezier.cjs",
"rollup": "rollup ./src/bezier.js --format esm --file ",
"lint:lib": "prettier ./src/**/*.js --write",
"lint:test": "prettier ./test/**/*.js --write",
Expand Down

0 comments on commit 4e5cd95

Please sign in to comment.