jsr-io/jsr-npm

In `jsr publish`, only apply compat fixes (`--unstable-sloppy-imports`, etc) when project has `package.json`

Closed this issue · 0 comments

Right now the default behaviour of jsr publish and deno publish in projects without package.json is different. For these (deno) projects, the behaviour should be identical.

We should not enable any of these options unless a package.json is found in the repository:

jsr-npm/src/commands.ts

Lines 159 to 162 in 25124b8

"--unstable-bare-node-builtins",
"--unstable-sloppy-imports",
"--unstable-byonm",
"--no-check",

Because of this discrepancy, users have run into issues: https://discord.com/channels/684898665143206084/1216305070258524181