Closed rtarcr closed 3 months ago
Looks good! Does the @aws/lsp-core
package live on inside root/node_modules/@aws/aws-lsp-yaml/node_modules
after installing or will there be a root/node_modules/@aws/lsp-core
in wherever the package is installed? I imagine it's the former so it's exclusively used only by aws-lsp-yaml
Looks good! Does the
@aws/lsp-core
package live on insideroot/node_modules/@aws/aws-lsp-yaml/node_modules
after installing or will there be aroot/node_modules/@aws/lsp-core
in wherever the package is installed? I imagine it's the former so it's exclusively used only byaws-lsp-yaml
Good question. Not sure what is the behavior tbh, but I believe it should not matter in the scope of these changes
Closing this due to dependencies of bundled dependencies not getting installed automatically, which require more custom scripts for this solution
Problem
We want to publish JSON and YAML LSP servers to NPM. They depend on the core subpackage in the monorepo and to avoid publishing it we need to include the dependency in the published package.
This is currently not possible due to https://github.com/npm/cli/issues/3466
Solution
Create script that:
bundleDependencies
prepack
scriptLicense
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.