Conversation
|
🚀 Website Preview Deployed! Preview your changes at: https://cg-pr-498.billy-daly.workers.dev This preview will be automatically deleted when the PR is closed. |
This allows us to define default dep versions once and re-use them across the workspace
Updates lib/core and lib/cli to use catalog Switches @common-grants/core from direct to dev dependency in CLI
The switch to the latest compiler fixes a bug in how the OpenAPI docs are generated which caused some examples to get dropped
| postDate: | ||
| name: Application posted date | ||
| eventType: singleDate | ||
| date: '2024-01-15' | ||
| description: Opportunity is posted publicly |
There was a problem hiding this comment.
These examples are preserved due to the switch to the latest @typespec/compiler and @typespec/openapi3
| "@typespec/compiler": "catalog:", | ||
| "@typespec/http": "catalog:", |
There was a problem hiding this comment.
New syntax for using pnpm catalog
There was a problem hiding this comment.
This enables us to to a patch release of both @common-grants/core and @common-grants/cli
widal001
left a comment
There was a problem hiding this comment.
@jcrichlake Looks like v1.9.0 was just released for TypeSpec libraries. So I used this as an opportunity to switch to the pnpm catalog feature you flagged.
I also used this as an opportunity to switch @common-grants/core from a direct dependency to a dev dependency in the CLI, which helped resolve some lingering peer dependency warnings I was getting when I ran pnpm pack and npm install <path-to-tarball> -g. See screenshots below:
Testing local install
cg init
cg check spec
Spec passes when auto-generated from FastAPI template

Spec fails as expected when I change the auto-generated FastAPI docs

cg preview
Testing pnpm changeset version
I also checked to make sure the versions were getting bumped properly using the changeset I added:
|
I also validated the changes after Billy's updates. Proceeding with the merge |
Summary
Changes proposed
Updated TypeSpec peer dependencies in the pnpm-workspace file which then trickled the updates down to the
cliandcoremodule of the repository. There is also an update for theaxioslibrary which was flagged for being vulnerable to DDoS attacks as part of the CI checks.Context for reviewers
pnpm packin the CLI modulecg initnpm install --legacy-peer-depsAdditional information