feat: support deno create for project initialization#3706
Merged
Conversation
Add a ./create export to @fresh/init so users can scaffold projects with `deno create @fresh/init` (Deno 2.7+). The old invocation `deno run -Ar jsr:@fresh/init` continues to work but now shows a deprecation warning directing users to the new approach. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
crowlKats
approved these changes
Mar 28, 2026
csvn
reviewed
Mar 28, 2026
| // deno-lint-ignore no-console | ||
| console.warn( | ||
| "\x1b[33m%s\x1b[0m", | ||
| `Warning: "deno run -Ar jsr:@fresh/init" is deprecated. Use "deno create @fresh/init" instead.`, |
Contributor
There was a problem hiding this comment.
Update docs to match? deno run -Ar jsr:@fresh/init is used below, and in several more places.
Contributor
Author
There was a problem hiding this comment.
Neither, this PR hasn't landed yet
|
In the last fresh version of Deno the command not working: deno -v
deno 2.7.14
deno create @fresh/init
error: Missing `jsr:` or `npm:` prefix. For example: `deno create npm:vite`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
./createexport to@fresh/initso users can scaffold projects withdeno create @fresh/init(Deno 2.7+)deno run -Ar jsr:@fresh/initcontinues to work but now shows a deprecation warningNew way (Deno 2.7+):
Old way (still works, with warning):
Test plan
deno lintanddeno fmtcleandeno create @fresh/initscaffolds a project correctly (requires Deno 2.7+)deno run -Ar jsr:@fresh/initstill works and shows deprecation warning🤖 Generated with Claude Code