@@ -10,6 +10,9 @@ import typegpuNoisePackageJson from '@typegpu/noise/package.json' with {
1010import typegpuSdfPackageJson from '@typegpu/sdf/package.json' with {
1111 type : 'json' ,
1212} ;
13+ import typegpuThreePackageJson from '@typegpu/three/package.json' with {
14+ type : 'json' ,
15+ } ;
1316import typegpuPackageJson from 'typegpu/package.json' with { type : 'json' } ;
1417import unpluginPackageJson from 'unplugin-typegpu/package.json' with {
1518 type : 'json' ,
@@ -32,6 +35,7 @@ const pnpmWorkspaceYaml = type({
3235 types : {
3336 typescript : 'string' ,
3437 '@webgpu/types' : 'string' ,
38+ '@types/three' : 'string' ,
3539 } ,
3640 test : {
3741 vitest : 'string' ,
@@ -42,6 +46,7 @@ const pnpmWorkspaceYaml = type({
4246 } ,
4347 example : {
4448 'wgpu-matrix' : 'string' ,
49+ 'three' : 'string' ,
4550 } ,
4651 } ,
4752} ) ( parse ( pnpmWorkspace ) ) ;
@@ -126,7 +131,8 @@ ${example.htmlFile.content}
126131 "devDependencies": {
127132 "typescript": "${ pnpmWorkspaceYaml . catalogs . types . typescript } ",
128133 "vite": "^6.1.1",
129- "@webgpu/types": "${ pnpmWorkspaceYaml . catalogs . types [ '@webgpu/types' ] } "
134+ "@webgpu/types": "${ pnpmWorkspaceYaml . catalogs . types [ '@webgpu/types' ] } ",
135+ "@types/three": "${ pnpmWorkspaceYaml . catalogs . types [ '@types/three' ] } "
130136 },
131137 "dependencies": {
132138 "typegpu": "^${ typegpuPackageJson . version } ",
@@ -138,9 +144,11 @@ ${example.htmlFile.content}
138144 "@loaders.gl/obj": "${
139145 typegpuDocsPackageJson . dependencies [ '@loaders.gl/obj' ]
140146 } ",
147+ "three": "${ pnpmWorkspaceYaml . catalogs . example . three } ",
141148 "@typegpu/noise": "${ typegpuNoisePackageJson . version } ",
142149 "@typegpu/color": "${ typegpuColorPackageJson . version } ",
143- "@typegpu/sdf": "${ typegpuSdfPackageJson . version } "
150+ "@typegpu/sdf": "${ typegpuSdfPackageJson . version } ",
151+ "@typegpu/three": "${ typegpuThreePackageJson . version } "
144152 }
145153}` ,
146154 'vite.config.js' : `\
0 commit comments