Commit f577a6e
Fix Deno import map generation for npm deps
Fix joinDepsReg to properly handle dependencies that already
contain registry prefixes. When a dependency value included a
prefix like "npm:elysia@^1.3.6", the function was incorrectly
prepending the name again, creating invalid specifiers like
"jsr:elysia@npm:elysia@^1.3.6" in deno.json imports.
Now checks if version already starts with "npm:" or "jsr:" and
uses it as-is, otherwise constructs the spec from name and version.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 0d1c8c3 commit f577a6e
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
0 commit comments