Kevin Tale
Kevin Tale•6d ago

cannot publish package to jsr but it uses a shared file

So this is my setup
workspace/
packages/
foo/
deno.json
mod.ts
deno.json
utils.ts
workspace/
packages/
foo/
deno.json
mod.ts
deno.json
utils.ts
foo/mods imports the utils file like so import { resolveFromRoot } from "../../utils.ts"; foo deno.json is
{
"name": "foo",
"version": "0.0.1",
"exports": "./mod.ts",
"license": "MIT",
"publish": {
"include": [
"mod.ts",
"deno.json"
]
}
}
{
"name": "foo",
"version": "0.0.1",
"exports": "./mod.ts",
"license": "MIT",
"publish": {
"include": [
"mod.ts",
"deno.json"
]
}
}
but when publishing I got error[invalid-path]: path is not in publish directory I understand the error but what is the solution to this? thanks!
2 Replies
Fifth-Normal-Form always
There is a new Discord server for JSR
https://discord.gg/hMqvhAn9xG. Perhaps you could get help there.
Kevin Tale
Kevin TaleOP•6d ago
thanks @NDH i'll join it and post there 🙂