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

Support bun pack --pack-destination #16069

Open
Electroid opened this issue Dec 31, 2024 · 2 comments
Open

Support bun pack --pack-destination #16069

Electroid opened this issue Dec 31, 2024 · 2 comments
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request

Comments

@Electroid
Copy link
Contributor

https://docs.npmjs.com/cli/v10/commands/npm-pack#pack-destination

Default: "."
Type: String
Directory in which npm pack will save tarballs.
@Electroid Electroid added bun install Something that relates to the npm-compatible client enhancement New feature or request labels Dec 31, 2024
@dylan-conway
Copy link
Member

We have --destination and --gzip-level instead of --pack-destination and --pack-gzip-level. We should consider changing these for 1.2, or supporting both.

@Electroid
Copy link
Contributor Author

Yea we should support as an alias, for example:

    const child = spawn(
      packageManager,
      packageManager === 'bun'
        ? ['pack', '--destination', tmpPath]
        : ['pack', '--pack-destination', tmpPath],
      {
        cwd,
        stdio: 'inherit',
      }
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants