Skip to content

Commit e8e86cf

Browse files
committed
fix: Fix an issue where building with a project of "type": "module" would fail because conditional exports were not defined in "exports" ([#12](#12))
1 parent 35f4535 commit e8e86cf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
},
2222
"exports": {
2323
"types": "./dist/index.d.ts",
24-
"import": "./dist/index.mjs",
25-
"require": "./dist/index.js"
24+
"import": "./dist/index.js",
25+
"require": "./dist/index.cjs"
2626
},
27-
"main": "dist/index.js",
28-
"module": "dist/index.mjs",
27+
"main": "dist/index.cjs",
28+
"module": "dist/index.js",
2929
"types": "dist/index.d.ts",
3030
"files": [
3131
"dist",
@@ -48,15 +48,15 @@
4848
"critical": "^5.0.0"
4949
},
5050
"devDependencies": {
51-
"@antfu/ni": "^0.18.8",
52-
"@types/node": "^18.0.0",
53-
"@typescript-eslint/eslint-plugin": "^5.0.0",
54-
"@vitest/coverage-c8": "^0.25.7",
51+
"@antfu/ni": "^0.21.0",
52+
"@types/node": "^20.0.0",
53+
"@typescript-eslint/eslint-plugin": "^6.0.0",
54+
"@vitest/coverage-v8": "^1.0.0-beta.5",
5555
"eslint": "^8.0.0",
56-
"rollup": "^3.0.0",
57-
"tsup": "^6.0.0",
56+
"rollup": "^4.0.0",
57+
"tsup": "^8.0.0",
5858
"typescript": "latest",
59-
"vite": "^4.0.0",
60-
"vitest": "^0.25.7"
59+
"vite": "^5.0.0",
60+
"vitest": "^1.0.0-beta.5"
6161
}
6262
}

0 commit comments

Comments
 (0)