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

dx: Fetch dependency versions automatically from codebase in openInStackBlitz function #939

Open
wants to merge 2 commits into
base: release
Choose a base branch
from

Conversation

mhawryluk
Copy link
Collaborator

closes #937

Copy link

codesandbox-ci bot commented Feb 24, 2025

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.

Copy link

github-actions bot commented Feb 24, 2025

pkg.pr.new

packages

pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@939
pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@70781a32471235ae7eb899fea2c68f264e928e2e

benchmark
view benchmark

commit
view commit

Copy link
Collaborator

@iwoplaza iwoplaza left a 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.

@mhawryluk mhawryluk requested a review from iwoplaza February 24, 2025 18:06
Copy link
Collaborator

@iwoplaza iwoplaza left a comment

Choose a reason for hiding this comment

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

Awesome 🤩

Comment on lines +15 to +18
if (pnpmWorkspaceYaml instanceof type.errors) {
throw new Error(pnpmWorkspaceYaml.message);
}

Copy link
Collaborator

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.

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.

2 participants