MCPcopy Index your code
hub / github.com/changesets/changesets / getNormalizedCommitOption

Function getNormalizedCommitOption

packages/config/src/index.ts:46–59  ·  view source on GitHub ↗
(
  thing: boolean | readonly [string, any] | string
)

Source from the content-addressed store, hash-verified

44}
45
46function getNormalizedCommitOption(
47 thing: boolean | readonly [string, any] | string
48): Config["commit"] {
49 if (thing === false) {
50 return false;
51 }
52 if (thing === true) {
53 return ["@changesets/cli/commit", { skipCI: "version" }];
54 }
55 if (typeof thing === "string") {
56 return [thing, null];
57 }
58 return thing;
59}
60
61function getUnmatchedPatterns(
62 listOfPackageNamesOrGlob: readonly string[],

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected