presetter-kernel-module-preset/templates/scripts.yaml

8 lines
383 B
YAML
Raw Permalink Normal View History

2023-07-08 06:07:37 +00:00
# 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:typescript:* build:vite
build:vite: vite build && mv lib/*.cjs lib/index.js
develop: cross-env NODE_ENV=development run-s "vite:rollup -- --watch {@}" --
clean:buildOutput: shx rm -rf {source}