Skip to content

Added cross platform compatibility #3114

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

adityashibu
Copy link

This pull request includes a small change to the package.json file. The change updates the postinstall script to use npx rimraf instead of rm -rf for removing the markdownlint directory.

Ensures cross platform compatibility for Windows and Linux based systems

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

To be clear, this only improves cross-platform usage for developers of this package, which is currently just one person who doesn't use windows.

package.json Outdated
@@ -4,7 +4,7 @@
"description": "A mostly reasonable approach to JavaScript.",
"scripts": {
"preinstall": "npm run install:config && npm run install:config:base",
"postinstall": "rm -rf node_modules/markdownlint-cli/node_modules/markdownlint",
"postinstall": "npx rimraf node_modules/markdownlint-cli/node_modules/markdownlint",
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add it as a dev dep instead of using npx

@adityashibu adityashibu requested a review from ljharb April 3, 2025 15:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants