Skip to content

Commit 046a2b1

Browse files
authored
chore(build): prevent rimraf glob crash on Windows by injecting --glob … (#8130)
1 parent 8d9e86b commit 046a2b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"main": "n/a",
2323
"scripts": {
2424
"clean-dist": "rimraf ./dist",
25-
"clean-printable": "rimraf src/content/**/printable.mdx",
25+
"clean-printable": "rimraf \"src/content/**/printable.mdx\"",
2626
"preclean": "run-s clean-dist clean-printable",
27-
"clean": "rimraf src/content/**/_*.mdx src/**/_*.json repositories/*.json",
27+
"clean": "rimraf \"src/content/**/_*.mdx\" \"src/**/_*.json\" \"repositories/*.json\"",
2828
"start": "npm run clean-dist && webpack serve --config webpack.dev.mjs --env dev --progress --config-node-env development",
2929
"content": "node src/scripts/build-content-tree.mjs ./src/content ./src/_content.json",
3030
"bundle-analyze": "run-s clean fetch content && webpack --config webpack.prod.mjs --config-node-env production && run-s printable content && webpack --config webpack.ssg.mjs --config-node-env production --env ssg --profile --json > stats.json && webpack-bundle-analyzer stats.json",

0 commit comments

Comments
 (0)