File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ import { spawn } from 'node:child_process' ;
3+
4+ const child = spawn (
5+ 'npx' ,
6+ [ 'create-typegpu@latest' , ...process . argv . slice ( 2 ) ] ,
7+ { stdio : 'inherit' } ,
8+ ) ;
9+
10+ child . on ( 'exit' , ( code , signal ) => {
11+ if ( signal ) {
12+ process . kill ( process . pid , signal ) ;
13+ } else {
14+ process . exit ( code ?? 0 ) ;
15+ }
16+ } ) ;
Original file line number Diff line number Diff line change 2424 },
2525 "type" : " module" ,
2626 "sideEffects" : false ,
27+ "bin" : {
28+ "tgpu" : " ./bin.mjs"
29+ },
2730 "exports" : {
2831 "./package.json" : " ./package.json" ,
2932 "." : {
7780 "types" : " ./dist/index.d.ts"
7881 },
7982 "scripts" : {
80- "build" : " tsdown" ,
83+ "build" : " tsdown && cp bin.mjs dist/bin.mjs " ,
8184 "test:types" : " pnpm tsc --p ./tsconfig.test.json --noEmit" ,
8285 "prepublishOnly" : " tgpu-dev-cli prepack"
8386 },
You can’t perform that action at this time.
0 commit comments