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

Function bump

packages/publish/src/bump.ts:87–102  ·  view source on GitHub ↗
(version: string, options: BumpFlags)

Source from the content-addressed store, hash-verified

85};
86
87export const bump = async (version: string, options: BumpFlags) => {
88 if (!isValidBumpArg(version)) {
89 throw new Error('Incorrect bump argument.');
90 }
91 consola.info(
92 `${colors.bold(colors.blue('Verifying packages...'))} ${
93 options.forcePublish ? colors.red(colors.bold('[FORCE]')) : ''
94 }`,
95 );
96 const config = await mergeFlags(options);
97 const diff = await getChanged(config);
98 const bumpObjects = await bumpPackages(diff, version);
99 for (const pkg of bumpObjects) {
100 await writeUpdate(pkg, { version: true, hash: true });
101 }
102};

Callers 1

cli.tsFile · 0.90

Calls 6

mergeFlagsFunction · 0.90
getChangedFunction · 0.90
writeUpdateFunction · 0.90
isValidBumpArgFunction · 0.85
bumpPackagesFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected