From 138002cd51b09f0dda7817ba3a6fbbe4d7ffa1f1 Mon Sep 17 00:00:00 2001 From: Alvis HT Tang Date: Wed, 10 May 2023 19:15:12 +0800 Subject: [PATCH] fix(preset-rollup): inject NODE_ENV for build and develop stages --- templates/scripts.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/scripts.yaml b/templates/scripts.yaml index 8f5b630..865950f 100644 --- a/templates/scripts.yaml +++ b/templates/scripts.yaml @@ -1,5 +1,5 @@ # replace the `prepare` template from presetter-preset # so that the build procedure will not be triggered upon package installation -build: run-s clean build:rollup -build:rollup: cross-env NODE_ENV=production rollup --config rollup.config.ts --configPlugin rollup-plugin-ts -develop: run-s "build:rollup -- --watch {@}" -- +build: cross-env NODE_ENV=production run-s clean build:rollup +build:rollup: rollup --config rollup.config.ts --configPlugin rollup-plugin-ts +develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --