Skip to content

Commit

Permalink
chore: add types to build config file
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Nov 10, 2024
1 parent 60c2ef5 commit b64eade
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
entries: [
'src/module',
// Chunking
'src/types'
],
externals: ['node:fs', 'node:url', 'webpack', '@babel/parser', 'unplugin-vue-router', 'unplugin-vue-router/options']
})
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"exports": {
".": {
"types": "./dist/module.d.mts",
"types": "./dist/types.d.mts",
"default": "./dist/module.mjs"
},
"./package.json": "./package.json"
Expand All @@ -44,7 +44,7 @@
"#i18n": "./dist/runtime/composables/index.js"
},
"main": "./dist/module.mjs",
"types": "./dist/module.d.ts",
"types": "./dist/types.d.ts",
"files": [
"dist",
"internals.d.ts"
Expand Down

0 comments on commit b64eade

Please sign in to comment.