Skip to content

Commit

Permalink
fix: pnpm workspace structure
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed May 18, 2023
1 parent f83c03a commit e8300d6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
AkuAku: typeof import('./src/components/gltf/AkuAku.vue')['default']
AnimatedModel: typeof import('./src/components/AnimatedModel.vue')['default']
Cameras: typeof import('./src/components/Cameras.vue')['default']
FBXModels: typeof import('./src/components/FBXModels.vue')['default']
Expand All @@ -21,16 +20,13 @@ declare module '@vue/runtime-core' {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
ShadersExperiment: typeof import('./src/components/shaders-experiment/index.vue')['default']
'ShadersExperiment.vue': typeof import('./src/components/shadersExperiment.vue/index.vue')['default']
Shapes: typeof import('./src/components/Shapes.vue')['default']
TestSphere: typeof import('./src/components/TestSphere.vue')['default']
Text3D: typeof import('./src/components/Text3D.vue')['default']
TheBasic: typeof import('./src/components/TheBasic.vue')['default']
TheConditional: typeof import('./src/components/TheConditional.vue')['default']
TheEnvironment: typeof import('./src/components/TheEnvironment.vue')['default']
TheEvents: typeof import('./src/components/TheEvents.vue')['default']
TheExperience: typeof import('./src/components/TheExperience.vue')['default']
TheExperiment: typeof import('./src/components/gltf/TheExperiment.vue')['default']
TheFireFlies: typeof import('./src/components/portal-journey/TheFireFlies.vue')['default']
TheFirstScene: typeof import('./src/components/TheFirstScene.vue')['default']
TheGizmos: typeof import('./src/components/TheGizmos.vue')['default']
Expand Down
2 changes: 0 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
"preview": "vite preview"
},
"dependencies": {
"@tresjs/core": "workspace:^2.0.0-rc.2",
"vue-router": "^4.2.0"
},
"devDependencies": {
"@tresjs/core": "workspace:^2.0.0-rc.2",
"unplugin-auto-import": "^0.16.0",
"vite-plugin-glsl": "^1.1.2"
}
Expand Down
5 changes: 4 additions & 1 deletion playground/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"paths": {
"@tresjs/core": ["../src/index.ts"]
},
},
"include": ["vite.config.ts"]
}
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default defineConfig({
],
resolve: {
alias: {
'@tresjs/core': resolve(__dirname, '../src/index.ts'),
'/@': resolve(__dirname, '../src'),
},
dedupe: ['@tresjs/core', 'three'],
},
})
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
packages:
- 'src/**'
- 'playground/**'
- playground

0 comments on commit e8300d6

Please sign in to comment.