Skip to content

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

@wassim-ben-amor

Description

@wassim-ben-amor

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions