MCPcopy
hub / github.com/t3-oss/create-t3-app / getNpmVersion

Function getNpmVersion

cli/src/utils/renderVersionWarning.ts:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71export 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 });

Callers 1

mainFunction · 0.85

Calls 1

checkForLatestVersionFunction · 0.85

Tested by

no test coverage detected