RSeidelsohn / license-checker-rseidelsohn

Extract NPM package licenses. Enhanced and updated fork of Dav Glass' original (but abandoned) license-checker.
https://www.npmjs.com/package/license-checker-rseidelsohn
Other
137 stars 35 forks source link

Question: Definition of development modules #87

Open TheFive opened 1 year ago

TheFive commented 1 year ago

HI,

what is the definition of development module in your license checker.

currently i have the situation that caniuse is shown as production dependency in this situation

osmbc@4.0.10 /Users/TheFive.osm/development/osmbc
└─┬ email-templates@11.1.1
  └─┬ @ladjs/consolidate@1.0.1
    └─┬ @babel/core@7.22.5
      └─┬ @babel/helper-compilation-targets@7.22.5
        └─┬ browserslist@4.21.9
          └── caniuse-lite@1.0.30001507

In this case @ladis/consolidate is using @babel/core as development depencency. @babel/core is only imported as development dependency:

osmbc@4.0.10 /Users/TheFive.osm/development/osmbc
├─┬ email-templates@11.1.1
│ └─┬ @ladjs/consolidate@1.0.1
│   └─┬ @babel/core@7.22.5
│     └─┬ @babel/helper-compilation-targets@7.22.5
│       └── @babel/core@7.22.5 deduped
└─┬ nyc@15.1.0
  └─┬ istanbul-lib-instrument@4.0.3
    └── @babel/core@7.22.5 deduped

(nyc is a development depencendy in my program).

Is there a chance, to classifiy all libraries, that are in no production dependency as development dependency ?

Reason is, that i would not like to have a CC-BY-SA depencency in my production source, but i do not have a problem to do the test and development with additional CC-BY-SA Tools.

TheFive (aka Christoph)

RSeidelsohn commented 1 year ago

Hi Christoph,

late response, but finally I read your question. I like the idea, but currently I can't tell how complex this would be. As you might have read, the code of this tool was originally not done by me and still today, I don't know everything it does and how it does it by heart. It would be a good new feature. we'll see, unless you or someone else will create a PR for it, I'll put it on my todo list.

Cheers, Roman.