🔧 Removing dependencies from non-browser builds
This commit is contained in:
parent
ce3f77f623
commit
aa225a0cd2
1 changed files with 3 additions and 3 deletions
|
@ -27,9 +27,9 @@
|
|||
"pretty": "npx prettier --write 'src/*.js'",
|
||||
"lint": "eslint --fix 'src/*.js'",
|
||||
"browserbuild": "BABEL_ENV=develop rollup -c rollup.js -o dist/browser.js -f iife -n freesewing",
|
||||
"nodebuild": "BABEL_ENV=production rollup -c rollup.js -o dist/index.js -f cjs",
|
||||
"modulebuild": "BABEL_ENV=develop rollup -c rollup.js -o dist/index.mjs -f es",
|
||||
"testbuild": "BABEL_ENV=test rollup -c rollup.js -o tests/dist/index.js -f cjs",
|
||||
"nodebuild": "BABEL_ENV=production rollup -c rollup.js -o dist/index.js -f cjs -e bezier-js,bin-pack,hooks",
|
||||
"modulebuild": "BABEL_ENV=develop rollup -c rollup.js -o dist/index.mjs -f es -e bezier-js,bin-pack,hooks",
|
||||
"testbuild": "BABEL_ENV=test rollup -c rollup.js -o tests/dist/index.js -f cjs -e bezier-js,bin-pack,hooks",
|
||||
"build": "npm run clean && npm run browserbuild && npm run nodebuild && npm run modulebuild && npm run testbuild",
|
||||
"watch": "rollup -c rollup.js -o dist/index.js -f cjs --watch"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue