Skip to content

Commit fcaca3d

Browse files
committed
chore: fix dev exports
1 parent cbebe51 commit fcaca3d

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

packages/babel-plugin-jsx/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,18 @@
1010
"module": "./dist/index.mjs",
1111
"types": "./dist/index.d.mts",
1212
"exports": {
13-
".": "./dist/index.mjs",
13+
".": {
14+
"dev": "./src/index.ts",
15+
"default": "./dist/index.mjs"
16+
},
1417
"./package.json": "./package.json"
1518
},
19+
"publishConfig": {
20+
"exports": {
21+
".": "./dist/index.mjs",
22+
"./package.json": "./package.json"
23+
}
24+
},
1625
"repository": {
1726
"type": "git",
1827
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",

packages/babel-plugin-resolve-type/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@
1111
"module": "./dist/index.mjs",
1212
"types": "./dist/index.d.mts",
1313
"exports": {
14-
".": "./dist/index.mjs",
14+
".": {
15+
"dev": "./src/index.ts",
16+
"default": "./dist/index.mjs"
17+
},
1518
"./package.json": "./package.json"
1619
},
20+
"publishConfig": {
21+
"exports": {
22+
".": "./dist/index.mjs",
23+
"./package.json": "./package.json"
24+
}
25+
},
1726
"repository": {
1827
"type": "git",
1928
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",

tsdown.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export default defineConfig({
1010
target: 'node20.19',
1111
platform: 'neutral',
1212
inlineOnly: [],
13-
exports: true,
13+
exports: {
14+
devExports: 'dev',
15+
},
1416
fixedExtension: true,
1517
});

0 commit comments

Comments
 (0)