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

@datastream/core is a production dependency #1243

Open
ehmicky opened this issue Oct 9, 2024 · 2 comments
Open

@datastream/core is a production dependency #1243

ehmicky opened this issue Oct 9, 2024 · 2 comments
Labels

Comments

@ehmicky
Copy link

ehmicky commented Oct 9, 2024

Describe the bug
The @datastream/core package is a production dependency.

"@datastream/core": "0.0.38"

However, it only seems to be used in tests, i.e. should be a development dependency.

@ehmicky ehmicky added the bug label Oct 9, 2024
@willfarrell
Copy link
Member

Thanks for reporting. To start off #NotALawyer. Technically, @datastream/core is a dependency, a portion of it's code is copied into @middy/core but import is not used to keep the bundle a little lighter. Thus, for SCA it is marked as a dependancy to ensure the license is preserved. If a copyright lawyer would like to chime in or you have an article by one that advises differently, I'm happy to review and adjust my stance on this.

@ehmicky
Copy link
Author

ehmicky commented Oct 10, 2024

Hi @willfarrell,

Thanks for answering. Also, thanks for your hard work in both Middy and @datastream/core! Middy is a very well designed library.

to ensure the license is preserved.

Yes, that's correct! 👍 The MIT license does require copying the contents of the LICENSE:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

However, instead of a production dependency, the LICENSE file of @datastream/core can just be copied as a sibling file. Alternatively, its contents can be appended to the bottom of @middy/core's LICENSE file.

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

No branches or pull requests

2 participants