diff --git a/package.json b/package.json index 649de69..92b985d 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "app": "ts-node src/index.ts", "cli": "ts-node src/cli.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": [ "lib/**/*"