We need to test that packed npm packages can be consumed before publishing them to npm.
The transitive dependencies of bundled dependencies (see https://github.com/aws/language-servers/pull/316) do not get bundled or installed. Only dependencies that are present in the local node_modules get included during packing.
There is an issue with @aws-sdk/util-utf8-browser package that doesn't have dist folders included in the bundle, which fails the initial workflows of this PR.
Solution
Add github workflow to test CodeWhisperer server npm package.
Add postinstall script that goes into bundled dependencies and does npm install there.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Problem
@aws-sdk/util-utf8-browser
package that doesn't have dist folders included in the bundle, which fails the initial workflows of this PR.Solution
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.