@changesets/get-release-plan
Advanced tools
| import { Config, ReleasePlan } from "@changesets/types"; | ||
| //#region src/index.d.ts | ||
| declare function getReleasePlan(cwd: string, sinceRef?: string, passedConfig?: Config): Promise<ReleasePlan>; | ||
| /** @deprecated Use named export `getReleasePlan` instead */ | ||
| declare const getReleasePlanDefault: typeof getReleasePlan; | ||
| //#endregion | ||
| export { getReleasePlanDefault as default, getReleasePlan }; |
| import { assembleReleasePlan } from "@changesets/assemble-release-plan"; | ||
| import { read } from "@changesets/config"; | ||
| import { readPreState } from "@changesets/pre"; | ||
| import { readChangesets } from "@changesets/read"; | ||
| import { getPackages } from "@manypkg/get-packages"; | ||
| //#region src/index.ts | ||
| async function getReleasePlan(cwd, sinceRef, passedConfig) { | ||
| const packages = await getPackages(cwd); | ||
| const preState = await readPreState(packages.rootDir); | ||
| const readConfig = await read(packages.rootDir, packages); | ||
| const config = passedConfig ? { | ||
| ...readConfig, | ||
| ...passedConfig | ||
| } : readConfig; | ||
| return assembleReleasePlan(await readChangesets(packages.rootDir, sinceRef), packages, config, preState); | ||
| } | ||
| /** @deprecated Use named export `getReleasePlan` instead */ | ||
| const getReleasePlanDefault = getReleasePlan; | ||
| //#endregion | ||
| export { getReleasePlanDefault as default, getReleasePlan }; |
| import { defineConfig } from "tsdown/config"; | ||
| import { baseConfig } from "../../tsdown.config.ts"; | ||
| export default defineConfig(baseConfig); |
+11
-0
| # @changesets/get-release-plan | ||
| ## 5.0.0-next.4 | ||
| ### Patch Changes | ||
| - Updated dependencies [[`062530b`](https://github.com/changesets/changesets/commit/062530b825d53abc9d8934f3a50cc61ff3ff82b8), [`c76b232`](https://github.com/changesets/changesets/commit/c76b232abc76f73592a21f0d5df9cc89406a31dc), [`169b128`](https://github.com/changesets/changesets/commit/169b128522f0e53ef228f3acd8118709b0f72156)]: | ||
| - @changesets/config@4.0.0-next.4 | ||
| - @changesets/types@7.0.0-next.4 | ||
| - @changesets/read@1.0.0-next.4 | ||
| - @changesets/assemble-release-plan@7.0.0-next.4 | ||
| - @changesets/pre@3.0.0-next.4 | ||
| ## 5.0.0-next.3 | ||
@@ -4,0 +15,0 @@ |
+13
-9
| { | ||
| "name": "@changesets/get-release-plan", | ||
| "version": "5.0.0-next.3", | ||
| "version": "5.0.0-next.4", | ||
| "description": "Reads changesets and adds information on dependents that need bumping", | ||
| "license": "MIT", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/changesets/changesets.git", | ||
| "directory": "packages/get-release-plan" | ||
| }, | ||
| "type": "module", | ||
| "exports": { | ||
| ".": "./dist/changesets-get-release-plan.js", | ||
| ".": "./dist/index.mjs", | ||
| "./package.json": "./package.json" | ||
| }, | ||
| "license": "MIT", | ||
| "repository": "https://github.com/changesets/changesets/tree/main/packages/get-release-plan", | ||
| "dependencies": { | ||
| "@manypkg/get-packages": "^3.0.0", | ||
| "@changesets/assemble-release-plan": "^7.0.0-next.3", | ||
| "@changesets/config": "^4.0.0-next.3", | ||
| "@changesets/pre": "^3.0.0-next.3", | ||
| "@changesets/read": "^1.0.0-next.3", | ||
| "@changesets/types": "^7.0.0-next.3" | ||
| "@changesets/assemble-release-plan": "^7.0.0-next.4", | ||
| "@changesets/config": "^4.0.0-next.4", | ||
| "@changesets/pre": "^3.0.0-next.4", | ||
| "@changesets/read": "^1.0.0-next.4", | ||
| "@changesets/types": "^7.0.0-next.4" | ||
| }, | ||
@@ -20,0 +24,0 @@ "engines": { |
| export * from "./declarations/src/index.js"; | ||
| export { default } from "./declarations/src/index.js"; | ||
| //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlc2V0cy1nZXQtcmVsZWFzZS1wbGFuLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9 |
| import { assembleReleasePlan } from '@changesets/assemble-release-plan'; | ||
| import { read } from '@changesets/config'; | ||
| import { readPreState } from '@changesets/pre'; | ||
| import { readChangesets } from '@changesets/read'; | ||
| import { getPackages } from '@manypkg/get-packages'; | ||
| async function getReleasePlan(cwd, sinceRef, passedConfig) { | ||
| const packages = await getPackages(cwd); | ||
| const preState = await readPreState(packages.rootDir); | ||
| const readConfig = await read(packages.rootDir, packages); | ||
| const config = passedConfig ? { | ||
| ...readConfig, | ||
| ...passedConfig | ||
| } : readConfig; | ||
| const changesets = await readChangesets(packages.rootDir, sinceRef); | ||
| return assembleReleasePlan(changesets, packages, config, preState); | ||
| } | ||
| /** @deprecated Use named export `getReleasePlan` instead */ | ||
| const getReleasePlanDefault = getReleasePlan; | ||
| export { getReleasePlanDefault as default, getReleasePlan }; |
| import type { Config, ReleasePlan } from "@changesets/types"; | ||
| export declare function getReleasePlan(cwd: string, sinceRef?: string, passedConfig?: Config): Promise<ReleasePlan>; | ||
| /** @deprecated Use named export `getReleasePlan` instead */ | ||
| declare const getReleasePlanDefault: typeof getReleasePlan; | ||
| export default getReleasePlanDefault; |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
31273
1.35%0
-100%44
-8.33%