Skip to content

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

@lucacasonato

Description

@lucacasonato

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions