@actions/exec: convert to ESM module

This commit is contained in:
Daniel Kennedy
2026-01-28 13:55:13 -05:00
parent a6e9f4bab2
commit 123c3678fa
16 changed files with 63 additions and 36 deletions
@@ -15,10 +15,10 @@ if (!filePath) {
throw new Error('file is not specified')
}
// Spawn wait-for-file.js with inherited stdio
// Spawn wait-for-file.cjs with inherited stdio
// This creates a grandchild process that holds the stdio handles open
// after this process (the child) exits
const waitScript = path.join(__dirname, 'wait-for-file.js')
const waitScript = path.join(__dirname, 'wait-for-file.cjs')
const isWindows = process.platform === 'win32'
// On Windows, use detached:true to properly keep streams open