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. |
||
|---|---|---|
| .. | ||
| data | ||
| mock | ||
| authutil.test.ts | ||
| cache-restore.test.ts | ||
| cache-save.test.ts | ||
| cache-utils.test.ts | ||
| canary-installer.test.ts | ||
| main.test.ts | ||
| nightly-installer.test.ts | ||
| official-installer.test.ts | ||
| prepare-yarn-subprojects.sh | ||
| problem-matcher.test.ts | ||
| rc-installer.test.ts | ||
| README.md | ||
| verify-arch.sh | ||
| verify-node.sh | ||
Files located in data directory are used only for testing purposes.
Here the list of files in the data directory
.nvmrc,.tools-versionsandpackage.jsonare used to test node-version-file logicpackage-lock.json,pnpm-lock.yamlandyarn.lockare used to test cache logicversions-manifest.jsonis used for unit testing to check downloading Node.js versions from the node-versions repository.node-dist-index.jsonis used for unit testing to check downloading Node.js versions from the official site. The file was constructed from https://nodejs.org/dist/index.jsonnode-rc-index.jsonis used for unit testing to check downloading Node.js rc versions from the official site. The file was constructed from https://nodejs.org/download/rc/index.jsonnode-nightly-index.jsonis used for unit testing to check downloading Node.js nightly builds from the official site. The file was constructed from https://nodejs.org/download/nightly/index.json