feat: npx typegpu#2540
Merged
Merged
Conversation
|
pkg.pr.new packages benchmark commit |
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (355 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
Resolution Time Benchmark---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.78, 1.60, 3.36, 5.36, 5.95, 8.03, 17.27, 19.78]
line [0.80, 1.68, 3.48, 5.23, 6.00, 8.89, 18.19, 19.92]
line [0.80, 1.60, 3.67, 4.99, 5.97, 9.90, 17.70, 19.17]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.27, 0.46, 0.60, 0.72, 1.01, 1.06, 1.23, 1.39]
line [0.26, 0.47, 0.58, 0.74, 1.04, 0.98, 1.23, 1.34]
line [0.32, 0.51, 0.63, 0.79, 1.02, 1.10, 1.28, 1.35]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.82, 1.76, 3.21, 5.47, 10.43, 21.26, 46.16, 92.52]
line [0.68, 1.78, 3.41, 5.41, 10.31, 21.63, 45.32, 93.23]
line [0.83, 1.81, 3.24, 5.39, 10.35, 21.92, 47.11, 95.37]
|
29c7c77 to
8aa9566
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds an executable entrypoint to the typegpu package so it can expose a CLI (tgpu) that delegates to @typegpu/cli@latest, and updates the build step to ensure the bin script is present in the published dist package.
Changes:
- Added a
binentry topackages/typegpu/package.jsonto expose atgpucommand. - Added
packages/typegpu/bin.mjsthat spawnsnpx @typegpu/cli@latest ...args. - Updated the build script to copy
bin.mjsintodist/so it’s included aftertgpu-dev-cli prepackrewrites the package for publishing.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/typegpu/package.json | Adds bin mapping and copies the bin script into dist during build. |
| packages/typegpu/bin.mjs | New Node.js executable that forwards to @typegpu/cli@latest. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
37fc50d to
24e2cb8
Compare
aleksanderkatan
approved these changes
May 27, 2026
24e2cb8 to
25f1c7b
Compare
cieplypolar
approved these changes
May 27, 2026
25f1c7b to
d96e7c1
Compare
d96e7c1 to
715d55a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.