I work in a mono repo which has a similar setup to this:
I want to bundle and publish @my-company/my-awesome-package
.
If I bundle with tsup it will not bundle @repo/my-helper-package
in my output and if that output then is pushed to a registry the package is broken.
Currently I have the following line in my tsup.config.ts
=> noExternal: [/^@repo.*/],
which will include all packages which start with @repo
into the bundle.
It would be cool if tsup has a config setting called something like bundlePrivatePackages: boolean
. If its false
it works like it does now. If its true
though tsup would go and inspect the package.json file of imported packages and check if the package has "private": true
set, if so it would include it in the output bundle if not leave the import statement.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too