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

fix(bun): incorrect bun frozen-lockfile command #214

Merged
merged 1 commit into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ni --frozen
# yarn install --frozen-lockfile (Yarn 1)
# yarn install --immutable (Yarn Berry)
# pnpm install --frozen-lockfile
# bun install --no-save
# bun install --frozen-lockfile
```

```bash
Expand Down Expand Up @@ -160,7 +160,7 @@ nci
# npm ci
# yarn install --frozen-lockfile
# pnpm install --frozen-lockfile
# bun install --no-save
# bun install --frozen-lockfile
```

if the corresponding node manager is not present, this command will install it globally along the way.
Expand Down
2 changes: 1 addition & 1 deletion src/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const bun = {
'agent': 'bun {0}',
'run': 'bun run {0}',
'install': 'bun install {0}',
'frozen': 'bun install --no-save',
'frozen': 'bun install --frozen-lockfile',
'global': 'bun add -g {0}',
'add': 'bun add {0}',
'upgrade': 'bun update {0}',
Expand Down
2 changes: 1 addition & 1 deletion test/ni/bun.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ it('multiple', _('eslint @types/node', 'bun add eslint @types/node'))

it('global', _('eslint -g', 'bun add -g eslint'))

it('frozen', _('--frozen', 'bun install --no-save'))
it('frozen', _('--frozen', 'bun install --frozen-lockfile'))
4 changes: 2 additions & 2 deletions test/programmatic/__snapshots__/runCli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`lockfile > bun > na 1`] = `"bun"`;

exports[`lockfile > bun > na run foo 1`] = `"bun run foo"`;

exports[`lockfile > bun > ni --frozen 1`] = `"bun install --no-save"`;