Skip to content

Commit

Permalink
chore: add link to node16 ts
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Dec 20, 2024
1 parent 4f199d0 commit ca58066
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/src/components/index.js'
export * from './dist/components.js'
2 changes: 1 addition & 1 deletion composables.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/src/composables/index.js'
export * from './dist/composables.js'
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,30 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/tres.d.ts",
"import": "./dist/tres.js",
"require": "./dist/tres.umd.cjs"
"require": "./dist/tres.cjs"
},
"./components": {
"types": "./dist/src/components/index.d.ts"
"types": "./dist/components.d.ts",
"default": "./dist/components.js"
},
"./composables": {
"types": "./dist/src/composables/index.d.ts"
"types": "./dist/composables.d.ts",
"default": "./dist/composables.js"
},
"./types": {
"types": "./dist/src/types/index.d.ts"
"types": "./dist/types.d.ts"
},
"./utils": {
"types": "./dist/src/utils/index.d.ts"
"types": "./dist/utils.d.ts",
"default": "./dist/utils.js"
},
"./*": "./*"
},
"main": "./dist/tres.js",
"main": "./dist/tres.cjs",
"module": "./dist/tres.js",
"types": "./dist/index.d.ts",
"types": "./dist/tres.d.ts",
"files": [
"*.d.ts",
"dist"
Expand All @@ -61,7 +64,7 @@
"docs:serve": "vitepress serve docs",
"docs:preview": "vitepress preview docs",
"docs:contributors": "esno scripts/update-contributors.ts",
"test:attw": "attw --pack --ignore-rules cjs-resolves-to-esm"
"test:attw": "attw --pack --ignore-rules false-esm --ignore-rules cjs-resolves-to-esm"
},
"peerDependencies": {
"three": ">=0.133",
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/src/types/index.js'
export * from './dist/types.js'
2 changes: 1 addition & 1 deletion utils.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/src/utils/index.js'
export * from './dist/utils.js'
9 changes: 7 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ export default defineConfig({
},
build: {
lib: {
entry: resolve(__dirname, 'src/index.ts'),
entry: {
tres: resolve(__dirname, 'src/index.ts'),
components: resolve(__dirname, 'src/components/index.ts'),
composables: resolve(__dirname, 'src/composables/index.ts'),
types: resolve(__dirname, 'src/types/index.ts'),
utils: resolve(__dirname, 'src/utils/index.ts'),
},
name: 'tres',
fileName: 'tres',
},
watch: {
include: [resolve(__dirname, 'src')],
Expand Down

0 comments on commit ca58066

Please sign in to comment.