-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add deno as package manager #25
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,21 @@ const bun: AgentCommands = { | |
'global_uninstall': ['bun', 'remove', '-g', 0], | ||
} | ||
|
||
const deno: AgentCommands = { | ||
'agent': ['deno', 0], | ||
'run': ['deno', 'run', 0], | ||
'install': ['deno', 'install', 0], | ||
'frozen': ['deno', 'install', '--frozen'], | ||
'global': ['deno', 'install', '-g', 0], | ||
'add': ['deno', 'add', 0], | ||
'upgrade': ['deno', 'update', 0], | ||
'upgrade-interactive': ['deno', 'update', 0], | ||
'execute': ['deno', 'run', 0], | ||
'execute-local': ['deno', 'run', 0], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the same command is used here for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ooops, my bad. We currently have no way to do it, so a feature request would be helpful. I think we could handle that with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, filed a request here: denoland/deno#26918 |
||
'uninstall': ['deno', 'remove', 0], | ||
'global_uninstall': ['deno', 'uninstall', '-g', 0], | ||
} | ||
|
||
export const COMMANDS = { | ||
'npm': <AgentCommands>{ | ||
'agent': ['npm', 0], | ||
|
@@ -88,6 +103,7 @@ export const COMMANDS = { | |
run: npmRun('pnpm'), | ||
}, | ||
'bun': bun, | ||
'deno': deno, | ||
} satisfies Record<Agent, AgentCommands> | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"packageManager": "deno" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually not true yet, we plan to add these commands in Deno v2.1 later in November.