Joseph
Joseph
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
My first package, which I want to reuse, has deno.json:
{
"name": "@jollywatt/zettelbuilder",
"version": "1.0.0",
"exports": {
".": "src/mod.ts",
"./server": "src/server.ts",
"./themes/minimal": "src/themes/minimal.tsx",
"./themes/zetteldocs": "src/themes/zetteldocs.tsx"
},
"imports": {
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
"@preact/preact": "npm:preact@^10.25.4",
"@preact/render": "npm:preact-render-to-string@^6.5.12",
"@std/assert": "jsr:@std/assert@1",
"@std/fs": "jsr:@std/fs@^1.0.8",
"@std/http": "jsr:@std/http@^1.0.12",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.8",
"@types/react": "npm:@types/react@^19.0.3"
}
}
{
"name": "@jollywatt/zettelbuilder",
"version": "1.0.0",
"exports": {
".": "src/mod.ts",
"./server": "src/server.ts",
"./themes/minimal": "src/themes/minimal.tsx",
"./themes/zetteldocs": "src/themes/zetteldocs.tsx"
},
"imports": {
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
"@preact/preact": "npm:preact@^10.25.4",
"@preact/render": "npm:preact-render-to-string@^6.5.12",
"@std/assert": "jsr:@std/assert@1",
"@std/fs": "jsr:@std/fs@^1.0.8",
"@std/http": "jsr:@std/http@^1.0.12",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.8",
"@types/react": "npm:@types/react@^19.0.3"
}
}
(Omitting task , compilerOptions and fmt entries.) The second package, which uses the first package as a dependency, has deno.json:
{
"imports": {
"zettelbuilder": "jsr:@jollywatt/zettelbuilder@1.0.0",
"@std/assert": "jsr:@std/assert@1",
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
"@std/fs": "jsr:@std/fs@^1.0.8",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.8",
"@types/react": "npm:@types/react@^19.0.2",
"@preact/preact": "npm:preact@^10.25.3",
"@preact/render": "npm:preact-render-to-string@^6.5.12"
},
"patch": [
"../../zettelbuilder"
]
}
{
"imports": {
"zettelbuilder": "jsr:@jollywatt/zettelbuilder@1.0.0",
"@std/assert": "jsr:@std/assert@1",
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
"@std/fs": "jsr:@std/fs@^1.0.8",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.8",
"@types/react": "npm:@types/react@^19.0.2",
"@preact/preact": "npm:preact@^10.25.3",
"@preact/render": "npm:preact-render-to-string@^6.5.12"
},
"patch": [
"../../zettelbuilder"
]
}
The patch url is correct, because it errors clearly if it isn't. Otherwise, deno run in my second package produces error: JSR package not found: @jollywatt/zettelbuilder
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
(I recieve error: JSR package not found: @b/foo)
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
This would be a perfect work-around, but it seems that the package @b/foo does have to be published on jsr. I'm using deno 2.1.4, maybe this feature is new?
11 replies