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

refactor: support pnpm #315

Merged
merged 8 commits into from
Mar 24, 2023
Merged

refactor: support pnpm #315

merged 8 commits into from
Mar 24, 2023

Conversation

agdimech
Copy link
Contributor

@agdimech agdimech commented Mar 21, 2023

This PR adds PNPM support to the PDK which results in huge performance gains.

pnpm i # installs all packages
pnpm build # alias for pnpx nx run-many --target=build --output-style=stream --nx-bail 

In addition to performance gains, due to the nature of how PNPM sets up node_modules there is now no longer a need to hoist anything as everything gets symlinked from child packages. This solves the #282 .

NXMonorepo has also been updated to add a gitignore for .nx/cache which solves #308 .

Sharp prebuild is also fixed as previously we were not including the vendor and build folders when bundling cdk-graph-plugin.

NOTE: I have added a jsii-pacmak hack for the time being until aws/jsii#4030 is merged in order to prevent the build from breaking. Once that PR is merged and published, I will remove this workaround ASAP.

Fixes: #308, #282

@nx-cloud
Copy link

nx-cloud bot commented Mar 21, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 8663752. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


🟥 Failed Commands
nx run-many --target=build --output-style=stream --nx-bail

Sent with 💌 from NxCloud.

@agdimech agdimech marked this pull request as draft March 21, 2023 07:35
@agdimech
Copy link
Contributor Author

This PR is dependent on aws/jsii#4021

Copy link
Member

@cogwirrel cogwirrel left a comment

Choose a reason for hiding this comment

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

Looks great - excited for the perf boost! Just one small comment :)

packages/open-api-gateway/package.json Outdated Show resolved Hide resolved
@agdimech agdimech marked this pull request as ready for review March 24, 2023 01:04
Copy link
Contributor

@JeremyJonas JeremyJonas left a comment

Choose a reason for hiding this comment

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

This is really great work - massive performance and maintenance improvements!!!

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/upgrade-mainline.yml Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
.projen/tasks.json Outdated Show resolved Hide resolved
packages/nx-monorepo/src/nx-monorepo.ts Outdated Show resolved Hide resolved
private/projects/cdk-graph-plugin-diagram.ts Outdated Show resolved Hide resolved
private/projects/pdk-monorepo-project.ts Outdated Show resolved Hide resolved
@agdimech agdimech added this pull request to the merge queue Mar 24, 2023
@agdimech agdimech removed this pull request from the merge queue due to a manual request Mar 24, 2023
@agdimech agdimech added this pull request to the merge queue Mar 24, 2023
@JeremyJonas JeremyJonas removed this pull request from the merge queue due to a manual request Mar 24, 2023
@JeremyJonas JeremyJonas added this pull request to the merge queue Mar 24, 2023
Merged via the queue into mainline with commit 11f22a2 Mar 24, 2023
@JeremyJonas JeremyJonas deleted the refactor/pnpm branch March 24, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] nx cache location change not synced with gitignore
3 participants