MCPcopy Create free account
hub / github.com/fontsource/fontsource / init

Function init

packages/publish/src/init.ts:7–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import type { Context } from './types';
6
7const init = async (): Promise<void> => {
8 const configPath = path.join(process.cwd(), 'font-publish.json');
9
10 const defaultConfig: Context = {
11 packages: ['./packages/'],
12 commitMessage: 'chore: release new versions',
13 };
14
15 await fs.writeFile(configPath, stringify(defaultConfig));
16};
17
18export { init };

Callers 2

cli.tsFile · 0.90
init.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected