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

chore: make node-bundle's "build" script behave as others #19307

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

RomainMuller
Copy link
Contributor

The default projen build step re-generates the package.json file and
re-install dependencies, which breaks in case the align-versions.sh
script was run (as the re-generated package.json has version 0.0.0
again).

This inserts a hack to reset the build script and make it a synonym
to the compile script.

This was breaking the jsii integration tests (they try to build, but
not test, aws-cdk).


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

The default `projen` build step re-generates the `package.json` file and
re-install dependencies, which breaks in case the `align-versions.sh`
script was run (as the re-generated `package.json` has version `0.0.0`
again).

This inserts a hack to reset the `build` script and make it a synonym
to the `compile` script.

This was breaking the `jsii` integration tests (they try to build, but
not test, `aws-cdk`).
@RomainMuller RomainMuller requested a review from a team March 9, 2022 15:36
@RomainMuller RomainMuller self-assigned this Mar 9, 2022
@gitpod-io
Copy link

gitpod-io bot commented Mar 9, 2022

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 9, 2022
@RomainMuller
Copy link
Contributor Author

IMPORTANT: This is directly on the release branch, in order to unblock jsii integration tests (which use that branch). It will be back-ported into the main branch once verified to have solved the problem.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: dce7348
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@RomainMuller RomainMuller merged commit b61a8c5 into release Mar 9, 2022
@RomainMuller RomainMuller deleted the rmuller/projen-behave branch March 9, 2022 17:09
TheRealAmazonKendra pushed a commit to TheRealAmazonKendra/aws-cdk that referenced this pull request Mar 11, 2022
The default `projen` build step re-generates the `package.json` file and
re-install dependencies, which breaks in case the `align-versions.sh`
script was run (as the re-generated `package.json` has version `0.0.0`
again).

This inserts a hack to reset the `build` script and make it a synonym
to the `compile` script.

This was breaking the `jsii` integration tests (they try to build, but
not test, `aws-cdk`).
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants