mirror of
https://github.com/Azure/setup-helm.git
synced 2026-07-05 12:39:34 +00:00
Migrate to ESM with esbuild/vitest and upgrade to node24 (#260)
- Add "type": "module" to package.json for ESM support - Replace ncc with esbuild for bundling (with createRequire banner for CJS compat) - Replace jest/ts-jest with vitest for testing - Upgrade @actions/core to ^3.0.0, @actions/exec to ^3.0.0, @actions/io to ^3.0.2, @actions/tool-cache to 4.0.0 (ESM-only versions) - Update tsconfig.json to use NodeNext module resolution - Convert all tests to use vi.mock() factory pattern for ESM-only module compatibility - Update action.yml runtime from node20 to node24 - Bump version from 4.3.1 to 5.0.0 (major version bump for breaking node runtime change)
This commit is contained in:
parent
3894c84c36
commit
1e2e44e1bc
8 changed files with 1682 additions and 4424 deletions
|
|
@ -131,7 +131,7 @@ export async function downloadHelm(
|
|||
|
||||
export function findHelm(rootFolder: string): string {
|
||||
fs.chmodSync(rootFolder, '777')
|
||||
var filelist: string[] = []
|
||||
let filelist: string[] = []
|
||||
walkSync(rootFolder, filelist, helmToolName + getExecutableExtension())
|
||||
if (!filelist || filelist.length == 0) {
|
||||
throw new Error(
|
||||
|
|
@ -142,8 +142,8 @@ export function findHelm(rootFolder: string): string {
|
|||
}
|
||||
}
|
||||
|
||||
export var walkSync = function (dir, filelist, fileToFind) {
|
||||
var files = fs.readdirSync(dir)
|
||||
export function walkSync(dir, filelist, fileToFind) {
|
||||
const files = fs.readdirSync(dir)
|
||||
filelist = filelist || []
|
||||
files.forEach(function (file) {
|
||||
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue