MCPcopy Create free account
hub / github.com/microsoft/inshellisense / getVersion

Function getVersion

scripts/pkg-base.ts:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const SCRIPTS_DIR = "scripts";
11
12const getVersion = (): string => {
13 const packageJson = JSON.parse(fs.readFileSync("package.json", "utf-8"));
14 return packageJson.version;
15};
16
17const copyFiles = (): void => {
18 const mdFiles = fs.readdirSync(process.cwd()).filter((file) => file.endsWith(".md"));

Callers 1

generatePackageJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected