File tree Expand file tree Collapse file tree 5 files changed +22
-14
lines changed
Expand file tree Collapse file tree 5 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 6969 node-version : lts/*
7070 cache : pnpm
7171 - run : pnpm i
72+ - run : pnpm build
7273 - run : pnpm test
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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
55declare global {
6- const defineUnlighthouseConfig : DefineUnlighthouseConfig
6+ const defineUnlighthouseConfig : UserConfig | ( ( ) => UserConfig ) | ( ( ) => Promise < UserConfig > )
77}
You can’t perform that action at this time.
0 commit comments