You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to add a npm lifecycle script vai typescript-codegen's packageJson in smithy-build.json but instead of the "prepare" script being merging into the scripts block the whole block is replaced.
smithy-build.json
"packageJson": {
"scripts-2": {
"prepare": "npm pkg set --json version=$(npm pkg get 'dependencies.@aws-sdk/core')"
}
}
In case the X Y problem is more interesting, I want the generated package version to match the @aws-sdk/core version, so its easier to align custom client dependencies with the sdks.
If I could run this after code gen and before publishing the pacakge the version would always match.
npm pkg set --json version=$(npm pkg get 'dependencies.@aws-sdk/core')
I tried to add a npm lifecycle script vai typescript-codegen's
packageJson
in smithy-build.json but instead of the "prepare" script being merging into the scripts block the whole block is replaced.smithy-build.json
Before
After
The text was updated successfully, but these errors were encountered: