refactor: use WorkspaceJsiiBuild from cdklabs-projen-project-types#1565
Conversation
…stead of JsiiBuild
Dependency ReviewThe following issues were found:
License Issuesyarn.lock
OpenSSF ScorecardScorecard details
Scanned Files
|
8f54f8e to
bda1eef
Compare
There was a problem hiding this comment.
removing the now redundant file
| fixupTestTask(cloudAssemblySchema); | ||
|
|
||
| new JsiiBuild(cloudAssemblySchema, { | ||
| cloudAssemblySchema.with(new yarn.WorkspaceJsiiBuild({ |
There was a problem hiding this comment.
this is the actual change. everything else is just version updates.
| { | ||
| "spawn": "package:js", | ||
| "condition": "node -e \"if (!process.env.CI) process.exit(1)\"" | ||
| "spawn": "package:js" |
There was a problem hiding this comment.
This is the only functional difference to before.
Previously we wouldn't package @aws-cdk/cloud-assembly-schema locally at all during build. I believe this was not intentional, since all other packages are packaged during build.
What was intentional however was the to remove local packaging for all jsii languages (which is super slow). I have kept this removal and just re-established the package:js step.
In CI, it is important we only run package:js during build since the other packaging tasks are run in a separate job.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1565 +/- ##
=======================================
Coverage 88.18% 88.18%
=======================================
Files 76 76
Lines 10841 10841
Branches 1493 1493
=======================================
Hits 9560 9560
Misses 1253 1253
Partials 28 28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Replaces the local
JsiiBuildcomponent withWorkspaceJsiiBuildfromcdklabs-projen-project-typesfor thecloud-assembly-schemapackage. This moves us to the upstream implementation, reducing local maintenance burden and keeping us aligned with the shared build infrastructure used across cdklabs projects.The remaining local
JsiiBuildclass has its NPM publishing job check commented out sinceWorkspaceJsiiBuildhandles this differently.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license