Skip to content

Commit de1250a

Browse files
committed
chore(scripts): update npm scripts that use rimraf and glob patterns to use --glob option to fix Illegal characters in path error
1 parent 35023e3 commit de1250a

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
@@ -25,9 +25,9 @@
2525
},
2626
"scripts": {
2727
"clean-dist": "rimraf ./dist",
28-
"clean-printable": "rimraf src/content/**/printable.mdx",
28+
"clean-printable": "rimraf --glob src/content/**/printable.mdx",
2929
"preclean": "run-s clean-dist clean-printable",
30-
"clean": "rimraf src/content/**/_*.mdx src/**/_*.json repositories/*.json",
30+
"clean": "rimraf --glob src/content/**/_*.mdx src/**/_*.json repositories/*.json",
3131
"start": "npm run clean-dist && webpack serve --config webpack.dev.mjs --env dev --progress --define-process-env-node-env development",
3232
"content": "node src/scripts/build-content-tree.mjs ./src/content ./src/_content.json",
3333
"bundle-analyze": "run-s clean fetch content && webpack --config webpack.prod.mjs --define-process-env-node-env production && run-s printable content && webpack --config webpack.ssg.mjs --define-process-env-node-env production --env ssg --profile --json > stats.json && webpack-bundle-analyzer stats.json",

0 commit comments

Comments
 (0)