Skip to content

Commit

Permalink
fix: package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed May 18, 2023
1 parent c480486 commit 7c9e41a
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 15 deletions.
Empty file added components.cjs
Empty file.
1 change: 1 addition & 0 deletions components.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/components/index.js'
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/components/index.js'
Empty file added composables.cjs
Empty file.
1 change: 1 addition & 0 deletions composables.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/composables/index.js'
1 change: 1 addition & 0 deletions composables.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/composables/index.js'
Empty file added index.cjs
Empty file.
1 change: 1 addition & 0 deletions index.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/index.js'
73 changes: 58 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,72 @@
"type": "module",
"packageManager": "[email protected]",
"author": "Alvaro Saburido <[email protected]> (https://github.com/alvarosabu/)",
"files": [
"dist",
"*.d.ts"
],
"license": "MIT",
"main": "./dist/tres.umd.cjs",
"module": "./dist/tres.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/tres.js",
"require": "./dist/tres.umd.cjs"
"require": {
"types": "./index.d.cts",
"default": "./index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./*": "./*",
"./components": {
"types": "./dist/types/tres-components.d.ts"
"require": {
"types": "./components.d.cts",
"default": "./components.cjs"
},
"import": {
"types": "./dist/components/index.d.ts",
"default": "./dist/components/index.js"
}
},
"./composables": {
"require": {
"types": "./composables.d.cts",
"default": "./composables.cjs"
},
"import": {
"types": "./dist/composables/index.d.ts",
"default": "./dist/composables/index.js"
}
},
"./*": {
"types": "./dist/types/*",
"import": "./dist/tres.js",
"require": "./dist/tres.umd.cjs"
"./types": {
"require": {
"types": "./types.d.cts"
},
"import": {
"types": "./dist/types/index.d.ts"
}
},
"./utils": {
"require": {
"types": "./utils.d.cts",
"default": "./utils.cjs"
},
"import": {
"types": "./dist/utils/index.d.ts",
"default": "./dist/utils/index.js"
}
}
},
"main": "./dist/tres.js",
"module": "./dist/tres.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"*.d.ts",
"*.d.cts",
"components.cjs",
"composables.cjs",
"index.cjs",
"index.d.cts",
"utils.cjs"
],
"publishConfig": {
"access": "public"
},
Expand Down
Empty file added types.cjs
Empty file.
1 change: 1 addition & 0 deletions types.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/types/index.js'
1 change: 1 addition & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/types/index.js'
Empty file added utils.cjs
Empty file.
1 change: 1 addition & 0 deletions utils.d.cts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/utils/index.js'
1 change: 1 addition & 0 deletions utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/utils/index.js'

0 comments on commit 7c9e41a

Please sign in to comment.