Skip to content

Commit 30bc3bb

Browse files
committed
chore: change module to preserve
1 parent 68b4971 commit 30bc3bb

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ declare global {
135135
}
136136
}
137137

138-
declare module globalThis {
138+
declare namespace globalThis {
139139
// eslint-disable-next-line @typescript-eslint/naming-convention
140140
export let __schemastery_index__: number
141141
export let __schemastery_refs__: Record<number, Schema> | undefined

packages/core/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "lib",
55
"rootDir": "src",
6+
"module": "preserve",
67
},
78
"include": [
89
"src",

tsconfig.base.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
"compilerOptions": {
33
"strict": true,
44
"target": "es2022",
5-
"module": "commonjs",
65
"sourceMap": true,
76
"declaration": true,
87
"emitDeclarationOnly": true,
98
"composite": true,
109
"incremental": true,
1110
"skipLibCheck": true,
1211
"esModuleInterop": true,
13-
"moduleResolution": "node",
1412
},
1513
}

0 commit comments

Comments
 (0)