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

Function shouldSkipPackage

packages/should-skip-package/src/index.ts:4–23  ·  view source on GitHub ↗
(
  { packageJson }: Package,
  {
    ignore,
    allowPrivatePackages,
  }: {
    ignore: PackageGroup;
    allowPrivatePackages: boolean;
  }
)

Source from the content-addressed store, hash-verified

2import { PackageGroup } from "@changesets/types";
3
4export function shouldSkipPackage(
5 { packageJson }: Package,
6 {
7 ignore,
8 allowPrivatePackages,
9 }: {
10 ignore: PackageGroup;
11 allowPrivatePackages: boolean;
12 }
13) {
14 if (ignore.includes(packageJson.name)) {
15 return true;
16 }
17
18 if (packageJson.private && !allowPrivatePackages) {
19 return true;
20 }
21
22 return !packageJson.version;
23}

Callers 12

applyReleasePlanFunction · 0.90
runFunction · 0.90
addFunction · 0.90
tagFunction · 0.90
assembleReleasePlanFunction · 0.90
getRelevantChangesetsFunction · 0.90
getPreInfoFunction · 0.90
matchFixedConstraintFunction · 0.90
determineDependentsFunction · 0.90
flattenReleasesFunction · 0.90
parseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected