Skip to content

Commit bd60c1a

Browse files
committed
Update package.json with module and types paths
1 parent 98b7b5e commit bd60c1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"exports": {
2222
".": {
2323
"import": {
24-
"types": "./dist/mod.js",
25-
"path": "./dist/mod.d.ts"
24+
"module": "./dist/mod.js",
25+
"types": "./dist/mod.d.ts"
2626
},
2727
"require": {
28-
"types": "./dist/mod.djs",
29-
"path": "./dist/mod.d.cts"
28+
"module": "./dist/mod.cjs",
29+
"types": "./dist/mod.d.cts"
3030
}
3131
}
3232
},
@@ -36,8 +36,8 @@
3636
"dist"
3737
],
3838
"scripts": {
39-
"build": "rimraf dist && tsup --format cjs,esm src/mod.ts --dts src/mod.ts",
40-
"build:watch": "tsup --watch --format cjs,esm src/mod.ts --dts src/mod.ts",
39+
"build": "rimraf dist && tsup --format cjs,esm src/mod.ts --dts",
40+
"build:watch": "tsup --watch --format cjs,esm src/mod.ts --dts",
4141
"changelog": "auto-changelog --stdout --hide-credit true --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs",
4242
"lint": "prettier . --check && eslint . && tsc --noEmit",
4343
"lint:fix": "prettier . --write . && eslint . --fix",

0 commit comments

Comments
 (0)