()
| 5 | import { spawn } from 'node:child_process'; |
| 6 | |
| 7 | function getRepoRoot() { |
| 8 | const __filename = fileURLToPath(import.meta.url); |
| 9 | const __dirname = path.dirname(__filename); |
| 10 | return path.resolve(__dirname, '../..'); |
| 11 | } |
| 12 | |
| 13 | function runCargoAndAppend({ cwd, outFilePath }) { |
| 14 | return new Promise((resolve, reject) => { |