Skip to content

Commit 4bebfef

Browse files
committed
Better TS check
1 parent cb389b7 commit 4bebfef

4 files changed

Lines changed: 36 additions & 11 deletions

File tree

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"make-dir": "5.1.0",
8787
"parent-module": "3.2.0",
8888
"prettier": "3.5.3",
89+
"rollup": "4.59.0",
8990
"rimraf": "6.0.1",
9091
"ts-node": "10.9.2",
9192
"tsx": "4.19.3",
@@ -138,6 +139,9 @@
138139
],
139140
"overrides": {
140141
"glob": "11.1.0"
142+
},
143+
"patchedDependencies": {
144+
"vite": "patches/vite.patch"
141145
}
142146
}
143147
}

patches/vite.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/dist/node/index.d.ts b/dist/node/index.d.ts
2+
index f725d4ac42a2dcf9146818ba0a196d005d570fb0..1add103d537c46147a99531a0e50ac0354462af3 100644
3+
--- a/dist/node/index.d.ts
4+
+++ b/dist/node/index.d.ts
5+
@@ -2,7 +2,7 @@
6+
import { PluginHooks, RollupError, SourceMap, ModuleInfo, PartialResolvedId, RollupOptions, InputOption, ModuleFormat, WatcherOptions, RollupOutput, RollupWatcher, PluginContext, InputOptions, CustomPluginOptions, LoadResult, SourceDescription, PluginContextMeta, RollupLog, OutputBundle, OutputChunk, ObjectHook, ResolveIdResult, TransformPluginContext, ExistingRawSourceMap, SourceMapInput, GetManualChunk } from 'rollup';
7+
import * as rollup from 'rollup';
8+
export { rollup as Rollup };
9+
-export { parseAst, parseAstAsync } from 'rollup/parseAst';
10+
+export { parseAst, parseAstAsync } from 'rollup/dist/parseAst.js';
11+
import * as http from 'node:http';
12+
import { OutgoingHttpHeaders, ClientRequestArgs, IncomingMessage, ClientRequest, Agent, Server, ServerResponse } from 'node:http';
13+
import { Http2SecureServer } from 'node:http2';

pnpm-lock.yaml

Lines changed: 17 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"compilerOptions": {
33
"module": "esnext",
44
"target": "es2021",
5-
"lib": ["es2021"],
5+
"lib": ["es2021", "dom"],
66
"outDir": "dist",
7-
"skipLibCheck": true,
7+
"skipLibCheck": false,
88
"declaration": true,
99
"declarationMap": true,
1010
"importHelpers": true,

0 commit comments

Comments
 (0)