mirror of
https://github.com/actions/setup-node.git
synced 2025-11-21 00:45:28 +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
357 B
TypeScript
14 lines
357 B
TypeScript
import BaseDistribution from '../base-distribution.js';
|
|
import {NodeInputs} from '../base-models.js';
|
|
|
|
export default class RcBuild extends BaseDistribution {
|
|
constructor(nodeInfo: NodeInputs) {
|
|
super(nodeInfo);
|
|
}
|
|
|
|
getDistributionUrl(mirror: string): string {
|
|
const url = mirror || 'https://nodejs.org';
|
|
return `${url}/download/rc`;
|
|
}
|
|
}
|