Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] arborist.loadActual() can be used with ignoreMissing ? #225

Open
wassim-ben-amor opened this issue Apr 14, 2024 · 0 comments
Open

Comments

@wassim-ben-amor
Copy link

wassim-ben-amor commented Apr 14, 2024

Hello,
I have a question regarding the standard usage of npm-packlist.
In the readme this example is mentioned:

...
const arborist = new Arborist({ path: packageDir })
arborist.loadActual().then((tree) => {
  packlist(tree)
...

For a monorepo using pnpm and ^workspace protocol, the operation of finding missing edges (using loadActual without specifying ignoreMissing set to true) can take a lot of time. I guess it's because of pnpm symlinks where loadActual will try to scan a lot of node_modules. My goal is only to pack the package as it is without further changes.
My question: What is the impact of changing ignoreMissing to true ?
Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant