Skip to content

Commit 63b6a88

Browse files
authoredAug 23, 2023
feat: add nu support for bun (#167)
1 parent 0301e06 commit 63b6a88

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎src/agents.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ const bun = {
3939
'frozen': 'bun install --no-save',
4040
'global': 'bun add -g {0}',
4141
'add': 'bun add {0}',
42-
'upgrade': null,
43-
'upgrade-interactive': null,
42+
'upgrade': 'bun update {0}',
43+
'upgrade-interactive': 'bun update {0}',
4444
'execute': 'bunx {0}',
4545
'uninstall': 'bun remove {0}',
4646
'global_uninstall': 'bun remove -g {0}',

‎test/programmatic/__snapshots__/runCli.spec.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ exports[`lockfile > bun > ni foo 1`] = `"bun add foo"`;
1616

1717
exports[`lockfile > bun > nlx 1`] = `"bunx foo"`;
1818

19-
exports[`lockfile > bun > nu -i 1`] = `"Command \\"upgrade-interactive\\" is not support by agent \\"bun\\""`;
19+
exports[`lockfile > bun > nu -i 1`] = `"bun update"`;
2020

21-
exports[`lockfile > bun > nu 1`] = `"Command \\"upgrade\\" is not support by agent \\"bun\\""`;
21+
exports[`lockfile > bun > nu 1`] = `"bun update"`;
2222

2323
exports[`lockfile > bun > nun -g foo 1`] = `"bun remove -g foo"`;
2424

@@ -184,9 +184,9 @@ exports[`packager > bun > ni foo 1`] = `"bun add foo"`;
184184

185185
exports[`packager > bun > nlx 1`] = `"bunx foo"`;
186186

187-
exports[`packager > bun > nu -i 1`] = `"Command \\"upgrade-interactive\\" is not support by agent \\"bun\\""`;
187+
exports[`packager > bun > nu -i 1`] = `"bun update"`;
188188

189-
exports[`packager > bun > nu 1`] = `"Command \\"upgrade\\" is not support by agent \\"bun\\""`;
189+
exports[`packager > bun > nu 1`] = `"bun update"`;
190190

191191
exports[`packager > bun > nun -g foo 1`] = `"bun remove -g foo"`;
192192

0 commit comments

Comments
 (0)
Please sign in to comment.