Commit 0b24518
committed
fix(build): 修复 TypeScript 配置以兼容 tsgo 编译器
scripts/node 项目中将 module 设置为 Preserve,moduleResolution 设置为 Bundler,
以解决 tsgo 基于新版本 TypeScript 时 node 模块解析问题。
json-diff-tool 项目中添加 types: ["node"] 配置,显式声明 Node 全局类型,
避免 process、console、NodeJS 和 node: 内建模块在快检阶段丢失类型。1 parent f7398ec commit 0b24518
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
0 commit comments