Add clean & prepare scripts

master
Garrett Mills 2 years ago
parent 26dda63b97
commit f60d8eb884

@ -26,7 +26,9 @@
"app": "ts-node src/index.ts", "app": "ts-node src/index.ts",
"cli": "ts-node src/cli.ts", "cli": "ts-node src/cli.ts",
"watch": "nodemon --ext js,pug,ts --watch src --exec 'ts-node src/index.ts'", "watch": "nodemon --ext js,pug,ts --watch src --exec 'ts-node src/index.ts'",
"build": "rimraf lib && tsc -p tsconfig.json && fse copy --all --dereference --preserveTimestamps --keepExisting=false --quiet --errorOnExist=false src/app/resources lib/app/resources" "clean": "rimraf lib",
"prepare": "pnpm run build",
"build": "pnpm run clean && tsc -p tsconfig.json && fse copy --all --dereference --preserveTimestamps --keepExisting=false --quiet --errorOnExist=false src/app/resources lib/app/resources"
}, },
"files": [ "files": [
"lib/**/*" "lib/**/*"

Loading…
Cancel
Save