Skip to content

Commit

Permalink
fix(bun): incorrect bun frozen-lockfile command (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsekut committed Jul 13, 2024
1 parent bf9af61 commit e0816f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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"`;
exports[`lockfile > bun > ni --frozen 1`] = `"bun install --frozen-lockfile"`;

exports[`lockfile > bun > ni -g foo 1`] = `"npm i -g foo"`;

Expand Down Expand Up @@ -172,7 +172,7 @@ exports[`packager > bun > na 1`] = `"bun"`;

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

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

exports[`packager > bun > ni -g foo 1`] = `"npm i -g foo"`;

Expand Down

0 comments on commit e0816f8

Please sign in to comment.