mirror of
https://github.com/actions/stale.git
synced 2026-08-21 16:13:08 +01:00
- Changed import statements across multiple files to use the .js extension for ES module compatibility. - Refactored test files to utilize jest's unstable_mockModule for mocking core actions. - Removed unnecessary spy instances in tests, replacing them with direct mocked function calls. - Updated TypeScript configuration to target ES2022 and use NodeNext module resolution. - Removed the tsconfig.spec.json file and adjusted the main tsconfig.json to exclude test files.
16 lines
983 B
JSON
16 lines
983 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022" /* Emit ES2022-compatible JavaScript. */,
|
|
"module": "NodeNext" /* Use Node.js ESM module semantics. */,
|
|
"moduleResolution": "NodeNext" /* Resolve modules using Node.js ESM rules. */,
|
|
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
|
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
|
"strict": true /* Enable all strict type-checking options. */,
|
|
"isolatedModules": true /* Improve compatibility with the NodeNext Jest/ts-jest pipeline. */,
|
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
"useUnknownInCatchVariables": false /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
//"sourceMap": true
|
|
},
|
|
"exclude": ["__tests__", "jest.config.ts"]
|
|
}
|