-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
dx: Fetch dependency versions automatically from codebase in openInStackBlitz function #939
base: release
Are you sure you want to change the base?
Conversation
…ackBlitz function
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
pkg.pr.new packages
benchmark commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this reduces a lot of the friction we encounter while deploying 🙌 🚀
I have one request, could we try out @std/yaml
from the JSR & Deno folk instead of js-yaml
? It seems to have type definitions out of the box, and it's more likely to get patch updates down the line.
As for the "as { ... }" after loading the Yaml, could we use arktype for validating whether or not the config file matches what we expect? This way, if we ever change the workspace config file in an unexpected way, we'll be notified properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 🤩
if (pnpmWorkspaceYaml instanceof type.errors) { | ||
throw new Error(pnpmWorkspaceYaml.message); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imo, we could move this error check outside of the function to be aware of failure earlier, not requiring the button click.
closes #937