ds300 / patch-package

Fix broken node modules instantly 🏃🏽‍♀️💨
MIT License
10.32k stars 288 forks source link

Path file not applied for d.ts files #371

Open borm opened 2 years ago

borm commented 2 years ago
yarn add final-form

go to node-modules/final-form/dist/index.d.ts and make some change

 yarn patch-package final-form
yarn run v1.22.4
$ /node_modules/.bin/patch-package final-form
patch-package 6.4.7
• Creating temporary folder
• Installing final-form@4.20.6 with yarn
• Diffing your files with clean files
⁉️  Not creating patch file for package 'final-form'
⁉️  There don't appear to be any changes.
error Command failed with exit code 1.
Maxim-Mazurok commented 2 years ago

~Same with jest-mock, node_modules\jest-mock\build\index.d.ts file "There don't appear to be any changes."~ nevermind, I was changing file in the wrong folder :)