Open kawarimidoll opened 1 week ago
Thanks for reporting :pray: It is a bug, probably in @molt/core.
But I would not create a patch release for this, since it only happens in a limited and avoidable case. The next minor release is including rewrite of the code base of @molt/core, which should fix this problem as well.
To avoid this problem, you may
{
"imports": {
"@std/assert": "jsr:@std/assert@^0.226.0"
},
This is done automatically by deno add jsr:@std/assert
, which is the officially-recommended way to add a dependency to your project.
.ts
files to molt
.If your deno.json
(or deno.jsonc
) contains all your imports, you don't have to pass .ts
files that refer to them. It just slows down the process.
@hasundue You're right, this is a sort of an edge case. I will use the way you recommended. Thank you for replying! I leave this issue open since this seems to be a part of Milestone. Please close this whenever you want.
Problem
molt --write
duplicates version number in deno.jsonc in specific cases.Conditions:
"imports": { "@std/assert": "jsr:@std/assert" }
.ts
filesmolt --write
for both.ts
and configuration fileSteps to reproduce
deno.jsonc 👇
main_test.ts 👇
deno task update
Expected behavior
Add just one version specifier.
Deno version
OS version
macOS Sonoma 14.5