Skip to content

Commit

Permalink
fix: package exports types
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 18, 2023
1 parent 51c010f commit 6fa3e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/tres.js",
"require": "./dist/tres.umd.cjs"
},
"./types": {
"require": "./dist/index.d.ts",
"import": "./dist/index.d.ts"
},
"./components": {
"types": "./dist/types/tres-components.d.ts"
},
"./styles": "./dist/style.css",
"./*": "./dist/tres.js"
"./*": {
"types": "./dist/types/*",
"import": "./dist/tres.js",
"require": "./dist/tres.umd.cjs"
}
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion playground/src/components/TheExperience.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { ref, watchEffect } from 'vue'
import { BasicShadowMap, SRGBColorSpace, NoToneMapping } from 'three'
import { TresCanvas } from '/@/'
import { TresCanvas } from '@tresjs/core'
import TheSphere from './TheSphere.vue'
import { OrbitControls } from '@tresjs/cientos'
Expand Down
2 changes: 1 addition & 1 deletion playground/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"moduleResolution": "bundler",
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
Expand Down

0 comments on commit 6fa3e09

Please sign in to comment.