feat: improve setup and new command - #172
Merged
bartlomieju merged 2 commits intoJul 27, 2026
Merged
Conversation
dsherret
commented
Jul 26, 2026
| } | ||
| } | ||
| ```bash | ||
| deno run -A jsr:@deno/wasmbuild new |
Contributor
Author
There was a problem hiding this comment.
The problem with having a default --minimum-depenency-age=P1D is that this command will not work for most people for 1 day. Not a big deal though.
dsherret
commented
Jul 26, 2026
| ```json | ||
| { | ||
| "tasks": { | ||
| "wasmbuild": "deno run -A @deno/wasmbuild" |
Contributor
Author
There was a problem hiding this comment.
Overall, this is better, but also it's more necessary because Deno had a breaking change to discover the local lockfile when using global commands. This led to many CI failures for me (I do like it better though).
bartlomieju
approved these changes
Jul 27, 2026
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.
Running
deno run -A jsr:@deno/wasmbuild newnow gets a project all the way to aworking state instead of leaving the deno.json setup to the reader.
On top of scaffolding the
rs_libcrate, thenewcommand now:wasmbuildtask to the deno.json file—the same task the manual setupinstructions describe (
"wasmbuild": "deno run -A @deno/wasmbuild"), creatingthe file when it doesn't exist and filling in only what's missing when it does.
deno install jsr:@deno/wasmbuildin the folder.The config file is edited with
@david/jsonc-morph,so comments, key order, and existing formatting all survive—a deno.jsonc file
(or a deno.json with comments, which Deno also accepts) gets filled in like any
other config. A deno.json takes precedence over a deno.jsonc when both exist,
matching Deno's own resolution, and an existing
wasmbuildtask is neveroverwritten.
The README is restructured to lead with the scaffold command and keep the manual
setup as the alternative.