8000 feat: support frozen production install (#255) · antfu-collective/ni@e19af36 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit e19af36

Browse files
BorePlusPlusantfu
andauthored
feat: support frozen production install (#255)
Co-authored-by: Anthony Fu <github@antfu.me>
1 parent f8e3f20 commit e19af36

File tree

8 files changed

+20
-10
lines changed

8 files changed

+20
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"fzf": "^0.5.2",
6262
"ini": "^5.0.0",
6363
"lint-staged": "^15.4.2",
64-
"package-manager-detector": "^0.2.8",
64+
"package-manager-detector": "^0.2.9",
6565
"picocolors": "^1.1.1",
6666
"simple-git-hooks": "^2.11.1",
6767
"taze": "^18.3.0",

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/nci.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { parseNi } from '../parse'
22
import { runCli } from '../runner'
33

44
runCli(
5-
(agent, _, hasLock) => parseNi(agent, ['--frozen-if-present'], hasLock),
5+
(agent, args, hasLock) => parseNi(agent, [...args, '--frozen-if-present'], hasLock),
66
{ autoInstall: true },
77
)

test/ni/bun.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ it('global', _('eslint -g', 'bun add -g eslint'))
2525
it('frozen', _('--frozen', 'bun install --frozen-lockfile'))
2626

2727
it('production', _('-P', 'bun install --production'))
28+
29+
it('frozen production', _('--frozen -P', 'bun install --frozen-lockfile --production'))

test/ni/npm.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ it('global', _('eslint -g', 'npm i -g eslint'))
2525
it('frozen', _('--frozen', 'npm ci'))
2626

2727
it('production', _('-P', 'npm i --omit=dev'))
28+
29+
it('frozen production', _('--frozen -P', 'npm ci --omit=dev'))

test/ni/pnpm.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ it('forward1', _('--anything', 'pnpm i --anything'))
2828
it('forward2', _('-a', 'pnpm i -a'))
2929

3030
it('production', _('-P', 'pnpm i --production'))
31+
32+
it('frozen production', _('--frozen -P', 'pnpm i --frozen-lockfile --production'))

test/ni/yarn.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ it('global', _('eslint ni -g', 'yarn global add eslint ni'))
2525
it('frozen', _('--frozen', 'yarn install --frozen-lockfile'))
2626

2727
it('production', _('-P', 'yarn install --production'))
28+
29+
it('frozen production', _('--frozen -P', 'yarn install --frozen-lockfile --production'))

test/ni/yarn@berry.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ it('global', _('eslint ni -g', 'npm i -g eslint ni'))
2525
it('frozen', _('--frozen', 'yarn install --immutable'))
2626

2727
it('production', _('-P', 'yarn install --production'))
28+
29+
it('frozen production', _('--frozen -P', 'yarn install --immutable --production'))

0 commit comments

Comments
 (0)
0