presetter-preset-rollup/templates/scripts.yaml

7 lines
407 B
YAML

# replace the `prepare` template from presetter-preset
# so that the build procedure will not be triggered upon package installation
build: cross-env NODE_ENV=production run-s clean build:rollup-config build:rollup
build:rollup-config: tsc -p tsconfig.config.json rollup.config.ts
build:rollup: rollup --config rollup.config.js
develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --