Skip to content

Commit

Permalink
Merge branch 'main' into pr/gearonix/202
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 13, 2024
2 parents 8bcfe60 + bc03c58 commit 0ee1d0c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: lts/*

- run: npx changelogithub
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, lts/*]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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 @@ -179,7 +179,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 0ee1d0c

Please sign in to comment.