Open bartlomieju opened 1 week ago
@bartlomieju I would like to work on this feature.
npm create
is an alias of npm init
I think we just need to implement one, however implementing both won't be a lot of effort I believe.
Popularity of npm init
is more so we should implement this only.
@raashidanwar thanks, but the core team hasn't agreed yet on how exactly this will work.
@raashidanwar thanks, but the core team hasn't agreed yet on how exactly this will work.
Sure. Let me know when they finalized the plan. Would love to implement this.
Currently there's no easy way to translate
npm create
(oryarn/pnpm create
) calls todeno ...
calls.Consider the example:
That's 24 chars vs 34 characters. And the user needs to now that
npm create <package>
is equal todeno run npm:create-<package>
.We need a better solution here and fast.
One obvious choice is to overload the
deno init
command to work like this:There are a couple problems with it though:
deno init
doesn't accept permission flags right now - maybe creating a new project should apply default permissions like, read, write, env, and run?npm:vite
might give a hint that the script is thevite
package on npm and notcreate-vite
- maybe it's not a problem?jsr:
packages - maybe forjsr:
we should look forjsr:create-<package>
packages?