Skip to content

Commit 594f858

Browse files
author
Kent C. Dodds
authored
feat: add pure bundle build (#489)
Closes #486
1 parent d0149e8 commit 594f858

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"node": ">=8"
99
},
1010
"scripts": {
11-
"build": "kcd-scripts build && kcd-scripts build --bundle --no-clean",
11+
"prebuild": "rimraf dist",
12+
"build": "npm-run-all --parallel build:main build:bundle:main build:bundle:pure",
13+
"build:main": "kcd-scripts build --no-clean",
14+
"build:bundle:main": "kcd-scripts build --bundle --no-clean",
15+
"build:bundle:pure": "cross-env BUILD_FILENAME_SUFFIX=.pure BUILD_INPUT=src/pure.js kcd-scripts build --bundle --no-clean",
1216
"lint": "kcd-scripts lint",
1317
"test": "kcd-scripts test",
1418
"test:update": "npm test -- --updateSnapshot --coverage",
@@ -48,9 +52,12 @@
4852
"devDependencies": {
4953
"@reach/router": "^1.2.1",
5054
"@testing-library/jest-dom": "^4.1.0",
55+
"cross-env": "^6.0.0",
5156
"kcd-scripts": "^1.7.0",
57+
"npm-run-all": "^4.1.5",
5258
"react": "^16.9.0",
53-
"react-dom": "^16.9.0"
59+
"react-dom": "^16.9.0",
60+
"rimraf": "^3.0.0"
5461
},
5562
"peerDependencies": {
5663
"react": "*",

0 commit comments

Comments
 (0)