()
| 69 | } |
| 70 | |
| 71 | export const getNpmVersion = () => |
| 72 | // `fetch` to the registry is faster than `npm view` so we try that first |
| 73 | checkForLatestVersion().catch(() => { |
| 74 | try { |
| 75 | return execSync("npm view create-t3-app version").toString().trim(); |
| 76 | } catch { |
| 77 | return null; |
| 78 | } |
| 79 | }); |
no test coverage detected