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

Patch-package does't recognize changes in package.json file #142

Closed
Gabrielcmp opened this issue May 21, 2019 · 2 comments
Closed

Patch-package does't recognize changes in package.json file #142

Gabrielcmp opened this issue May 21, 2019 · 2 comments

Comments

@Gabrielcmp
Copy link

Gabrielcmp commented May 21, 2019

I don't know if this is a bug or a feature request and the package is supposed to work only on js files, but I need to patch the package.json file from the nedb package as reported in louischatriot/nedb#531

But when I run the patch-package after changing it, it shows:

• Creating temporary folder
• Installing nedb@1.8.0 with npm
• Diffing your files with clean files
⁉️ Not creating patch file for package 'nedb'
⁉️ There don't appear to be any changes.

I tried to edit the index.js to test and it detected it normally.
It would be great if the patcher could also detect changes in files other than .js

@ds300
Copy link
Owner

ds300 commented May 22, 2019

Hi! 👋

You can patch package.json files but they are ignored by default. See the --include and --exclude options in the README.

@ds300 ds300 closed this as completed May 22, 2019
@aliberski
Copy link

try this:
npx patch-package package-name --exclude

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

No branches or pull requests

3 participants