diff --git a/playground/components.d.ts b/playground/components.d.ts index 111081ceb..ade878285 100644 --- a/playground/components.d.ts +++ b/playground/components.d.ts @@ -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'] @@ -21,8 +20,6 @@ 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'] @@ -30,7 +27,6 @@ declare module '@vue/runtime-core' { 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'] diff --git a/playground/package.json b/playground/package.json index f3d8c8e69..71128440a 100644 --- a/playground/package.json +++ b/playground/package.json @@ -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" } diff --git a/playground/tsconfig.node.json b/playground/tsconfig.node.json index 9d31e2aed..09a369905 100644 --- a/playground/tsconfig.node.json +++ b/playground/tsconfig.node.json @@ -3,7 +3,10 @@ "composite": true, "module": "ESNext", "moduleResolution": "Node", - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "paths": { + "@tresjs/core": ["../src/index.ts"] + }, }, "include": ["vite.config.ts"] } diff --git a/playground/vite.config.ts b/playground/vite.config.ts index a8af27c15..31782037e 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -33,8 +33,8 @@ export default defineConfig({ ], resolve: { alias: { + '@tresjs/core': resolve(__dirname, '../src/index.ts'), '/@': resolve(__dirname, '../src'), }, - dedupe: ['@tresjs/core', 'three'], }, }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9f8f3430..f3a0ca073 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -132,7 +132,7 @@ importers: playground: dependencies: '@tresjs/core': - specifier: workspace:^2.0.0-rc.2 + specifier: workspace:* version: link:.. vue-router: specifier: ^4.2.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4394f88bd..52fdbb5d8 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,2 @@ packages: - - 'src/**' - - 'playground/**' + - playground