MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / esmBootstrap

Function esmBootstrap

@commitlint/load/src/load.test.ts:273–284  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

271 };
272
273 const esmBootstrap = (cwd: string) => {
274 const packageJsonPath = path.join(cwd, "package.json");
275 const packageJSON = JSON.parse(readFileSync(packageJsonPath, { encoding: "utf-8" }));
276
277 writeFileSync(
278 packageJsonPath,
279 JSON.stringify({
280 ...packageJSON,
281 type: "module",
282 }),
283 );
284 };
285
286 const templateFolder = [template, isExtendsTemplate ? "js" : "", "template"]
287 .filter((elem) => elem)

Callers 1

load.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected