Skip to content

Update bot to handle new tool structure from changesets and @manypkg/get-packages@3 #97

@marcalexiei

Description

@marcalexiei

Description

The upcoming changesets release introduces Packages type with a different shape for tool property:

https://github.com/changesets/changesets/blob/12f20ea75fb5a440a378bd2bf6072a6bd749fd57/packages/types/src/index.ts#L179-L190

export interface Packages {
  // ...
  tool: {
    type: "yarn" | "pnpm" | "lerna" | "bolt" | "root";
  };
}

This structure aligns with @manypkg/get-packages v3.

The bot currently assumes the previous shape and must be updated to:

  • support the new tool structure
  • upgrade to compatible versions of both changesets and @manypkg/get-packages

Relevant code:

bot/get-changed-packages.ts

Lines 154 to 161 in a443d06

let packages: Packages = {
root: {
dir: "/",
packageJson: rootPackageJsonContent,
},
tool: tool ? tool.tool : "root",
packages: [],
};

References

Blocking following PRs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions