Skip to content

Commit

Permalink
fix(projects): fix types export
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Aug 27, 2023
1 parent d854544 commit 5920cc0
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 155 deletions.
2 changes: 1 addition & 1 deletion examples/template-vue/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"allowSyntheticDefaultImports": true,
"jsx": "preserve",
"jsxImportSource": "vue",
"moduleResolution": "bundler",
"moduleResolution": "node",
"isolatedModules": true,
"resolveJsonModule": true,
"noUnusedLocals": true,
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,5 @@
"eslint-config-soybeanjs": "0.5.4",
"simple-git-hooks": "2.9.0",
"tsx": "3.12.7"
},
"pnpm": {
"patchedDependencies": {
"@elegant-router/vue@0.1.5": "patches/@elegant-router__vue@0.1.5.patch"
}
}
}
29 changes: 16 additions & 13 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,38 @@
"bugs": {
"url": "https://github.com/soybeanjs/elegant-router/issues"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
},
"./vite": {
"types": "./dist/vite.d.ts",
"import": "./dist/vite.mjs",
"require": "./dist/vite.cjs"
"require": "./dist/vite.cjs",
"import": "./dist/vite.mjs"
},
"./webpack": {
"types": "./dist/webpack.d.ts",
"import": "./dist/webpack.mjs",
"require": "./dist/webpack.cjs"
"require": "./dist/webpack.cjs",
"import": "./dist/webpack.mjs"
},
"./rollup": {
"types": "./dist/rollup.d.ts",
"import": "./dist/rollup.mjs",
"require": "./dist/rollup.cjs"
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.mjs"
},
"./esbuild": {
"types": "./dist/esbuild.d.ts",
"import": "./dist/esbuild.mjs",
"require": "./dist/esbuild.cjs"
}
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.mjs"
},
"./*": "./*"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
Expand All @@ -54,7 +56,8 @@
"typesVersions": {
"*": {
"*": [
"./dist/*"
"./dist/*",
"./*"
]
}
},
Expand Down
Loading

0 comments on commit 5920cc0

Please sign in to comment.