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

npm pack needs to be able to save to a specific directory. #316

Closed
wraithgar opened this issue Apr 6, 2021 · 3 comments
Closed

npm pack needs to be able to save to a specific directory. #316

wraithgar opened this issue Apr 6, 2021 · 3 comments
Labels

Comments

@wraithgar
Copy link
Member

Currently npm pack calls fs.writeFile with a bare filename, ending with a tgz file that is written to whatever the cwd of the running node process is. This means that the test/lib/pack.js tests leave crud in cwd every time you run the tests.

It would be nice to save those files inside a testDir so they get cleaned up automatically. It would also be nice to allow end users to specify where those files end up being generated.

@ljharb
Copy link

ljharb commented Apr 6, 2021

You could call the option “--where=“ :-p

@darcyclarke
Copy link
Contributor

ex. npm pack --pack-destination ../dist

@darcyclarke
Copy link
Contributor

Closing Resolved in v7.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants