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

Different result when order of start array changes #19

Open
tavarest opened this issue May 23, 2018 · 1 comment
Open

Different result when order of start array changes #19

tavarest opened this issue May 23, 2018 · 1 comment

Comments

@tavarest
Copy link

I am currently trying to get the direct dependencies of a set of projects. I want to go to each project's folder, and simply analyze its package.json file. In the end, i want a csv file with all packages used and its license kind, without repeated packages.

I have set up npm-license-crawler with the following options:

{
  start: [
    path.join(__dirname, './../../../path1),
    path.join(__dirname, './../../../path2'),
    path.join(__dirname, './../../../path3'),
    path.join(__dirname, './../../../path4'),
    path.join(__dirname, './../../../path5'),
    path.join(__dirname, './../../../path6')
  ],
  onlyDirectDependencies: true,
  csv: path.join(__dirname, './../../output.csv')
}

When i run dumpLicenses and change the order of the paths in the start array, i get different results with some of the packages not being registered for a specific order.

I had to run npm-license-crawler individually for each project and then run another script to merge the results and remove repeated packages.

I might have misunderstood the package's usage, but I believe this behaviour is not expected.

@mwittig
Copy link
Owner

mwittig commented May 31, 2018

Sorry for the delay. I'll review your request shortly

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

2 participants