chore: fix dev exports

This commit is contained in:
Kevin Deng
2025-10-07 00:35:38 +08:00
parent cbebe51d71
commit fcaca3d3f9
3 changed files with 23 additions and 3 deletions

View File

@@ -9,9 +9,18 @@
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"dev": "./src/index.ts",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"publishConfig": {
"exports": {
".": "./dist/index.mjs",
"./package.json": "./package.json"
}
},
"repository": {
"type": "git",

View File

@@ -10,9 +10,18 @@
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"dev": "./src/index.ts",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"publishConfig": {
"exports": {
".": "./dist/index.mjs",
"./package.json": "./package.json"
}
},
"repository": {
"type": "git",

View File

@@ -10,6 +10,8 @@ export default defineConfig({
target: 'node20.19',
platform: 'neutral',
inlineOnly: [],
exports: true,
exports: {
devExports: 'dev',
},
fixedExtension: true,
});