This option is useful for testing Deno-first JSR packages in Node. Passing this flag installs all jsr:* and npm:* packages defined in the "imports" field as npm package which effectively adds it to package.json.
Input:
// jsr.json or deno.json (or their *.jsonc variants)
{
"imports": {
"@std/encoding": "jsr:@std/encoding@^0.216.0"
"preact": "npm:preact@10.20.0"
}
}
Based on a feature request on discord:
This option is useful for testing Deno-first JSR packages in Node. Passing this flag installs all
jsr:*
andnpm:*
packages defined in the"imports"
field as npm package which effectively adds it topackage.json
.Input:
Run:
npx jsr i --from-jsr-config
Result: