()
| 44 | } |
| 45 | |
| 46 | function installDependencies() { |
| 47 | const packageManager = getPackageManager(); |
| 48 | |
| 49 | try { |
| 50 | execSync(`${packageManager} install`, { stdio: "inherit" }); |
| 51 | } catch (error) { |
| 52 | if (packageManager === "npm") { |
| 53 | throw error; |
| 54 | } |
| 55 | |
| 56 | console.warn( |
| 57 | `Failed to install dependencies with ${packageManager}. Falling back to npm.`, |
| 58 | ); |
| 59 | execSync("npm install", { stdio: "inherit" }); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | installDependencies(); |
| 64 | try { |
no test coverage detected