Skip to content

Commit 1e207cf

Browse files
committed
Build dist assets on prepare
Removes the separate build command and just always builds our dist files on `npm run prepare`. This makes sure we never accidentally publish a release that doesn't have up to date dist files for CDNs like unpkg and jsdelivr.
1 parent a77d879 commit 1e207cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"scripts": {
1919
"prebabelify": "rimraf lib",
2020
"babelify": "babel src --out-dir lib",
21-
"prepare": "npm run babelify",
22-
"build": "npm run babelify && babel-node src/build.js",
21+
"prepare": "npm run babelify && babel-node src/build.js",
2322
"watch": "nodemon -e js,css --watch src --exec 'babel-node src/build.js'",
2423
"test": "jest"
2524
},

0 commit comments

Comments
 (0)