File tree Expand file tree Collapse file tree
prepare-node-test-matrix-action Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict' ;
22
3- process . on ( 'unhandledRejection' , ( err ) => {
4-
5- throw err ;
6- } ) ;
7-
8-
93const ActionsCore = require ( '@actions/core' ) ;
10- const Fs = require ( 'fs' ) ;
11- const Path = require ( 'path' ) ;
4+ const Fs = require ( 'node: fs' ) ;
5+ const Path = require ( 'node: path' ) ;
126const Yaml = require ( 'yaml' ) ;
137
148
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- process . on ( 'unhandledRejection' , ( err ) => {
4-
5- throw err ;
6- } ) ;
7-
8-
93const ActionsCore = require ( '@actions/core' ) ;
10- const Path = require ( 'path' ) ;
4+ const Path = require ( 'node: path' ) ;
115const Schedule = require ( './schedule.json' ) ; // https://raw.githubusercontent.com/nodejs/Release/master/schedule.json
126const Semver = require ( 'semver' ) ;
137const Yaml = require ( 'yaml' ) ;
@@ -57,7 +51,7 @@ internals.normalizeRunsOn = function (runsOnInput) {
5751
5852exports . main = function ( { now = new Date ( ) , pkg = Package , debug = console . info } = { } ) {
5953
60- if ( ! pkg . engines || ! pkg . engines . node ) {
54+ if ( ! pkg ? .engines ? .node ) {
6155 throw new Error ( '`engines.node` range not defined in `package.json`.' ) ;
6256 }
6357
You can’t perform that action at this time.
0 commit comments