修复 `test:TypeScript` 脚本以兼容 Windows
作者: shivarm创建于 2026年9月30日更新于 2026年9月30日
标签bug
在 Windows 中出现错误```bash PS C:\Users\shivams\Desktop\open-source\\undici> npm run test:TypeScript npm notice run [email protected] test:TypeScript npm notice run tsd && tsc test/imports/undici-import.ts --typeRoots ./types --noEmit && tsc ./types/.d.ts --noEmit --typeRoots ./types error TS6053: 文件 './types/.d.ts' 不存在。 该文件存在于程序中,因为: 为编译指定的根文件
内容来源: nodejs/undici