Kevin TaleK
Deno13mo ago
Kevin Tale

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


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"
    ]
  }
}


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!
Was this page helpful?