Skip to content

Commit 1c4afc6

Browse files
committed
refactor package.json scripts to use --glob for rimraf commands
1 parent f62b839 commit 1c4afc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"start": "npm-run-all --parallel watch-typescript watch-css serve-app",
3434
"parcel": "npm run parcel --workspaces --if-present",
3535
"restore-dist": "git checkout -q -- ./packages/sanddance/dist/umd/sanddance.d.ts ./packages/sanddance-react/dist/umd/sanddance-react.d.ts ./packages/vega-deck.gl/dist/umd/vega-deck.gl.d.ts ./packages/vega-morphcharts/dist/umd/vega-morphcharts.d.ts ./packages/sanddance-specs/dist/umd/sanddance-specs.d.ts ./packages/data-inference/dist/umd/data-inference.d.ts",
36-
"clean-parcel-cache": "rimraf ./.parcel-cache/ && rimraf ./packages/**/.cache/ && rimraf ./packages/**/.parcel-cache/",
37-
"clean-build": "npm run clean-parcel-cache && rimraf ./packages/**/dist/",
36+
"clean-parcel-cache": "rimraf ./.parcel-cache/ && rimraf --glob ./packages/**/.cache/ && rimraf --glob ./packages/**/.parcel-cache/",
37+
"clean-build": "npm run clean-parcel-cache && rimraf --glob ./packages/**/dist/",
3838
"clean": "npm run clean --workspaces --if-present && npm run clean-build && npm run restore-dist",
39-
"remove-pem": "rimraf **/*.pem && rimraf **/*.key",
39+
"remove-pem": "rimraf --glob **/*.pem && rimraf --glob **/*.key",
4040
"vega-upgrade": "npm run remove-vega --workspaces --if-present && git checkout -- \"**/package.json\" && node ./scripts/vega-version.mjs",
4141
"deploy": "npm run clean-parcel-cache && npm run deploy --workspaces --if-present",
4242
"test": "npm run eslint && npm run test --workspaces --if-present",

0 commit comments

Comments
 (0)