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:
gowridurgad
2026-07-13 21:38:27 -05:00
committed by GitHub
co-authored by gowridurgad
parent 04be95cf35
commit 8207627860
86 changed files with 108799 additions and 102919 deletions
+2 -2
View File
@@ -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);
}