Skip to content

Commit efeb585

Browse files
committed
chore: fix broken tests
1 parent 23e7287 commit efeb585

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
entries: [
5+
'src/const.ts',
6+
],
7+
})

const.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './dist/const'

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
},
2828
"./const": {
2929
"types": "./dist/const.d.ts",
30-
"import": "./dist/const.mjs",
31-
"require": "./dist/const.cjs"
30+
"import": "./dist/const.mjs"
3231
}
3332
},
3433
"main": "./dist/module.cjs",
3534
"types": "./dist/types.d.ts",
3635
"files": [
37-
"dist"
36+
"dist",
37+
"const.d.ts"
3838
],
3939
"scripts": {
4040
"prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",

0 commit comments

Comments
 (0)