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

Make execution of pack.sh much faster #161

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Conversation

RomainMuller
Copy link
Contributor

Since the pack.sh script is supposed to be run after build.sh was
executed, the prepare script of all packages was already performed,
and it is possible to only run the prepublish script, then execute
npm pack --ignore-scripts in parallel.

This removes the double-compilation of all packages (including
slow-to-build packages such as aws-cdk-docs or @aws-cdk/resources,
that involve expensive code generation).

Since the `pack.sh` script is supposed to be run after `build.sh` was
executed, the `prepare` script of all packages was already performed,
and  it is possible to only run the `prepublish` script, then execute
`npm pack --ignore-scripts` in parallel.

This removes the double-compilation of all packages (including
slow-to-build packages such as `aws-cdk-docs` or `@aws-cdk/resources`,
that involve expensive code generation).
@eladb
Copy link
Contributor

eladb commented Jun 21, 2018

Can we port this change to awslabs/jsii as well?

@RomainMuller RomainMuller merged commit b101d1c into master Jun 21, 2018
@RomainMuller
Copy link
Contributor Author

@eladb - I'll see to have the same in awslabs/jsii, too.

@RomainMuller RomainMuller deleted the rmuller/make-pack-faster branch June 21, 2018 13:58
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
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