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 (346 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
There was a problem hiding this comment.
Pull request overview
This PR adjusts monorepo scripts to ensure generated “operator-overload stripped” example files are kept up-to-date (including .tsnotover.tsx) and to align dev usage with the current workspace (docs-only).
Changes:
- Update the root
dev/dev:hostscripts to run only thetypegpu-docsdev server. - Run
typegpu-docstransform-overloadsbefore executing workspace-widetest:types. - Expand the docs cleanup glob to delete both
.tsnotover.tsand.tsnotover.tsxgenerated files.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Limits dev to docs and ensures overload transforms run before type tests. |
| apps/typegpu-docs/package.json | Broadens cleanup of generated .tsnotover files to include TSX variants. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "type": "module", | ||
| "scripts": { | ||
| "transform-overloads": "find . -type f -name '*.tsnotover.ts' -delete && node scripts/transform-overloads.ts", | ||
| "transform-overloads": "find . -type f -name '*.tsnotover.ts*' -delete && node scripts/transform-overloads.ts", |
There was a problem hiding this comment.
The find . ... -delete cleanup runs over the entire package (including node_modules), which can be slow and also broader than necessary. Since scripts/transform-overloads.ts only reads/writes under src/examples, consider scoping the delete to that directory and matching only the intended extensions (e.g., separate *.tsnotover.ts and *.tsnotover.tsx patterns) to avoid deleting unintended files.
| "transform-overloads": "find . -type f -name '*.tsnotover.ts*' -delete && node scripts/transform-overloads.ts", | |
| "transform-overloads": "find ./src/examples -type f \\( -name '*.tsnotover.ts' -o -name '*.tsnotover.tsx' \\) -delete && node scripts/transform-overloads.ts", |
.tsnotover.tsxas well as.tsnotover.tsfiles, preparing for the upcoming @typegpu/react package.devscript on the docs only, as no other packages have adevcommand (they used to)