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

Function getChangedPackages

packages/release-utils/src/utils.ts:22–37  ·  view source on GitHub ↗
(
  cwd: string,
  previousVersions: Map<string, string>
)

Source from the content-addressed store, hash-verified

20}
21
22export async function getChangedPackages(
23 cwd: string,
24 previousVersions: Map<string, string>
25) {
26 let { packages } = await getPackages(cwd);
27 let changedPackages = new Set<Package>();
28
29 for (let pkg of packages) {
30 const previousVersion = previousVersions.get(pkg.dir);
31 if (previousVersion !== pkg.packageJson.version) {
32 changedPackages.add(pkg);
33 }
34 }
35
36 return [...changedPackages];
37}
38
39export function getChangelogEntry(changelog: string, version: string) {
40 let ast = unified().use(remarkParse).parse(changelog);

Callers 1

runVersionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected