Skip to content

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

Merged
RomainMuller merged 1 commit intoreleasefrom
rmuller/projen-behave
Mar 9, 2022
Merged

chore: make node-bundle's "build" script behave as others#19307
RomainMuller merged 1 commit intoreleasefrom
rmuller/projen-behave

Conversation

@RomainMuller
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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