pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Private package in node_modules is including sources

Open jseparovic opened this issue 2 years ago • 1 comments

Hi,

All of my private code sits in internal libraries that are included in node_modules. When I set these packages to license=UNLICENSED and private=true the source code still remains in the executable. How can I exclude my private packages when they are included in node_modules?

Cheers

jseparovic avatar Sep 10 '22 19:09 jseparovic

As a workaround I added a cli option to pass in a regex to force no source. https://github.com/vercel/pkg/pull/1770 I'm sure there's a better way to do this, but it works for me.

jseparovic avatar Sep 23 '22 00:09 jseparovic

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

github-actions[bot] avatar Dec 22 '22 00:12 github-actions[bot]

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

github-actions[bot] avatar Dec 27 '22 00:12 github-actions[bot]