diff --git a/package.json b/package.json index a7a0332b..ebdd8805 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "ts": "tsc --build tsconfig.json", "test": "jest", "benchmark": "node ./benchmark/run_bench.js", - "rollup": "cp package.json build/ts && rollup -c", + "rollup": "copyfiles package.json build/ts && rollup -c", "terser": "npm run terser:peggy && npm run terser:tests && npm run terser:bench", "terser:peggy": "terser -c passes=2 -m --sequences 40 build/rollup/peggy.umd.js -o build/peggy.min.js", "terser:tests": "terser -c passes=2 -m --sequences 40 --module build/rollup/test.umd.js -o build/test-bundle.min.js", @@ -35,9 +35,9 @@ "headers": "node ./tools/header.js build/peggy.min.js build/benchmark-bundle.min.js build/test-bundle.min.js", "deploy": "npm run deploy:peggy && npm run deploy:tests && npm run deploy:bench", "coverage:bin": "PEGGY_CLI_DEBUG=1 npm run rollup && nyc --reporter lcov jest run.spec.ts", - "deploy:peggy": "cp build/peggy.min.js docs/vendor/peggy/peggy.min.js && cp build/peggy.min.js browser/peggy.min.js", - "deploy:tests": "cp build/test-bundle.min.js docs/js/test-bundle.min.js", - "deploy:bench": "cp build/benchmark-bundle.min.js docs/js/benchmark-bundle.min.js", + "deploy:peggy": "copyfiles build/peggy.min.js docs/vendor/peggy/ && copyfiles build/peggy.min.js browser/", + "deploy:tests": "copyfiles build/test-bundle.min.js docs/js/", + "deploy:bench": "copyfiles build/benchmark-bundle.min.js docs/js/", "build": "npm run build:notidy && npm run tidy", "build:notidy": "npm run setup && npm run make && npm run headers && npm run lint && npm run deploy && npm run audit", "setup": "npm run clean && npm run set_version", @@ -60,6 +60,7 @@ "browser-sync": "^2.27.5", "chai": "^4.3.4", "commander": "^8.2.0", + "copyfiles": "^2.4.1", "eslint": "^8.0.1", "express": "4.17.1", "jest": "^27.3.0",