@@ -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' ,
@@ -33,6 +36,7 @@ const pnpmWorkspaceYaml = type({
3336 types : {
3437 typescript : 'string' ,
3538 '@webgpu/types' : 'string' ,
39+ '@types/three' : 'string' ,
3640 } ,
3741 test : {
3842 vitest : 'string' ,
@@ -43,6 +47,7 @@ const pnpmWorkspaceYaml = type({
4347 } ,
4448 example : {
4549 'wgpu-matrix' : 'string' ,
50+ 'three' : 'string' ,
4651 } ,
4752 } ,
4853} ) ( parse ( pnpmWorkspace ) ) ;
@@ -127,7 +132,8 @@ ${example.htmlFile.content}
127132 "devDependencies": {
128133 "typescript": "${ pnpmWorkspaceYaml . catalogs . types . typescript } ",
129134 "vite": "^6.1.1",
130- "@webgpu/types": "${ pnpmWorkspaceYaml . catalogs . types [ '@webgpu/types' ] } "
135+ "@webgpu/types": "${ pnpmWorkspaceYaml . catalogs . types [ '@webgpu/types' ] } ",
136+ "@types/three": "${ pnpmWorkspaceYaml . catalogs . types [ '@types/three' ] } "
131137 },
132138 "dependencies": {
133139 "typegpu": "^${ typegpuPackageJson . version } ",
@@ -139,9 +145,11 @@ ${example.htmlFile.content}
139145 "@loaders.gl/obj": "${
140146 typegpuDocsPackageJson . dependencies [ '@loaders.gl/obj' ]
141147 } ",
148+ "three": "${ pnpmWorkspaceYaml . catalogs . example . three } ",
142149 "@typegpu/noise": "${ typegpuNoisePackageJson . version } ",
143150 "@typegpu/color": "${ typegpuColorPackageJson . version } ",
144- "@typegpu/sdf": "${ typegpuSdfPackageJson . version } "
151+ "@typegpu/sdf": "${ typegpuSdfPackageJson . version } ",
152+ "@typegpu/three": "${ typegpuThreePackageJson . version } "
145153 }
146154}` ,
147155 'vite.config.js' : `\
0 commit comments