(filepath: string, content: unknown)
| 42 | } |
| 43 | |
| 44 | async function writeJSONFile(filepath: string, content: unknown) { |
| 45 | await writeFile(filepath, JSON.stringify(content, null, 2) + '\n'); |
| 46 | } |
| 47 | |
| 48 | const rootPkg = await readJSONFile<PackageJson>(path.join(process.cwd(), 'package.json')); |
| 49 | const rootNodeRange = rootPkg.engines?.['node']; |