jsr icon indicating copy to clipboard operation
jsr copied to clipboard

`--dry-run` does not error for imports/exports problems

Open nzakas opened this issue 1 year ago • 0 comments

I just ran into a couple of issues with --dry-run passed and then publish failed.

In the first case, there was an export that didn't exist:

{
   "name": "@scope/name",
   "version": "0.1.0",
   "exports": "./non-existent.ts"
}

In the second case, publish refused to follow imports outside of the project root:

{
   "name": "@scope/name",
   "version": "0.1.0",
   "exports": "./mod.ts",
   "imports": {
      "foo": "../bar.js"
   }
}

Both cases passed --dry-run, which makes me think that --dry-run doesn't read exports or imports.

nzakas avatar Mar 15 '24 20:03 nzakas