@nifrajs/cli 5.1.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3313 -0
- package/README.md +3 -0
- package/dist/agent-files.d.ts +19 -11
- package/dist/agent-files.d.ts.map +1 -1
- package/dist/agent-files.js +26 -18
- package/dist/agent-files.js.map +1 -1
- package/dist/assure-hydration.d.ts.map +1 -1
- package/dist/assure-hydration.js +7 -2
- package/dist/assure-hydration.js.map +1 -1
- package/dist/assure.d.ts.map +1 -1
- package/dist/assure.js +14 -1
- package/dist/assure.js.map +1 -1
- package/dist/capabilities-tool.d.ts.map +1 -1
- package/dist/capabilities-tool.js +131 -45
- package/dist/capabilities-tool.js.map +1 -1
- package/dist/check-diagnostics.d.ts +5 -0
- package/dist/check-diagnostics.d.ts.map +1 -1
- package/dist/check-diagnostics.js +5 -0
- package/dist/check-diagnostics.js.map +1 -1
- package/dist/check-scan.d.ts +9 -3
- package/dist/check-scan.d.ts.map +1 -1
- package/dist/check-scan.js +61 -21
- package/dist/check-scan.js.map +1 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +55 -15
- package/dist/check.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +37 -18
- package/dist/cli.js.map +1 -1
- package/dist/command-catalog.d.ts.map +1 -1
- package/dist/command-catalog.js +9 -5
- package/dist/command-catalog.js.map +1 -1
- package/dist/db-tool.d.ts.map +1 -1
- package/dist/db-tool.js +2 -1
- package/dist/db-tool.js.map +1 -1
- package/dist/dev-bun-config.d.ts +6 -3
- package/dist/dev-bun-config.d.ts.map +1 -1
- package/dist/dev-bun-config.js +13 -10
- package/dist/dev-bun-config.js.map +1 -1
- package/dist/dev-feed-tool.d.ts +3 -2
- package/dist/dev-feed-tool.d.ts.map +1 -1
- package/dist/dev-feed-tool.js +26 -5
- package/dist/dev-feed-tool.js.map +1 -1
- package/dist/doctor.d.ts +15 -1
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +79 -61
- package/dist/doctor.js.map +1 -1
- package/dist/env-file.d.ts.map +1 -1
- package/dist/env-file.js +41 -8
- package/dist/env-file.js.map +1 -1
- package/dist/i18n-check.d.ts +11 -1
- package/dist/i18n-check.d.ts.map +1 -1
- package/dist/i18n-check.js +170 -17
- package/dist/i18n-check.js.map +1 -1
- package/dist/init-agents.d.ts +46 -6
- package/dist/init-agents.d.ts.map +1 -1
- package/dist/init-agents.js +193 -31
- package/dist/init-agents.js.map +1 -1
- package/dist/internal/project-specifiers.d.ts.map +1 -1
- package/dist/internal/project-specifiers.js +9 -1
- package/dist/internal/project-specifiers.js.map +1 -1
- package/dist/internal/source-facts.d.ts +22 -0
- package/dist/internal/source-facts.d.ts.map +1 -1
- package/dist/internal/source-facts.js +322 -0
- package/dist/internal/source-facts.js.map +1 -1
- package/dist/internal/workspace-packages.d.ts +22 -0
- package/dist/internal/workspace-packages.d.ts.map +1 -0
- package/dist/internal/workspace-packages.js +215 -0
- package/dist/internal/workspace-packages.js.map +1 -0
- package/dist/load.d.ts +7 -2
- package/dist/load.d.ts.map +1 -1
- package/dist/load.js +11 -2
- package/dist/load.js.map +1 -1
- package/dist/lock-links.d.ts +42 -0
- package/dist/lock-links.d.ts.map +1 -0
- package/dist/lock-links.js +144 -0
- package/dist/lock-links.js.map +1 -0
- package/dist/mcp-exec.d.ts +1 -0
- package/dist/mcp-exec.d.ts.map +1 -1
- package/dist/mcp-exec.js +16 -5
- package/dist/mcp-exec.js.map +1 -1
- package/dist/mcp-http.js +1 -1
- package/dist/mcp-io.d.ts +23 -3
- package/dist/mcp-io.d.ts.map +1 -1
- package/dist/mcp-io.js +59 -12
- package/dist/mcp-io.js.map +1 -1
- package/dist/mcp-isolate.d.ts.map +1 -1
- package/dist/mcp-isolate.js +2 -1
- package/dist/mcp-isolate.js.map +1 -1
- package/dist/mcp-root.d.ts +6 -4
- package/dist/mcp-root.d.ts.map +1 -1
- package/dist/mcp-root.js +12 -8
- package/dist/mcp-root.js.map +1 -1
- package/dist/migrate-layout.d.ts +2 -1
- package/dist/migrate-layout.d.ts.map +1 -1
- package/dist/migrate-layout.js +435 -29
- package/dist/migrate-layout.js.map +1 -1
- package/dist/project-site.d.ts +7 -0
- package/dist/project-site.d.ts.map +1 -0
- package/dist/project-site.js +19 -0
- package/dist/project-site.js.map +1 -0
- package/dist/recipes/4.0.0.d.ts.map +1 -1
- package/dist/recipes/4.0.0.js +2 -0
- package/dist/recipes/4.0.0.js.map +1 -1
- package/dist/recipes/5.1.0.d.ts +9 -0
- package/dist/recipes/5.1.0.d.ts.map +1 -0
- package/dist/recipes/5.1.0.js +22 -0
- package/dist/recipes/5.1.0.js.map +1 -0
- package/dist/recipes/5.2.0.d.ts +10 -0
- package/dist/recipes/5.2.0.d.ts.map +1 -0
- package/dist/recipes/5.2.0.js +32 -0
- package/dist/recipes/5.2.0.js.map +1 -0
- package/dist/recipes/5.3.0.d.ts +11 -0
- package/dist/recipes/5.3.0.d.ts.map +1 -0
- package/dist/recipes/5.3.0.js +35 -0
- package/dist/recipes/5.3.0.js.map +1 -0
- package/dist/recipes/index.d.ts +3 -0
- package/dist/recipes/index.d.ts.map +1 -1
- package/dist/recipes/index.js +9 -0
- package/dist/recipes/index.js.map +1 -1
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +4 -0
- package/dist/review.js.map +1 -1
- package/dist/rule-explain.d.ts +26 -0
- package/dist/rule-explain.d.ts.map +1 -0
- package/dist/rule-explain.js +49 -0
- package/dist/rule-explain.js.map +1 -0
- package/dist/rules/codes.d.ts +4 -0
- package/dist/rules/codes.d.ts.map +1 -1
- package/dist/rules/codes.js +4 -0
- package/dist/rules/codes.js.map +1 -1
- package/dist/rules/contract-visibility.d.ts.map +1 -1
- package/dist/rules/contract-visibility.js +93 -21
- package/dist/rules/contract-visibility.js.map +1 -1
- package/dist/rules/explanations.d.ts +14 -0
- package/dist/rules/explanations.d.ts.map +1 -0
- package/dist/rules/explanations.js +326 -0
- package/dist/rules/explanations.js.map +1 -0
- package/dist/rules/legacy.d.ts.map +1 -1
- package/dist/rules/legacy.js +24 -1
- package/dist/rules/legacy.js.map +1 -1
- package/dist/rules/merge-auth.d.ts +12 -0
- package/dist/rules/merge-auth.d.ts.map +1 -0
- package/dist/rules/merge-auth.js +52 -0
- package/dist/rules/merge-auth.js.map +1 -0
- package/dist/rules/pages.d.ts +51 -0
- package/dist/rules/pages.d.ts.map +1 -1
- package/dist/rules/pages.js +293 -2
- package/dist/rules/pages.js.map +1 -1
- package/dist/rules/route-statement.d.ts +10 -0
- package/dist/rules/route-statement.d.ts.map +1 -0
- package/dist/rules/route-statement.js +150 -0
- package/dist/rules/route-statement.js.map +1 -0
- package/dist/rules/routes.d.ts +3 -2
- package/dist/rules/routes.d.ts.map +1 -1
- package/dist/rules/routes.js +4 -3
- package/dist/rules/routes.js.map +1 -1
- package/dist/rules/zones.d.ts.map +1 -1
- package/dist/rules/zones.js +3 -2
- package/dist/rules/zones.js.map +1 -1
- package/dist/typecheck-coverage.d.ts +11 -0
- package/dist/typecheck-coverage.d.ts.map +1 -1
- package/dist/typecheck-coverage.js +50 -7
- package/dist/typecheck-coverage.js.map +1 -1
- package/dist/upgrade.d.ts +80 -11
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +332 -65
- package/dist/upgrade.js.map +1 -1
- package/dist/verification-plan.d.ts.map +1 -1
- package/dist/verification-plan.js +2 -0
- package/dist/verification-plan.js.map +1 -1
- package/dist/version-drift.d.ts.map +1 -1
- package/dist/version-drift.js +12 -1
- package/dist/version-drift.js.map +1 -1
- package/dist/web-app-options.d.ts +1 -1
- package/dist/web-app-options.d.ts.map +1 -1
- package/dist/web-app-options.js.map +1 -1
- package/docs/examples.json +19 -1
- package/docs/llms-full.txt +716 -138
- package/docs/types.json +516 -74
- package/package.json +13 -12
- package/src/agent-files.ts +27 -17
- package/src/assure-hydration.ts +8 -1
- package/src/assure.ts +11 -1
- package/src/capabilities-tool.ts +159 -50
- package/src/check-diagnostics.ts +10 -0
- package/src/check-scan.ts +64 -19
- package/src/check.ts +75 -15
- package/src/cli.ts +38 -17
- package/src/command-catalog.ts +16 -8
- package/src/db-tool.ts +2 -0
- package/src/dev-bun-config.ts +13 -9
- package/src/dev-feed-tool.ts +40 -6
- package/src/doctor.ts +102 -66
- package/src/env-file.ts +42 -7
- package/src/i18n-check.ts +254 -18
- package/src/init-agents.ts +221 -41
- package/src/internal/project-specifiers.ts +9 -1
- package/src/internal/source-facts.ts +397 -0
- package/src/internal/workspace-packages.ts +218 -0
- package/src/load.ts +19 -3
- package/src/lock-links.ts +173 -0
- package/src/mcp-exec.ts +18 -4
- package/src/mcp-http.ts +1 -1
- package/src/mcp-io.ts +72 -12
- package/src/mcp-isolate.ts +2 -0
- package/src/mcp-root.ts +14 -8
- package/src/migrate-layout.ts +496 -31
- package/src/project-site.ts +18 -0
- package/src/recipes/4.0.0.ts +2 -0
- package/src/recipes/5.1.0.ts +23 -0
- package/src/recipes/5.2.0.ts +33 -0
- package/src/recipes/5.3.0.ts +36 -0
- package/src/recipes/index.ts +9 -0
- package/src/review.ts +4 -0
- package/src/rule-explain.ts +75 -0
- package/src/rules/codes.ts +4 -0
- package/src/rules/contract-visibility.ts +118 -20
- package/src/rules/explanations.ts +339 -0
- package/src/rules/legacy.ts +24 -1
- package/src/rules/merge-auth.ts +55 -0
- package/src/rules/pages.ts +381 -2
- package/src/rules/route-statement.ts +170 -0
- package/src/rules/routes.ts +4 -3
- package/src/rules/zones.ts +3 -2
- package/src/typecheck-coverage.ts +51 -6
- package/src/upgrade.ts +430 -70
- package/src/verification-plan.ts +6 -0
- package/src/version-drift.ts +15 -0
- package/src/web-app-options.ts +9 -1
package/dist/upgrade.d.ts
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
* 2. **dependency moves** - replace removed packages with their supported successor without
|
|
13
13
|
* reserializing package.json or leaving duplicate dependency keys.
|
|
14
14
|
* 3. **import moves** - rewrite exact import specifiers to their updated module paths.
|
|
15
|
-
* 4. **verify** - reuse the existing `nifra check` gate; no new verification surface.
|
|
15
|
+
* 4. **verify** - reuse the existing `nifra check` gate; no new verification surface. It reads the
|
|
16
|
+
* installed packages, so while the edited pins are not installed yet it is skipped with the
|
|
17
|
+
* install command to run first: a check then would judge the release being left.
|
|
16
18
|
*
|
|
17
19
|
* Upgrading across several releases runs every recipe between the installed version (the lowest
|
|
18
20
|
* fixed-group version the workspace declares) and the target, oldest first, then pins the target. A
|
|
@@ -26,6 +28,8 @@
|
|
|
26
28
|
* transforms are a future addition - a recipe that needs one is the signal to add the engine, not before.
|
|
27
29
|
*/
|
|
28
30
|
import { type HookReportChange } from "./hooks-report.js";
|
|
31
|
+
import { type AncestorPinSite } from "./init-agents.js";
|
|
32
|
+
import { type StaleLinkLock } from "./lock-links.js";
|
|
29
33
|
import { type UpgradeRecipe } from "./recipes/index.js";
|
|
30
34
|
export interface UpgradeOptions {
|
|
31
35
|
/** Target version, e.g. "1.8.0". Required unless `list` is set. */
|
|
@@ -36,7 +40,8 @@ export interface UpgradeOptions {
|
|
|
36
40
|
readonly json?: boolean;
|
|
37
41
|
/** Print the available target versions and return. */
|
|
38
42
|
readonly list?: boolean;
|
|
39
|
-
/** After `--write`, run `nifra check` and fail the command if it fails
|
|
43
|
+
/** After `--write`, run `nifra check` and fail the command if it fails, once the install matches
|
|
44
|
+
* the target; until then, print the install command to run first. Default true. */
|
|
40
45
|
readonly verify?: boolean;
|
|
41
46
|
/** Permit a target BELOW the installed version (a rollback). Default false → fail-closed. */
|
|
42
47
|
readonly allowDowngrade?: boolean;
|
|
@@ -49,6 +54,8 @@ export interface UpgradeOptions {
|
|
|
49
54
|
* change in which hooks run where is visible. Loads the backend. Default true; `--no-hooks` skips it.
|
|
50
55
|
*/
|
|
51
56
|
readonly hooks?: boolean;
|
|
57
|
+
/** Proceed although a linked repository loads its own nifra at another version. Default false. */
|
|
58
|
+
readonly allowLinkedSkew?: boolean;
|
|
52
59
|
}
|
|
53
60
|
export interface PinChange {
|
|
54
61
|
readonly file: string;
|
|
@@ -77,6 +84,8 @@ export interface AgentPinChange {
|
|
|
77
84
|
readonly file: string;
|
|
78
85
|
/** The versions it pinned, in order of appearance. */
|
|
79
86
|
readonly from: readonly string[];
|
|
87
|
+
/** The target version, or `unpinned` when the project declares `@nifrajs/cli`: the launch then runs
|
|
88
|
+
* that install and never needs re-pinning. */
|
|
80
89
|
readonly to: string;
|
|
81
90
|
}
|
|
82
91
|
/** A retired comment in the project, and the line it applied to before the release retired it. */
|
|
@@ -103,14 +112,23 @@ export interface UpgradePlan {
|
|
|
103
112
|
readonly retiredMarkers: readonly RetiredMarkerSite[];
|
|
104
113
|
/** Installed group packages linked from outside the workspace root, at another version. Never edited. */
|
|
105
114
|
readonly linkedOutside: readonly LinkedGroupInstall[];
|
|
115
|
+
/** Repositories a `link:`/`file:` dependency points outside the root, each loading its own nifra at
|
|
116
|
+
* another version. Never edited; the upgrade refuses while any is listed. */
|
|
117
|
+
readonly linkedSkew: readonly LinkedSkew[];
|
|
106
118
|
/** Other versions pinned outside package.json. Never edited. */
|
|
107
119
|
readonly strayPins: readonly StrayPin[];
|
|
120
|
+
/** `file:` entries of the project's bun.lock whose recorded dependencies the linked package.json
|
|
121
|
+
* (as this upgrade leaves it) no longer declares. Bun never refreshes them on its own. */
|
|
122
|
+
readonly linkLocks: readonly StaleLinkLock[];
|
|
123
|
+
/** Whether `--write` dropped {@link linkLocks} from bun.lock, so `bun install` re-reads them. */
|
|
124
|
+
readonly lockPruned: boolean;
|
|
108
125
|
readonly notes: readonly string[];
|
|
109
126
|
}
|
|
110
127
|
/**
|
|
111
|
-
* Rewrite a dependency version spec to `toVersion`, preserving the range operator (`^`, `~`,
|
|
112
|
-
*
|
|
113
|
-
* already equals the
|
|
128
|
+
* Rewrite a dependency version spec to `toVersion`, preserving the range operator (`^`, `~`, …;
|
|
129
|
+
* a strict `>` or `<` becomes `>=` or `<=`, so the result admits the target), or dropping it when
|
|
130
|
+
* `exact`. Returns null when the spec is not a plain semver spec (→ skip it) or already equals the
|
|
131
|
+
* target.
|
|
114
132
|
*/
|
|
115
133
|
export declare function rewriteVersionSpec(spec: string, toVersion: string, exact?: boolean): string | null;
|
|
116
134
|
/** The version a plain semver spec names (`^2.4.1` → `2.4.1`), or null for any other spec. */
|
|
@@ -121,6 +139,12 @@ export declare function specVersionTuple(spec: string): readonly [number, number
|
|
|
121
139
|
export declare function compareSemverCore(a: readonly [number, number, number], b: readonly [number, number, number]): number;
|
|
122
140
|
/** Compare full semver precedence, including prereleases (`2.3.0-beta` < `2.3.0`). */
|
|
123
141
|
export declare function compareSemverSpec(a: string, b: string): number;
|
|
142
|
+
/**
|
|
143
|
+
* Whether a plain semver spec's range admits `version`, as npm reads it: `^` and `~` stop before the
|
|
144
|
+
* next breaking release, and a prerelease satisfies only a spec naming a prerelease of its own core.
|
|
145
|
+
* False for any other spec.
|
|
146
|
+
*/
|
|
147
|
+
export declare function specIncludes(spec: string, version: string): boolean;
|
|
124
148
|
/**
|
|
125
149
|
* Apply pin rules to one package.json's TEXT (format-preserving - targeted string replaces, never a
|
|
126
150
|
* JSON re-serialize that would reorder keys or drop comments-as-formatting). Returns the new text and
|
|
@@ -160,8 +184,9 @@ export declare const isFixedGroup: (name: string) => boolean;
|
|
|
160
184
|
export declare function groupDeclaredNames(cwd: string): ReadonlySet<string>;
|
|
161
185
|
/**
|
|
162
186
|
* Every fixed-group version the package.json files under `cwd` declare with a plain semver spec, each
|
|
163
|
-
* with the files that declare it. An override counts: it decides what installs.
|
|
164
|
-
*
|
|
187
|
+
* with the files that declare it. An override counts: it decides what installs. A peer range does
|
|
188
|
+
* not (`>=3.1.0` names a floor a library accepts, not a version anything loads), and `workspace:`,
|
|
189
|
+
* `link:` and other non-semver specs are not versions.
|
|
165
190
|
*/
|
|
166
191
|
export declare function groupPinVersions(cwd: string): ReadonlyMap<string, readonly string[]>;
|
|
167
192
|
/** A fixed-group version spelled outside package.json, which the upgrade lists and never edits. */
|
|
@@ -188,6 +213,28 @@ export interface LinkedGroupInstall {
|
|
|
188
213
|
readonly path: string;
|
|
189
214
|
readonly version: string;
|
|
190
215
|
}
|
|
216
|
+
/** A repository linked into the project that resolves nifra from its own `node_modules`. */
|
|
217
|
+
export interface LinkedSkew {
|
|
218
|
+
/** The dependency's name, as the manifest declares it. */
|
|
219
|
+
readonly package: string;
|
|
220
|
+
/** The project-relative manifest that declares it. */
|
|
221
|
+
readonly declaredIn: string;
|
|
222
|
+
/** The linked repository's real path. */
|
|
223
|
+
readonly path: string;
|
|
224
|
+
/** Each fixed-group package it installs itself, at a version other than the target. */
|
|
225
|
+
readonly installs: readonly {
|
|
226
|
+
readonly package: string;
|
|
227
|
+
readonly version: string;
|
|
228
|
+
}[];
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Every `link:` or `file:` dependency whose installed folder resolves outside `cwd` and installs a
|
|
232
|
+
* fixed-group package of its own at a version other than `target`. Its imports resolve from its real
|
|
233
|
+
* path, so it keeps loading that copy after this project upgrades: a `server()` it builds can no longer
|
|
234
|
+
* be merged here, and single-copy never redirects across versions. A copy that resolves back inside
|
|
235
|
+
* `cwd` follows this project's install and is not counted.
|
|
236
|
+
*/
|
|
237
|
+
export declare function linkedSkew(cwd: string, target: string): readonly LinkedSkew[];
|
|
191
238
|
/**
|
|
192
239
|
* Every fixed-group package installed in `cwd/node_modules`, realpath-resolved so a linked repository
|
|
193
240
|
* reports its own version. `inside` is false for one that resolves outside the workspace root.
|
|
@@ -196,8 +243,10 @@ export declare function installedGroupPackages(cwd: string): readonly (LinkedGro
|
|
|
196
243
|
readonly inside: boolean;
|
|
197
244
|
})[];
|
|
198
245
|
/**
|
|
199
|
-
* The lowest fixed-group version any package.json under
|
|
200
|
-
*
|
|
246
|
+
* The version the workspace upgrades from: the lowest fixed-group version any package.json under
|
|
247
|
+
* `cwd` pins ({@link groupPinVersions}), since recipes newer than it still have edits to make
|
|
248
|
+
* somewhere. Without a pin, the lowest one installed inside the root, then the lowest peer floor;
|
|
249
|
+
* null when none names one.
|
|
201
250
|
*/
|
|
202
251
|
export declare function installedGroupVersion(cwd: string): string | null;
|
|
203
252
|
/** One recipe that applies every release recipe after `installed` up to `target`, oldest first. */
|
|
@@ -212,15 +261,35 @@ export interface ChainedRecipe extends UpgradeRecipe {
|
|
|
212
261
|
*/
|
|
213
262
|
export declare function chainRecipes(target: string, installed: string | null): ChainedRecipe;
|
|
214
263
|
/** Compute the plan (and, when `write`, apply it) for a target recipe against `cwd`. */
|
|
215
|
-
export declare function computeUpgrade(cwd: string, recipe: UpgradeRecipe, write: boolean, allowDowngrade?: boolean, exact?: boolean): UpgradePlan;
|
|
216
|
-
/** The hook report around `--write`: the diff and where the pre-upgrade report was saved, or why not.
|
|
264
|
+
export declare function computeUpgrade(cwd: string, recipe: UpgradeRecipe, write: boolean, allowDowngrade?: boolean, exact?: boolean, above?: readonly AncestorPinSite[]): UpgradePlan;
|
|
265
|
+
/** The hook report around `--write`: the diff and where the pre-upgrade report was saved, or why not.
|
|
266
|
+
* `install` means the edits are not installed yet, so only the pre-upgrade report was taken. */
|
|
217
267
|
export type UpgradeHookScope = {
|
|
218
268
|
readonly saved: string;
|
|
219
269
|
readonly changes: readonly HookReportChange[];
|
|
270
|
+
} | {
|
|
271
|
+
readonly saved: string;
|
|
272
|
+
readonly pending: "install";
|
|
220
273
|
} | {
|
|
221
274
|
readonly error: string;
|
|
222
275
|
readonly saved?: string;
|
|
223
276
|
};
|
|
277
|
+
/** The edits `--write` made that the installed packages do not reflect yet. */
|
|
278
|
+
export interface PendingInstall {
|
|
279
|
+
/** The command that installs them, by the lockfile the project keeps. */
|
|
280
|
+
readonly command: string;
|
|
281
|
+
/** Fixed-group packages installed inside the root at a version other than the target. */
|
|
282
|
+
readonly installed: readonly {
|
|
283
|
+
readonly package: string;
|
|
284
|
+
readonly version: string;
|
|
285
|
+
}[];
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Whether the project needs an install before a check can judge the target: `--write` changed what
|
|
289
|
+
* package.json declares or what bun.lock records, or node_modules holds a group package at another
|
|
290
|
+
* version. A link from outside the root is left out; installing here does not move it.
|
|
291
|
+
*/
|
|
292
|
+
export declare function pendingInstall(cwd: string, plan: UpgradePlan): PendingInstall | undefined;
|
|
224
293
|
/** The targets this CLI applies: each release recipe up to its own version, and that version. */
|
|
225
294
|
export declare function upgradeTargets(cliVersion: string): string[];
|
|
226
295
|
/** CLI entry. Returns false (→ non-zero exit) on an unknown version, no project, or a failed verify. */
|
package/dist/upgrade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAgBH,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,KAAK,eAAe,EAAwC,MAAM,kBAAkB,CAAA;AAC7F,OAAO,EAKL,KAAK,aAAa,EAEnB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAiC,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGtF,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,mFAAmF;IACnF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,sDAAsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB;uFACmF;IACnF,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,6FAA6F;IAC7F,QAAQ,CAAC,cAAc,CAAC,EA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