@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
@@ -12,7 +12,7 @@ process.env['RUNNER_TEMP'] = tempPath
process.env['RUNNER_TOOL_CACHE'] = cachePath
// eslint-disable-next-line import/first
import * as tc from '../src/tool-cache'
import * as tc from '../src/tool-cache.js'
const IS_WINDOWS = process.platform === 'win32'
const IS_MAC = process.platform === 'darwin'