fix(preset-rollup): inject NODE_ENV for build and develop stages

This commit is contained in:
Alvis HT Tang 2023-05-10 19:15:12 +08:00
parent 57578e9398
commit 138002cd51
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# replace the `prepare` template from presetter-preset # replace the `prepare` template from presetter-preset
# so that the build procedure will not be triggered upon package installation # so that the build procedure will not be triggered upon package installation
build: run-s clean build:rollup build: cross-env NODE_ENV=production run-s clean build:rollup
build:rollup: cross-env NODE_ENV=production rollup --config rollup.config.ts --configPlugin rollup-plugin-ts build:rollup: rollup --config rollup.config.ts --configPlugin rollup-plugin-ts
develop: run-s "build:rollup -- --watch {@}" -- develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --