* @param {string} path * @returns {Promise }
(path)
| 9 | * @returns {Promise<boolean>} |
| 10 | */ |
| 11 | async function pathExists(path) { |
| 12 | try { |
| 13 | await fs.access(path); |
| 14 | return true; |
| 15 | } catch (_err) { |
| 16 | return false; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | const PACKAGE_JSON_PATH = './package.json'; |
| 21 |