MCPcopy
hub / github.com/ts-essentials/ts-essentials / writeTsVersion

Function writeTsVersion

scripts/sync-ts-version.js:9–11  ·  view source on GitHub ↗
(tsVersion, filename)

Source from the content-addressed store, hash-verified

7 * @param {string} filename
8 */
9const writeTsVersion = (tsVersion, filename) => {
10 fs.writeFileSync(filename, `export type TsVersion = "${tsVersion}";\n`);
11};
12
13const tsVersion = findTsVersion("yarn.lock");
14if (tsVersion === undefined) {

Callers 1

sync-ts-version.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…