Replies: 1 comment
-
they should be bundled, otherwise it seems like a bug with workspace but that never happens to me. a minimal repro is welcome |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure what causes my problem, so I'd like to raise an issue here:
In my monorepo (with pnpm workspaces, CJS modules), I have a couple of packages built with
tsup
, and all of them are used in the thecli
package like this:As you can see, I use workspace packages in the CLI, bundle them with
tsup
and create abin
out of it. The problem becomes clear when I create a project to test the CLI:If I include all worspace packages into dependencies, then the
cli
script runs perfectly. But without these dependencies, it raises an issue that some code is unavailable. It got me thinking: does tsup actually include workspace dependencies inside its bundle?Beta Was this translation helpful? Give feedback.
All reactions