@actions/tool-cache: convert to an ESM module (#2274)

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

* Fix jest config

* Downgrade `nock` since it's conflicting with `@actions/attest`'s version
This commit is contained in:
Daniel Kennedy
2026-01-29 11:26:14 -05:00
committed by GitHub
parent 7a0147b5c6
commit 9d912b1840
10 changed files with 99 additions and 85 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) {