-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
pack: add dryRun option to packDirectory #47
Conversation
Add dryRun option to packDirectory. This makes it possible to run postscript after the archive has been written to cwd. See https://npm.community/t/592?u=larsgw
Move --dry-run logging closer to original position.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This is great. Could you add a small test to make sure the original problem isn't happening anymore with this change?
It's not the prettiest test: the error message doesn't really work, but I believe that's how |
@zkat, I don't think I can request another review with GitHubs interface, or respond to the first one, but I added a test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks a bunch. This is a great bug fix! 🎉
Add dryRun option to packDirectory. This makes it possible to run postscript after the archive has been written to cwd. Fixes: https://npm.community/t/592 PR-URL: #47 Credit: @larsgw Reviewed-By: @zkat
Add dryRun option to packDirectory. This makes it possible to run postscript after the archive has been written to cwd. Fixes: https://npm.community/t/592 PR-URL: #47 Credit: @larsgw Reviewed-By: @zkat
FEATURES * [bbcf7b2](npm/hosted-git-info@bbcf7b2) [#46](npm/hosted-git-info#46) [#43](npm/hosted-git-info#43) [#47](npm/hosted-git-info#47) [#44](npm/hosted-git-info#44) Add support for GitLab groups and subgroups ([@mterrel](https://github.com/mterrel), [@isaacs](https://github.com/isaacs), [@ybiquitous](https://github.com/ybiquitous)) BUGFIXES * ([3b1d629](npm/hosted-git-info@3b1d629)) [#48](npm/hosted-git-info#48) fix http protocol using sshurl by default ([@fengmk2](https://github.com/fengmk2)) * [5d4a8d7](npm/hosted-git-info@5d4a8d7) ignore noCommittish on tarball url generation ([@isaacs](https://github.com/isaacs)) * [1692435](npm/hosted-git-info@1692435) use gist tarball url that works for anonymous gists ([@isaacs](https://github.com/isaacs)) * [d5cf830](npm/hosted-git-info@d5cf830) * Do not allow invalid gist urls ([@isaacs](https://github.com/isaacs)) * [e518222](npm/hosted-git-info@e518222) Use LRU cache to prevent unbounded memory consumption ([@iarna](https://github.com/iarna))
* chore: bump @npmcli/template-oss from 3.4.2 to 3.4.3 Bumps [@npmcli/template-oss](https://github.com/npm/template-oss) from 3.4.2 to 3.4.3. - [Release notes](https://github.com/npm/template-oss/releases) - [Changelog](https://github.com/npm/template-oss/blob/main/CHANGELOG.md) - [Commits](npm/template-oss@v3.4.2...v3.4.3) --- updated-dependencies: - dependency-name: "@npmcli/template-oss" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: postinstall for dependabot template-oss PR * chore: postinstall for dependabot template-oss PR Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: npm team <ops+robot@npmjs.com> Co-authored-by: Luke Karrys <luke@lukekarrys.com>
Add
dryRun
option topackDirectory
. This makes it possible to run postscript after the archive has been written to cwd. Something similar could probably be done forpackFromPackage
.See https://npm.community/t/592?u=larsgw