mirror of
https://github.com/actions/setup-node
synced 2026-07-14 18:34:28 +02:00
Migrate to ESM and upgrade dependencies (#1574)
* Migrate to ESM * updated package.json version * Update README for v6 and clean up dev dependencies * Remove unused ts-node * fix audit issue --------- Co-authored-by: gowridurgad <gowridurgad@gmail.com>
This commit is contained in:
co-authored by
gowridurgad
parent
04be95cf35
commit
8207627860
+2
-2
@@ -4,7 +4,7 @@ import * as cache from '@actions/cache';
|
||||
import * as glob from '@actions/glob';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import {unique} from './util';
|
||||
import {unique} from './util.js';
|
||||
|
||||
export interface PackageManagerInfo {
|
||||
name: string;
|
||||
@@ -91,7 +91,7 @@ export const getCommandOutputNotEmpty = async (
|
||||
error: string,
|
||||
cwd?: string
|
||||
): Promise<string> => {
|
||||
const stdOut = getCommandOutput(toolCommand, cwd);
|
||||
const stdOut = await getCommandOutput(toolCommand, cwd);
|
||||
if (!stdOut) {
|
||||
throw new Error(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user