Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 376dbae

Browse files
committed
fix: use rollup to bundle worker and main
1 parent 1d9db83 commit 376dbae

File tree

4 files changed

+709
-4
lines changed

4 files changed

+709
-4
lines changed

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
"test.lint": "eslint .",
1515
"test": "npm run build && atom --test spec",
1616
"clean": "shx rm -rf dist",
17-
"dev": "npm run build -- --watch",
18-
"build": "tsc -p lib/tsconfig.json || echo done",
17+
"tsc.dev": "npm run build -- --watch",
18+
"tsc.build": "tsc -p lib/tsconfig.json || echo done",
19+
"dev": "npm run clean && cross-env NODE_ENV=development rollup -c -w",
20+
"build": "npm run clean && cross-env NODE_ENV=production rollup -c",
1921
"build-commit": "build-commit -o dist",
2022
"prepare": "npm run build"
2123
},
@@ -59,9 +61,12 @@
5961
"@types/node": "^14.14.37",
6062
"@types/resolve": "^1.20.0",
6163
"build-commit": "^0.1.4",
64+
"cross-env": "^7.0.3",
6265
"eslint": "7.23.0",
6366
"eslint-config-atomic": "^1.12.5",
6467
"jasmine-fix": "1.3.1",
68+
"rollup": "^2.44.0",
69+
"rollup-plugin-atomic": "^2.2.0",
6570
"shx": "^0.3.3"
6671
},
6772
"eslintConfig": {

0 commit comments

Comments
 (0)