pack
: include contents of directories in files
field (#3175)
#24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
yarn pack
(and fix packed emojis)This lets tar-fs do the header construction for us.
I tested this by comparing the output of this command before and after
the change:
Here's the diff between the outputs:
I extracted the tarballs into
./package-master
and./package-feature
,then diffed them to find that this change has the side effect of
fixing emojis in the tarball. You can see examples of the broken emoji
here:
yarn pack
, use fs.walk instead of fs.readdirThis ensures that files inside directories are listed too.
yarnpkg#2498
pack
: include contents of directories infiles
fieldThis makes it so that you don't have to put '/**' after a directory in
the
files
field of package.json to ensure that the contents of thedirectory will be published.
Fixes yarnpkg#2498
Fixes yarnpkg#2942
Fixes yarnpkg#2851
Includes and closes yarnpkg#3170
pack
test: Use path.join() to create nested pathpath
test: Make output easier to understandNow, we can see just what the expected/actual difference is, rather than
just getting a -1 vs 0 from an indexOf test.
pack
: transform each [ "file-name" ] into [ "file-name", "file-name/**" ], whether it's a file or a folderSee yarnpkg#3175 (comment)
See yarnpkg#3175 (comment)
path.sep
instead of slashesSee yarnpkg#3175 (comment)
path.sep
instead of slashes"This reverts commit c2df043.
It caused an additional test to fail:
https://ci.appveyor.com/project/kittens/yarn/build/2195/job/q5u26f85qlroy533#L3011
This reverts commit 20646f5.
I don't think it actually helps, see
yarnpkg#3175 (comment)
This should help with Windows support. See
yarnpkg#3175 (comment)
Summary
Test plan