Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(scripts): updated npm scripts that use rimraf and glob patterns to use --glob option to fix Illegal characters in path error #7517

Conversation

RajeevPullat
Copy link

updated npm scripts that use rimraf and glob patterns to use --glob option to fix Illegal characters in path error

If we are using rimraf from the command line and using glob patterns, we have to use --glob command line option. Otherwise, we will get a Error: Illegal characters in path. error. So, this is fixed with adding --glob option to npm scripts that use rimraf and glob patterns.

…to use `--glob` option to `fix Illegal characters in path` error
Copy link

vercel bot commented Jan 11, 2025

@RajeevPullat is attempting to deploy a commit to the Webpack Docs Team on Vercel.

A member of the Team first needs to authorize it.

"preclean": "run-s clean-dist clean-printable",
"clean": "rimraf src/content/**/_*.mdx src/**/_*.json repositories/*.json",
"clean": "rimraf --glob src/content/**/_*.mdx src/**/_*.json repositories/*.json",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works without glob as well.
Screenshot 2025-01-24 at 6 01 47 AM

@snitin315
Copy link
Member

Thanks for the PR, but I don't think this is required.

@snitin315 snitin315 closed this Jan 24, 2025
@RajeevPullat
Copy link
Author

RajeevPullat commented Jan 24, 2025

@snitin315 image
There is issue when using with npm in Windows OS as shown above. Thats why I tried to create a PR. I am using Node Version 20.17.0 and NPM version 11.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants