@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
+2 -1
View File
@@ -16,6 +16,7 @@ module.exports = {
'^@actions/github$': '<rootDir>/packages/github/lib/github.js',
'^@actions/github/lib/utils$': '<rootDir>/packages/github/lib/utils.js',
'^@actions/glob$': '<rootDir>/packages/glob/lib/glob.js'
'^@actions/tool-cache$': '<rootDir>/packages/tool-cache/lib/tool-cache.js'
},
transform: {
'^.+\\.(ts|js)$': ['ts-jest', {
@@ -30,7 +31,7 @@ module.exports = {
}]
},
transformIgnorePatterns: [
'/node_modules/(?!(@octokit|@actions/github|@actions/http-client|@actions/io|@actions/exec|@actions/core|@actions/glob|universal-user-agent|before-after-hook)/)'
'/node_modules/(?!(@octokit|@actions/github|@actions/http-client|@actions/io|@actions/exec|@actions/core|@actions/glob|@actions/tool-cache|universal-user-agent|before-after-hook)/)'
],
verbose: true
}