DenoDDeno
Powered by
Kevin TaleK
Denoβ€’16mo agoβ€’
2 replies
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
workspace/
  packages/
    foo/
      deno.json
      mod.ts
  deno.json
  utils.ts


foo/mods
foo/mods
imports the utils file like so

import { resolveFromRoot } from "../../utils.ts";
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
error[invalid-path]: path is not in publish directory


I understand the error but what is the solution to this?

thanks!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to properly publish a JSR package with browser compatibility?
LambdAuroraLLambdAurora / help
2y ago
JSR Publish error
cameronmCcameronm / help
12mo ago
JSR package importing from a file in the project root
Definitely Not A DolphinDDefinitely Not A Dolphin / help
2mo ago
How to publish global types with JSR?
rezi99Rrezi99 / help
2y ago