Skip to content

Commit 0ce591c

Browse files
committed
chore: ci
1 parent 9c77f00 commit 0ce591c

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ jobs:
6969
node-version: lts/*
7070
cache: pnpm
7171
- run: pnpm i
72+
- run: pnpm build
7273
- run: pnpm test

packages/unlighthouse/config.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { UserConfig } from '@unlighthouse/core'
2+
import type { ConfigLayerMeta, DefineConfig } from 'c12'
3+
4+
export { UserConfig } from 'nuxt/schema'
5+
6+
export interface DefineUnlighthouseConfig extends DefineConfig<UserConfig, ConfigLayerMeta> {}
7+
export declare const defineUnlighthouseConfig: DefineUnlighthouseConfig

packages/unlighthouse/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,24 @@
2626
"types": "./types.d.mts",
2727
"import": "./dist/index.mjs"
2828
},
29-
"./config": "./config.mjs",
29+
"./config": {
30+
"types": {
31+
"import": "./config.d.mts",
32+
"default": "./config.d.ts"
33+
},
34+
"import": "./config.mjs"
35+
},
3036
"./package.json": "./package.json"
3137
},
3238
"main": "./dist/index.mjs",
3339
"types": "./types.d.ts",
34-
"typesVersions": {
35-
"*": {
36-
"config": [
37-
"dist/config"
38-
]
39-
}
40-
},
4140
"bin": {
4241
"unlighthouse": "bin/unlighthouse.mjs",
4342
"unlighthouse-ci": "bin/unlighthouse-ci.mjs"
4443
},
4544
"files": [
4645
"config.d.mts",
46+
"config.d.ts",
4747
"config.mjs",
4848
"dist",
4949
"types.d.mts",

packages/unlighthouse/types.d.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from './dist/index.js'
1+
import type { UserConfig } from '@unlighthouse/core'
22

3-
declare global {
4-
import type { UserConfig } from '@unlighthouse/core'
3+
export * from './dist/index.mjs'
54

5+
declare global {
66
const defineUnlighthouseConfig: UserConfig | (() => UserConfig) | (() => Promise<UserConfig>)
77
}

packages/unlighthouse/types.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { DefineUnlighthouseConfig } from 'unlighthouse/config'
1+
import type { UserConfig } from '@unlighthouse/core'
22

3-
export * from './dist/index'
3+
export * from '@unlighthouse/core'
44

55
declare global {
6-
const defineUnlighthouseConfig: DefineUnlighthouseConfig
6+
const defineUnlighthouseConfig: UserConfig | (() => UserConfig) | (() => Promise<UserConfig>)
77
}

0 commit comments

Comments
 (0)