-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
format command sorts "files" property and breaks packages #35
Comments
I can submit a PR for this but wanted to get input from other contributors. Removing the sort for the "files" array would be, technically, backwards incompatible. Should a flag be used to remove "files" from the list of things to be sorted or should I just update constants.ts and remove "files" from it? |
Thanks a lot @raijinsetsu, I think you're right that Taking a look at the codebase, it should be a case of just removing |
Sounds good to me. I did code the fix in my branch and it was exactly that: removing the one line from the array in constants.ts. |
Great, thanks a lot. I have the fix ready locally and will release soon. |
Should be available now in syncpack@5.0.3 |
Works perfectly. Thanks for the fast turn around!
…-Luke
On Fri, Jun 19, 2020, 12:21 Jamie Mason ***@***.***> wrote:
Should be available now in ***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABT6LNWOAGI5A7XITB5BPCDRXOGARANCNFSM4OC2TFLA>
.
|
Description
syncpack is reordering the contents of the "files" property which changes the contents of the tarball when using "npm publish" or "npm pack".
example package.json:
command:
npx syncpack format
result:
expected result:
The only work-around is to use .npmignore and remove the files property, but this becomes unmanageable.
Suggested Solution
Do not sort the "files" property.
The text was updated successfully, but these errors were encountered: