mirror of
https://github.com/actions/setup-node.git
synced 2025-11-07 13:06:55 +00:00
- Added package.json in dist/setup to specify module type as ESM. - Updated jest.config.js to support ESM with ts-jest and added moduleNameMapper for .js extensions. - Created jest.setup.js to ensure Jest globals are available in ESM mode. - Modified test script in package.json to use node with experimental VM modules for Jest. - Updated imports in various distribution files to include .js extensions for ESM compatibility. - Adjusted tsconfig.json to exclude __tests__ directory and maintain ESM settings. - Updated package-lock.json to include new dependencies and their versions.
14 lines
1.2 KiB
JSON
14 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
|
"module": "es2022", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' or 'classic'. */
|
|
"outDir": "./lib", /* Redirect output structure to the directory. */
|
|
"sourceMap": true,
|
|
"strict": true, /* Enable all strict type-checking options. */
|
|
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
"resolveJsonModule": true, /* Allows importing modules with a '.json' extension, which is a common practice in node projects. */
|
|
},
|
|
"exclude": ["lib", "node_modules"]
|
|
}
|