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

Function updateTsConfig

scripts/update-test-tsconfig.js:37–45  ·  view source on GitHub ↗
(tsVersion, filename)

Source from the content-addressed store, hash-verified

35 * @param {string} filename
36 */
37const updateTsConfig = async (tsVersion, filename) => {
38 const buffer = await fs.readFile(filename);
39 const jsonString = buffer.toString("utf8");
40 const json = JSON.parse(jsonString);
41
42 applyRules(json, tsVersion);
43
44 await fs.writeFile(filename, JSON.stringify(json, null, " "));
45};
46
47const tsVersion = findTsVersion("yarn.lock");
48if (tsVersion === undefined) {

Callers 1

Calls 1

applyRulesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…