Repository navigation
Replies: 2 comments
|
The concrete bug in your code: import assembleReleasePlan from "@changesets/assemble-release-plan";
import { readChangesets } from "@changesets/read";
import { readConfig } from "@changesets/config";
import { getPackages } from "@manypkg/get-packages";
import { readPreState } from "@changesets/pre";
const packages = await getPackages(cwd);
const preState = await readPreState(cwd);
const { config } = await readConfig(cwd, packages);
const changesets = await readChangesets(cwd, sinceRef);
const releasePlan = assembleReleasePlan(changesets, packages, config, preState);Note That said, for this exact use case (get a release plan without wiring these five packages by hand) there's a purpose-built package that does all of the above in one call: import { getReleasePlan } from "@changesets/get-release-plan";
const releasePlan = await getReleasePlan(cwd, sinceRef);
console.log(releasePlan);Its own package README says as much: assemble-release-plan exists mainly for testing and CI cases where you already have the pieces in hand, for most consumers |

Uh oh!
There was an error while loading. Please reload this page.
I used the example in the Readme of the @changesets/ assemple-release-plan package , but an error was reported
this is my code
my package.json
All reactions