Skip to content

Commit

Permalink
fix: core types
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 20, 2023
1 parent 78b611d commit 266088b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 18 deletions.
1 change: 1 addition & 0 deletions core.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/core/index.js'
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"types": "./dist/index.d.ts",
"import": "./dist/trescientos.js"
},
"./core": {
"types": "./dist/core/index.d.ts"
},
"./*": "./*"
},
"main": "./dist/trescientos.js",
Expand All @@ -33,10 +36,8 @@
"composables"
],
"scripts": {
"dev": "vite",
"playground": "cd playground && nr dev",
"build": "vite build",
"preview": "vite preview",
"release": "release-it",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue",
"docs:dev": "vitepress dev docs",
Expand Down
1 change: 0 additions & 1 deletion playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
Expand Down
17 changes: 11 additions & 6 deletions pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './abstractions'
export * from './loaders'
export * from './controls'
export * from './materials'
export * from './shapes'
export * from './misc'
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
export * from './core/abstractions'
export * from './core/loaders'
export * from './core/controls'
export * from './core/materials'
export * from './core/shapes'
export * from './core/misc'
export * from './core'
Binary file added tresjs-cientos-2.0.0.tgz
Binary file not shown.
5 changes: 2 additions & 3 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"types": ["vitest/globals"]
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
"include": ["../../vite.config.ts", "src/**/*.test.ts"]
}

0 comments on commit 266088b

Please sign in to comment.