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.
This commit is contained in:
parent
a77d879db6
commit
1e207cfd7f
1 changed files with 1 additions and 2 deletions
|
|
@ -18,8 +18,7 @@
|
|||
"scripts": {
|
||||
"prebabelify": "rimraf lib",
|
||||
"babelify": "babel src --out-dir lib",
|
||||
"prepare": "npm run babelify",
|
||||
"build": "npm run babelify && babel-node src/build.js",
|
||||
"prepare": "npm run babelify && babel-node src/build.js",
|
||||
"watch": "nodemon -e js,css --watch src --exec 'babel-node src/build.js'",
|
||||
"test": "jest"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue