@actions/tool-cache: convert to an ESM module

This commit is contained in:
Daniel Kennedy
2026-01-29 10:54:08 -05:00
parent 7a0147b5c6
commit 1f913ea3b2
10 changed files with 164 additions and 110 deletions
+3 -4
View File
@@ -2,7 +2,7 @@ import * as core from '@actions/core'
import * as io from '@actions/io'
import * as crypto from 'crypto'
import * as fs from 'fs'
import * as mm from './manifest'
import * as mm from './manifest.js'
import * as os from 'os'
import * as path from 'path'
import * as httpm from '@actions/http-client'
@@ -11,9 +11,8 @@ import * as stream from 'stream'
import * as util from 'util'
import {ok} from 'assert'
import {OutgoingHttpHeaders} from 'http'
import {exec} from '@actions/exec/lib/exec'
import {ExecOptions} from '@actions/exec/lib/interfaces'
import {RetryHelper} from './retry-helper'
import {exec, ExecOptions} from '@actions/exec'
import {RetryHelper} from './retry-helper.js'
export class HTTPError extends Error {
constructor(readonly httpStatusCode: number | undefined) {