{ "compilerOptions": { /* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "target": "ESNext", /* Specify a set of bundled library declaration files that describe the target runtime environment. */ "lib": [ "esnext" ], /* Specify what JSX code is generated. */ "jsx": "react-jsx", /* Specify what module code is generated. */ "module": "ESNext", /* Specify how TypeScript looks up a file from a given module specifier. */ "moduleResolution": "node", /* Specify type package names to be included without being referenced in a source file. */ "types": [ //"@cloudflare/workers-types/2023-07-01", "node" ], /* Enable importing .json files */ "resolveJsonModule": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ "allowJs": true, /* Enable error reporting in type-checked JavaScript files. */ "checkJs": false, /* Ensure that each file can be safely transpiled without relying on other imports. */ "isolatedModules": true, /* Allow 'import x from y' when a module doesn't have a default export. */ "allowSyntheticDefaultImports": true, /* Ensure that casing is correct in imports. */ "forceConsistentCasingInFileNames": true, /* Enable all strict type-checking options. */ "strict": true, /* Skip type checking all .d.ts files. */ "skipLibCheck": true, "outDir": "./dist-server", // 输出到 dist "noEmit": false, //允许编译器生成 JavaScript 输出文件 }, "exclude": [ "test" ], "include": [ "worker-configuration.d.ts", "functions/types.d.ts", "index.ts", "functions/**/*.ts" ] }