feat: esm-only by default

This commit is contained in:
Anthony Fu committed 2025-01-15 20:53:40 +08:00
1 parent 2036435c45
commit a4c4a820ec
5 files changed
+69 -66

No files matched your search

+8 -12
View File
@@ -2,7 +2,7 @@
"name": "pkg-placeholder",
"type": "module",
"version": "0.0.0",
"packageManager": "pnpm@9.15.3",
"packageManager": "pnpm@9.15.4",
"description": "_description_",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
@@ -16,15 +16,11 @@
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
".": "./dist/index.mjs"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"types": "./dist/index.d.mts",
"typesVersions": {
"*": {
"*": [
@@ -50,16 +46,16 @@
"devDependencies": {
"@antfu/eslint-config": "^3.14.0",
"@antfu/ni": "^23.2.0",
"@antfu/utils": "^8.0.0",
"@types/node": "^22.10.5",
"bumpp": "^9.10.0",
"@antfu/utils": "^8.1.0",
"@types/node": "^22.10.6",
"bumpp": "^9.10.1",
"eslint": "^9.18.0",
"lint-staged": "^15.3.0",
"pnpm": "^9.15.3",
"pnpm": "^9.15.4",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"unbuild": "^3.3.0",
"unbuild": "^3.3.1",
"vite": "^6.0.7",
"vitest": "^2.1.8"
},