-
-
Notifications
You must be signed in to change notification settings - Fork 449
fix: command for create-* packages in Deno
#2357
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
Changes from 2 commits
71ba4c2
4ef9418
ad11fa9
78dd9c4
c5db278
e26594a
a0e8172
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 |
|---|---|---|
|
|
@@ -47,7 +47,7 @@ export const packageManagers = [ | |
| action: 'add', | ||
| executeLocal: 'deno run', | ||
| executeRemote: 'deno run', | ||
| create: 'deno run', | ||
| create: 'deno create', | ||
| icon: 'i-simple-icons:deno', | ||
| }, | ||
| { | ||
|
|
@@ -137,6 +137,9 @@ export function getExecuteCommandParts(options: ExecuteCommandOptions): string[] | |
| if (options.isCreatePackage) { | ||
| const shortName = getCreateShortName(options.packageName) | ||
| if (shortName !== options.packageName) { | ||
| if (options.packageManager === 'deno') { | ||
| return ['deno', 'create', `npm:${shortName}`] | ||
| } | ||
|
Contributor
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. Could we instead set the shortName to
Contributor
Author
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. I added a helper function This logic is purposefully separate from the other
|
||
| return [...pm.create.split(' '), shortName] | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.