(cwd = process.cwd())
| 6 | import { fileURLToPath } from 'node:url'; |
| 7 | |
| 8 | export function getDependencies(cwd = process.cwd()) { |
| 9 | const pkgPath = path.join(cwd, 'package.json'); |
| 10 | const pkg = JSON.parse(readFileSync(pkgPath, 'utf8')); |
| 11 | return Object.keys(pkg.dependencies || {}); |
| 12 | } |
| 13 | |
| 14 | function parseTsConfig(tsconfigPath) { |
| 15 | const parsedConfig = ts.readConfigFile(tsconfigPath, ts.sys.readFile); |