Replies: 7 comments
-
Can we please have an update on this issue? For most projects, we list |
Beta Was this translation helpful? Give feedback.
-
it's going to be tricky as Gatsby is both a development server and build server so what would the package gatsby-core have? Would it only have the files that are used in production builds? Would it help to give you a list of what we have today in production builds? A good indicator is using source-map-explorer and the hello world starter |
Beta Was this translation helpful? Give feedback.
-
Hi @wardpeet! Yes, you are right. Exactly these two parts (development server and build server) actually belong together.
I see three types of dependencies in the
To separate these „Build Dependencies“ and „Production Dependencies“ I suggest to introduce a new package. To stay compatible the „Build dependencies“ can simply depend on the „Production dependencies“. -> QUESTION: Can you point me to the specific files? Then I can play around and possibly suggest a concrete solution. Random Examples of
|
Beta Was this translation helpful? Give feedback.
-
@Purii At least for the I'm aware that some tools erroneously detect these licences and since publishing these lockfiles isn't necessary anymore, I've removed them in the latest patch release, which you can upgrade to. For comparison: On a side note, IANAL, but using tools like |
Beta Was this translation helpful? Give feedback.
-
@kitten Thanks for that note and really awesome to patch your package! Some of the scanners ("most accurate ones") scan the whole repository instead of only the files published to npm. I'm about to dig deeper on why they're doing that. But scanning the whole source code instead of only package.json or LICENSE file makes total sense to me (see my comment above). Point is with libs like |
Beta Was this translation helpful? Give feedback.
-
Any updates @wardpeet ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for cleaning up a bit @wardpeet and @kitten ! 🚀 77143e8 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
It's quite hard to find out which Dependencies are actually bundled and shipped with a Gatsby App.
I have the issue, that some (nested) dependencies of
gatsby-cli
seem to be published under licenses that might be critical for a commercial app (Copyleft).I'm aware that Gatsby is a generator. But I'm wondering if it's possible to differ between some kind of
"Gatsby Core"
(shipped as part of a bundled App) andgatsby-cli
. Both published as separate packages. That would allow to listgatsby-cli
as devDependency. The currentgatsby
package could still bundle"Gatsby Core"
andgatsby-cli
to prevent breaking anything.Beta Was this translation helpful? Give feedback.
All reactions