Skip to content

Commit a0b265b

Browse files
committed
fix: tsc errors blocking npm publish
Update tsconfig to remove deprecated 'moduleResolution: node' (now errors in TS 6.0+) and resolve missing globals/types so 'tsc' exits cleanly: - moduleResolution: node → bundler (matches module: esnext) - lib: add 'dom' for atob/WebAssembly globals - types: explicit 'node' + 'bun' (Buffer.toBase64 used by macro) Required because prepublishOnly runs 'bun run build' which now propagates tsc's non-zero exit, breaking 'npm publish'.
1 parent d980480 commit a0b265b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"compilerOptions": {
33
"target": "es2022",
44
"module": "esnext",
5-
"lib": ["es2022"],
5+
"lib": ["es2022", "dom"],
6+
"types": ["node", "bun"],
67
"strict": true,
7-
"moduleResolution": "node",
8+
"moduleResolution": "bundler",
89
"esModuleInterop": true,
910
"skipLibCheck": true,
1011
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)