How to prevent specific workspace members from being published to JSR?
Hi everyone!
I'm currently working on a Deno monorepo using the workspaces feature. I have a question regarding publishing to JSR.
In my monorepo, I have several packages. Some of them are meant to be internal-only and should never be published to JSR. However, other packages in the workspace are public and need to be published.
Here's the catch:
1. I cannot simply remove the
2. In the npm ecosystem, I would use
Is there an equivalent field or a recommended way in Deno/JSR to mark a workspace member as “private” so that
If such a feature doesn't exist yet, what is the best practice to manage this? Should I manually manage the publish command for each package in CI, or is there a way to exclude specific members in the root deno.json?
Thanks in advance!
I'm currently working on a Deno monorepo using the workspaces feature. I have a question regarding publishing to JSR.
In my monorepo, I have several packages. Some of them are meant to be internal-only and should never be published to JSR. However, other packages in the workspace are public and need to be published.
Here's the catch:
1. I cannot simply remove the
name field from the internal packages' deno.json because I need them to be referencable by other packages for testing and development within the workspace.2. In the npm ecosystem, I would use
"private": true in package.json to prevent accidental publishing.Is there an equivalent field or a recommended way in Deno/JSR to mark a workspace member as “private” so that
deno publish (especially when run from the root) ignores it?If such a feature doesn't exist yet, what is the best practice to manage this? Should I manually manage the publish command for each package in CI, or is there a way to exclude specific members in the root deno.json?
Thanks in advance!
