chore: build standalone once in prepublish step (#11777)

This commit is contained in:
Huáng Jùnliàng 2020-07-30 12:54:56 -04:00 committed by GitHub
parent 4ce1b70ade
commit 0e4cf1e6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -211,8 +211,8 @@ clone-license:
./scripts/clone-license.sh ./scripts/clone-license.sh
prepublish-build: clean-lib clean-runtime-helpers prepublish-build: clean-lib clean-runtime-helpers
NODE_ENV=production BABEL_ENV=production $(MAKE) build NODE_ENV=production BABEL_ENV=production $(MAKE) build-bundle
$(MAKE) clone-license $(MAKE) prepublish-build-standalone clone-license
prepublish: prepublish:
$(MAKE) bootstrap-only $(MAKE) bootstrap-only

View File

@ -7,9 +7,6 @@
"babel.js", "babel.js",
"babel.min.js" "babel.min.js"
], ],
"scripts": {
"prepublishOnly": "cd ../.. && make prepublish-build-standalone"
},
"devDependencies": { "devDependencies": {
"@babel/core": "^7.10.5", "@babel/core": "^7.10.5",
"@babel/helper-plugin-utils": "^7.10.4", "@babel/helper-plugin-utils": "^7.10.4",