Replies: 2 comments
-
I filed unjs/unbuild#362 to see if unbuild could use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm running into the same scenario: I need |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a TS pnpm monorepo, it works amazingly (thank you!).
I'm adding a package to the workspace, and I need to:
I'm struggling to figure out the right way to do this, such that I can get it to work in both configurations above. If I define my
exports
,main
, andmodule
to point to the built files indist/
, it works fornpm install
users, but breaks in my monorepo. If I set them to use files insrc/
, that won't work for JS users.I know this has to be a solved problem, but I'm struggling to figure it out, and would value a pointer to an existing repo or example to follow.
Right now I'm using
unbuild
, but I could use any build tool for this. I feel like the publishConfig might provide a way out of this, where by default I can usesrc/
files, and for published versions I can switch todist/
. But I then need a build tool that is aware of these (unbuild uses the layout inpackage.json
to configure things).Thanks for any pointers. Long time pnpm fan, first time caller!
Beta Was this translation helpful? Give feedback.
All reactions