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

fix(cli): typescript init templates fail with error in build step #23129

Closed

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Nov 28, 2022

Fixes the compile error when running cdk init app --language typescript && npm run build.

Fixes: #23126 for v1


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Nov 28, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team November 28, 2022 23:18
@github-actions github-actions bot added the p2 label Nov 28, 2022
@mrgrain mrgrain changed the base branch from main to v1-main November 28, 2022 23:18
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 28, 2022
@mrgrain mrgrain changed the title Mrgrain/fix/v1/pin @types/babel traverse version fix(cli): typescript init templates fail with error in build step Nov 28, 2022
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

@@ -65,7 +65,7 @@ jobs:
lerna exec --parallel ncu -- --upgrade --reject='@types/node,@types/prettier,@types/fs-extra,constructs,typescript,aws-sdk,aws-sdk-mock,${{ steps.list-packages.outputs.list }}' --target=minor
# Upgrade package.jsons in init templates
for pj in $(find packages/aws-cdk/lib/init-templates -name package.json); do
(cd $(dirname $pj) && ncu --upgrade --reject='@types/node,@types/prettier,@types/fs-extra,constructs,typescript,aws-sdk,aws-sdk-mock,ts-jest,jest,${{ steps.list-packages.outputs.list }}')
(cd $(dirname $pj) && ncu --upgrade --reject='@types/babel__traverse,@types/node,@types/prettier,@types/fs-extra,constructs,typescript,aws-sdk,aws-sdk-mock,ts-jest,jest,${{ steps.list-packages.outputs.list }}')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this workflow is used at all.
The Yarn Upgrade v1-main workflow on main doesn't upgrade the packages in the templates (probably for the best).

@mrgrain mrgrain added p0 pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes and removed p2 labels Nov 28, 2022
@aws-cdk-automation aws-cdk-automation dismissed their stale review November 28, 2022 23:27

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@mrgrain mrgrain added the pr/do-not-merge This PR should not be merged at this time. label Nov 28, 2022
@mrgrain mrgrain closed this Nov 28, 2022
@mergify
Copy link
Contributor

mergify bot commented Nov 28, 2022

⚠️ The sha of the head commit of this PR conflicts with #23130. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p0 pr/do-not-merge This PR should not be merged at this time. pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

‼️ cli: @types/babel__traverse@7.18.3 breaks builds
2 participants