Skip to content

Commit 70c6799

Browse files
committed
fix: add dist folder to subpath imports
1 parent 7b861e4 commit 70c6799

File tree

2 files changed

+70
-260
lines changed

2 files changed

+70
-260
lines changed

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
"types": "./dist/index.d.ts",
2929
"sideEffects": false,
3030
"imports": {
31-
"#root/*": "./src/*"
31+
"#root/*": {
32+
"import": "./dist/*",
33+
"default": "./src/*"
34+
}
3235
},
3336
"exports": {
3437
".": "./dist/index.js",
@@ -81,7 +84,7 @@
8184
},
8285
"devDependencies": {
8386
"@babel/core": "^7.23.6",
84-
"@commitlint/cli": "^17.7.1",
87+
"@commitlint/cli": "^18.4.3",
8588
"@commitlint/config-conventional": "^18.4.3",
8689
"@commitlint/cz-commitlint": "^18.4.3",
8790
"@jamesacarr/jest-reporter-github-actions": "^0.0.4",

0 commit comments

Comments
 (0)