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 (pnpm clean) - rimraf Instead of rm for Windows OS Support #2443

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

alphaxek
Copy link
Contributor

@alphaxek alphaxek commented Mar 4, 2024

replace rm with rimraf while deleting node_modules during pnpm clean to support in both Windows and Linux.

Closes #2442

📝 Description

Replace rm -rf with rimraf in [pnpm clean](clean:node-modules) in root package.json scripts.

⛳️ Current behavior (updates)

[pnpm clean](clean:node-modules) script used for node_modules cleaning doesn't work in Windows OS as rm command is not internal.

🚀 New behavior

Deletes root node_modules in Windows OS as well with rimraf.

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

NA

replace `rm` with rimraf while deleting node_modules during `pnpm clean` to support in both Windows and Linux.
@alphaxek alphaxek requested a review from jrgarciadev as a code owner March 4, 2024 19:48
Copy link

changeset-bot bot commented Mar 4, 2024

⚠️ No Changeset found

Latest commit: 1817ff9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Mar 4, 2024

@alphaxek is attempting to deploy a commit to the NextUI Inc Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextui-storybook-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 7:50pm

@alphaxek alphaxek changed the title [CHORE] - rimraf Instead of rm for Windows OS Support chore (pnpm clean) - rimraf Instead of rm for Windows OS Support Mar 4, 2024
@@ -37,7 +37,7 @@
"turbo:clean": "turbo clean && rimraf ./node_modules/.cache/turbo",
"turbo:graph": "pnpm build --graph=dependency-graph.png",
"clean": "pnpm turbo:clean && pnpm clean:jest && pnpm clean:node-modules && pnpm clean:lock && pnpm install --hoist",
"clean:node-modules": "rimraf ./apps/**/node_modules && rimraf ./packages/**/**/node_modules && rm -rf ./node_modules",
"clean:node-modules": "rimraf ./apps/**/node_modules && rimraf ./packages/**/**/node_modules && rimraf ./node_modules",
"clean:changelogs": "rimraf ./packages/**/**/CHANGELOG.md",
"clean:lock": "rm ./pnpm-lock.yaml",
Copy link
Contributor

@Simon-He95 Simon-He95 Mar 5, 2024

Choose a reason for hiding this comment

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

clean:lock This should also be modified

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @Simon-He95 for you review.

@jrgarciadev jrgarciadev merged commit 1d32bf8 into heroui-inc:main Mar 5, 2024
7 of 8 checks passed
@alphaxek
Copy link
Contributor Author

alphaxek commented Mar 5, 2024

Thank you @wingkwong for you review.

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.

[CHORE] - rimraf Instead of rm for Windows OS Support
4 participants