Skip to content

Commit

Permalink
feat: add nu support for bun (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatindotdev authored Aug 23, 2023
1 parent 0301e06 commit 63b6a88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const bun = {
'frozen': 'bun install --no-save',
'global': 'bun add -g {0}',
'add': 'bun add {0}',
'upgrade': null,
'upgrade-interactive': null,
'upgrade': 'bun update {0}',
'upgrade-interactive': 'bun update {0}',
'execute': 'bunx {0}',
'uninstall': 'bun remove {0}',
'global_uninstall': 'bun remove -g {0}',
Expand Down
8 changes: 4 additions & 4 deletions test/programmatic/__snapshots__/runCli.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ exports[`lockfile > bun > ni foo 1`] = `"bun add foo"`;

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

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

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

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

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

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

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

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

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

Expand Down

0 comments on commit 63b6a88

Please sign in to comment.