outfitter 0.2.4 → 0.2.6
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/README.md +8 -5
- package/dist/actions.d.ts +2 -0
- package/dist/actions.js +34 -0
- package/dist/cli.js +1 -1
- package/dist/commands/add.d.ts +54 -0
- package/dist/commands/add.js +16 -0
- package/dist/commands/check.d.ts +91 -0
- package/dist/commands/check.js +14 -0
- package/dist/commands/demo.d.ts +21 -0
- package/dist/commands/demo.js +8 -0
- package/dist/commands/docs-module-loader.d.ts +2 -0
- package/dist/commands/docs-module-loader.js +8 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +13 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.js +31 -0
- package/dist/commands/migrate-kit.d.ts +2 -0
- package/dist/commands/migrate-kit.js +15 -0
- package/dist/commands/repo.d.ts +3 -0
- package/dist/commands/repo.js +9 -0
- package/dist/commands/scaffold.d.ts +4 -0
- package/dist/commands/scaffold.js +31 -0
- package/dist/commands/shared-deps.d.ts +36 -0
- package/dist/commands/shared-deps.js +10 -0
- package/dist/commands/upgrade-codemods.d.ts +42 -0
- package/dist/commands/upgrade-codemods.js +15 -0
- package/dist/commands/upgrade-planner.d.ts +58 -0
- package/dist/commands/upgrade-planner.js +8 -0
- package/dist/commands/upgrade-workspace.d.ts +76 -0
- package/dist/commands/upgrade-workspace.js +16 -0
- package/dist/commands/upgrade.d.ts +214 -0
- package/dist/commands/upgrade.js +25 -0
- package/dist/create/index.d.ts +5 -0
- package/dist/create/index.js +29 -0
- package/dist/create/planner.d.ts +3 -0
- package/dist/create/planner.js +21 -0
- package/dist/create/presets.d.ts +3 -0
- package/dist/create/presets.js +12 -0
- package/dist/create/types.d.ts +2 -0
- package/dist/create/types.js +1 -0
- package/dist/engine/blocks.d.ts +3 -0
- package/dist/engine/blocks.js +12 -0
- package/dist/engine/collector.d.ts +2 -0
- package/dist/engine/collector.js +8 -0
- package/dist/engine/config.d.ts +3 -0
- package/dist/engine/config.js +12 -0
- package/dist/engine/executor.d.ts +3 -0
- package/dist/engine/executor.js +16 -0
- package/dist/engine/index.d.ts +8 -0
- package/dist/engine/index.js +59 -0
- package/dist/engine/names.d.ts +2 -0
- package/dist/engine/names.js +16 -0
- package/dist/engine/post-scaffold.d.ts +3 -0
- package/dist/engine/post-scaffold.js +8 -0
- package/dist/engine/render-plan.d.ts +7 -0
- package/dist/engine/render-plan.js +9 -0
- package/dist/engine/template.d.ts +3 -0
- package/dist/engine/template.js +17 -0
- package/dist/engine/types.d.ts +2 -0
- package/dist/engine/types.js +8 -0
- package/dist/engine/workspace.d.ts +3 -0
- package/dist/engine/workspace.js +13 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/manifest.d.ts +71 -0
- package/dist/manifest.js +16 -0
- package/dist/output-mode.d.ts +2 -0
- package/dist/output-mode.js +10 -0
- package/dist/shared/{chunk-tpwtpa74.js → chunk-k59f60cp.js} +858 -396
- package/dist/shared/outfitter-193jvzg4.d.ts +5 -0
- package/dist/shared/outfitter-1dd0k853.js +194 -0
- package/dist/shared/outfitter-1dvma85c.js +322 -0
- package/dist/shared/outfitter-1h7k8xxt.js +29 -0
- package/dist/shared/outfitter-2ngep1h2.d.ts +5 -0
- package/dist/shared/outfitter-2np85etz.js +95 -0
- package/dist/shared/outfitter-33w361tc.d.ts +18 -0
- package/dist/shared/outfitter-344t1r38.js +1 -0
- package/dist/shared/outfitter-3weh61w7.d.ts +25 -0
- package/dist/shared/outfitter-4s9meh3j.js +221 -0
- package/dist/shared/outfitter-66b25bj8.js +125 -0
- package/dist/shared/outfitter-6bkqjk86.d.ts +3 -0
- package/dist/shared/outfitter-79vfxt6y.js +269 -0
- package/dist/shared/outfitter-7ha7p61k.d.ts +6 -0
- package/dist/shared/outfitter-7r12fj7f.js +30 -0
- package/dist/shared/outfitter-8y2dfx6n.js +11 -0
- package/dist/shared/outfitter-9x1brcmq.js +184 -0
- package/dist/shared/outfitter-9zqc2njf.js +859 -0
- package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
- package/dist/shared/outfitter-amc4jbs1.d.ts +50 -0
- package/dist/shared/outfitter-ara3djt0.js +73 -0
- package/dist/shared/outfitter-avhm5z6w.js +82 -0
- package/dist/shared/outfitter-bkwpbkr9.d.ts +63 -0
- package/dist/shared/outfitter-bn9c8p2e.js +204 -0
- package/dist/shared/outfitter-bpr28y54.js +70 -0
- package/dist/shared/outfitter-cwq39bv4.d.ts +48 -0
- package/dist/shared/outfitter-d7pq7d0k.js +196 -0
- package/dist/shared/outfitter-dd0btgec.d.ts +40 -0
- package/dist/shared/outfitter-e2zz5wv7.d.ts +51 -0
- package/dist/shared/outfitter-ehp18x1n.js +1 -0
- package/dist/shared/outfitter-gdvm5c0b.d.ts +4 -0
- package/dist/shared/outfitter-h1mnzzd1.d.ts +14 -0
- package/dist/shared/outfitter-hvsaxgcp.js +1 -0
- package/dist/shared/outfitter-hws10ze7.js +532 -0
- package/dist/shared/outfitter-j833sxws.js +61 -0
- package/dist/shared/outfitter-j8yc7294.d.ts +22 -0
- package/dist/shared/outfitter-k112c427.js +21 -0
- package/dist/shared/outfitter-k56rmt24.d.ts +30 -0
- package/dist/shared/outfitter-ksa1pp4t.d.ts +4 -0
- package/dist/shared/outfitter-ksyvwmb5.js +191 -0
- package/dist/shared/outfitter-mdt37hqm.js +4 -0
- package/dist/shared/outfitter-mtbpabf3.js +91 -0
- package/dist/shared/outfitter-mxz69pgy.js +713 -0
- package/dist/shared/outfitter-npemy7ta.d.ts +53 -0
- package/dist/shared/outfitter-npyfbdmc.d.ts +6 -0
- package/dist/shared/outfitter-pyy1zkfh.d.ts +133 -0
- package/dist/shared/outfitter-q9agarmb.js +42 -0
- package/dist/shared/outfitter-qfh36ddg.d.ts +66 -0
- package/dist/shared/outfitter-qn864k6h.js +581 -0
- package/dist/shared/outfitter-rdc5v5ms.js +746 -0
- package/dist/shared/outfitter-sgtq57qr.d.ts +5 -0
- package/dist/shared/outfitter-ttjr95y9.js +98 -0
- package/dist/shared/outfitter-vh4xgb93.js +35 -0
- package/dist/shared/outfitter-yvksv5qb.js +322 -0
- package/dist/shared/outfitter-zwyvewr1.js +36 -0
- package/dist/targets/index.d.ts +4 -0
- package/dist/targets/index.js +29 -0
- package/dist/targets/registry.d.ts +3 -0
- package/dist/targets/registry.js +28 -0
- package/dist/targets/types.d.ts +2 -0
- package/dist/targets/types.js +1 -0
- package/package.json +21 -14
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { OutfitterError } from "@outfitter/contracts";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
/** A package dependency found across workspace manifests. */
|
|
4
|
+
interface WorkspacePackageEntry {
|
|
5
|
+
/** Full package name (e.g. "@outfitter/cli") */
|
|
6
|
+
readonly name: string;
|
|
7
|
+
/** Cleaned semver version (without range prefix) */
|
|
8
|
+
readonly version: string;
|
|
9
|
+
}
|
|
10
|
+
/** Version conflict: same package at different versions in different manifests. */
|
|
11
|
+
interface VersionConflict {
|
|
12
|
+
/** Full package name */
|
|
13
|
+
readonly name: string;
|
|
14
|
+
/** All distinct versions found, with their manifest paths */
|
|
15
|
+
readonly versions: ReadonlyArray<{
|
|
16
|
+
readonly version: string;
|
|
17
|
+
readonly manifests: readonly string[];
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
/** Result of scanning a workspace for @outfitter/* packages. */
|
|
21
|
+
interface WorkspaceScanResult {
|
|
22
|
+
/** Deduplicated @outfitter/* packages (uses lowest version for conflicts) */
|
|
23
|
+
readonly packages: readonly WorkspacePackageEntry[];
|
|
24
|
+
/** Version conflicts found across manifests */
|
|
25
|
+
readonly conflicts: readonly VersionConflict[];
|
|
26
|
+
/** Maps package name to the manifest paths that contain it */
|
|
27
|
+
readonly manifestsByPackage: ReadonlyMap<string, readonly string[]>;
|
|
28
|
+
/** All manifest paths scanned */
|
|
29
|
+
readonly manifestPaths: readonly string[];
|
|
30
|
+
/** Workspace root directory (null if not a workspace) */
|
|
31
|
+
readonly workspaceRoot: string | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Walk up from `cwd` looking for a workspace root.
|
|
35
|
+
*
|
|
36
|
+
* Workspace root is identified by:
|
|
37
|
+
* - `package.json` with a `workspaces` field (npm/yarn/bun)
|
|
38
|
+
* - `pnpm-workspace.yaml` file
|
|
39
|
+
*
|
|
40
|
+
* Returns `null` (as Ok) if no workspace root found — this is not an error,
|
|
41
|
+
* it means the project is a standalone package.
|
|
42
|
+
*/
|
|
43
|
+
declare function detectWorkspaceRoot(cwd: string): Result<string | null, OutfitterError>;
|
|
44
|
+
/**
|
|
45
|
+
* Collect all package.json files from a workspace root directory.
|
|
46
|
+
*
|
|
47
|
+
* Reads workspace patterns from the root package.json, resolves globs,
|
|
48
|
+
* and returns sorted absolute paths to all matching package.json files.
|
|
49
|
+
* Always includes the root package.json itself.
|
|
50
|
+
*/
|
|
51
|
+
declare function collectWorkspaceManifests(rootDir: string): Result<string[], OutfitterError>;
|
|
52
|
+
/**
|
|
53
|
+
* Scan all workspace manifests, collect @outfitter/* deps,
|
|
54
|
+
* deduplicate, and detect version conflicts.
|
|
55
|
+
*
|
|
56
|
+
* For deduplication: when the same package appears at the same version
|
|
57
|
+
* in multiple manifests, it appears once in the result.
|
|
58
|
+
* When versions differ, the lowest version is used and a conflict is reported.
|
|
59
|
+
*/
|
|
60
|
+
declare function getInstalledPackagesFromWorkspace(rootDir: string): Result<WorkspaceScanResult, OutfitterError>;
|
|
61
|
+
/**
|
|
62
|
+
* Apply version updates to all manifests in a workspace that contain
|
|
63
|
+
* the specified @outfitter/* packages.
|
|
64
|
+
*
|
|
65
|
+
* Preserves the existing version range prefix (^, ~, >=, etc.) in each manifest.
|
|
66
|
+
* Does NOT run `bun install` — the caller is responsible for that.
|
|
67
|
+
*/
|
|
68
|
+
declare function applyUpdatesToWorkspace(manifestPaths: readonly string[], manifestsByPackage: ReadonlyMap<string, readonly string[]>, updates: readonly {
|
|
69
|
+
name: string;
|
|
70
|
+
latestVersion: string;
|
|
71
|
+
}[]): Promise<Result<void, OutfitterError>>;
|
|
72
|
+
/**
|
|
73
|
+
* Run `bun install` at the given directory.
|
|
74
|
+
*/
|
|
75
|
+
declare function runInstall(cwd: string): Promise<Result<void, OutfitterError>>;
|
|
76
|
+
export { runInstall, getInstalledPackagesFromWorkspace, detectWorkspaceRoot, collectWorkspaceManifests, applyUpdatesToWorkspace, WorkspaceScanResult, WorkspacePackageEntry, VersionConflict };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
applyUpdatesToWorkspace,
|
|
4
|
+
collectWorkspaceManifests,
|
|
5
|
+
detectWorkspaceRoot,
|
|
6
|
+
getInstalledPackagesFromWorkspace,
|
|
7
|
+
runInstall
|
|
8
|
+
} from "../shared/outfitter-yvksv5qb.js";
|
|
9
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
10
|
+
export {
|
|
11
|
+
runInstall,
|
|
12
|
+
getInstalledPackagesFromWorkspace,
|
|
13
|
+
detectWorkspaceRoot,
|
|
14
|
+
collectWorkspaceManifests,
|
|
15
|
+
applyUpdatesToWorkspace
|
|
16
|
+
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { OutputMode } from "@outfitter/cli/types";
|
|
2
|
+
import { OutfitterError } from "@outfitter/contracts";
|
|
3
|
+
import { Result } from "@outfitter/contracts";
|
|
4
|
+
interface UpgradeOptions {
|
|
5
|
+
/** Working directory (defaults to cwd) */
|
|
6
|
+
readonly cwd: string;
|
|
7
|
+
/** Show migration guide */
|
|
8
|
+
readonly guide?: boolean;
|
|
9
|
+
/** Filter migration guides to specific package names */
|
|
10
|
+
readonly guidePackages?: readonly string[];
|
|
11
|
+
/** Preview only — no mutations, no prompt */
|
|
12
|
+
readonly dryRun?: boolean;
|
|
13
|
+
/** Auto-confirm without prompting */
|
|
14
|
+
readonly yes?: boolean;
|
|
15
|
+
/** Whether interactive prompts are enabled (false in CI) */
|
|
16
|
+
readonly interactive?: boolean;
|
|
17
|
+
/** Include breaking changes in the upgrade */
|
|
18
|
+
readonly all?: boolean;
|
|
19
|
+
/** Skip automatic codemod execution during upgrade */
|
|
20
|
+
readonly noCodemods?: boolean;
|
|
21
|
+
/** Output mode */
|
|
22
|
+
readonly outputMode?: OutputMode;
|
|
23
|
+
}
|
|
24
|
+
interface PackageVersionInfo {
|
|
25
|
+
/** Full package name */
|
|
26
|
+
readonly name: string;
|
|
27
|
+
/** Currently installed version */
|
|
28
|
+
readonly current: string;
|
|
29
|
+
/** Latest available version from npm (null if query failed) */
|
|
30
|
+
readonly latest: string | null;
|
|
31
|
+
/** Whether an update is available */
|
|
32
|
+
readonly updateAvailable: boolean;
|
|
33
|
+
/** Whether the update contains breaking changes (major bump) */
|
|
34
|
+
readonly breaking: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** Classification of a change within a migration. */
|
|
37
|
+
type MigrationChangeType = "renamed" | "removed" | "signature-changed" | "moved" | "deprecated" | "added";
|
|
38
|
+
/** A single structured change entry from migration frontmatter. */
|
|
39
|
+
interface MigrationChange {
|
|
40
|
+
readonly type: MigrationChangeType;
|
|
41
|
+
readonly from?: string;
|
|
42
|
+
readonly to?: string;
|
|
43
|
+
readonly path?: string;
|
|
44
|
+
readonly export?: string;
|
|
45
|
+
readonly detail?: string;
|
|
46
|
+
/** Path to codemod script relative to the codemods directory. */
|
|
47
|
+
readonly codemod?: string;
|
|
48
|
+
}
|
|
49
|
+
/** Parsed frontmatter from a migration doc. */
|
|
50
|
+
interface MigrationFrontmatter {
|
|
51
|
+
readonly package: string;
|
|
52
|
+
readonly version: string;
|
|
53
|
+
readonly breaking: boolean;
|
|
54
|
+
readonly changes?: readonly MigrationChange[];
|
|
55
|
+
}
|
|
56
|
+
/** A migration doc with parsed frontmatter and body content. */
|
|
57
|
+
interface MigrationDocWithMetadata {
|
|
58
|
+
readonly frontmatter: MigrationFrontmatter;
|
|
59
|
+
readonly body: string;
|
|
60
|
+
readonly version: string;
|
|
61
|
+
}
|
|
62
|
+
interface MigrationGuide {
|
|
63
|
+
/** The @outfitter/* package name */
|
|
64
|
+
readonly packageName: string;
|
|
65
|
+
/** Currently installed version */
|
|
66
|
+
readonly fromVersion: string;
|
|
67
|
+
/** Latest available version */
|
|
68
|
+
readonly toVersion: string;
|
|
69
|
+
/** Whether this is a breaking change */
|
|
70
|
+
readonly breaking: boolean;
|
|
71
|
+
/** Migration step strings (empty if no guide exists) */
|
|
72
|
+
readonly steps: readonly string[];
|
|
73
|
+
/** Structured changes from migration frontmatter, if available */
|
|
74
|
+
readonly changes?: readonly MigrationChange[];
|
|
75
|
+
}
|
|
76
|
+
/** Summary of codemods executed during --apply. */
|
|
77
|
+
interface CodemodSummary {
|
|
78
|
+
/** Number of codemods executed */
|
|
79
|
+
readonly codemodCount: number;
|
|
80
|
+
/** Total files changed across all codemods */
|
|
81
|
+
readonly changedFiles: readonly string[];
|
|
82
|
+
/** Errors encountered during codemod execution */
|
|
83
|
+
readonly errors: readonly string[];
|
|
84
|
+
}
|
|
85
|
+
interface UpgradeResult {
|
|
86
|
+
/** Package version info */
|
|
87
|
+
readonly packages: PackageVersionInfo[];
|
|
88
|
+
/** Total packages checked */
|
|
89
|
+
readonly total: number;
|
|
90
|
+
/** Number of packages with updates available */
|
|
91
|
+
readonly updatesAvailable: number;
|
|
92
|
+
/** Whether any update is a breaking change */
|
|
93
|
+
readonly hasBreaking: boolean;
|
|
94
|
+
/** Whether mutations were made (--apply was used and changes were written) */
|
|
95
|
+
readonly applied: boolean;
|
|
96
|
+
/** Package names that were updated in package.json */
|
|
97
|
+
readonly appliedPackages: string[];
|
|
98
|
+
/** Package names skipped because they contain breaking changes */
|
|
99
|
+
readonly skippedBreaking: string[];
|
|
100
|
+
/** Structured migration guides (populated when --guide is used) */
|
|
101
|
+
readonly guides?: readonly MigrationGuide[];
|
|
102
|
+
/** Codemod execution summary (populated when --apply runs codemods) */
|
|
103
|
+
readonly codemods?: CodemodSummary;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Find migration docs directory, checking known locations.
|
|
107
|
+
*
|
|
108
|
+
* Searches:
|
|
109
|
+
* 1. Relative to the target cwd
|
|
110
|
+
* 2. Walking up parent directories from cwd (monorepo root detection)
|
|
111
|
+
* 3. Relative to the outfitter binary itself (development mode)
|
|
112
|
+
*/
|
|
113
|
+
declare function findMigrationDocsDir(cwd: string, binaryDir?: string): string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Read all migration docs for a package between two versions.
|
|
116
|
+
*
|
|
117
|
+
* Scans the migrations directory for docs matching the package name,
|
|
118
|
+
* filters to versions greater than `fromVersion` and at most `toVersion`,
|
|
119
|
+
* and returns their contents sorted by version ascending.
|
|
120
|
+
*/
|
|
121
|
+
declare function readMigrationDocs(migrationsDir: string, shortName: string, fromVersion: string, toVersion: string): string[];
|
|
122
|
+
/**
|
|
123
|
+
* Read the `breaking` flag for an exact migration doc version, if present.
|
|
124
|
+
*
|
|
125
|
+
* Returns:
|
|
126
|
+
* - `true` or `false` when the frontmatter contains `breaking: ...`
|
|
127
|
+
* - `undefined` when the doc is missing, unreadable, or has no valid flag
|
|
128
|
+
*/
|
|
129
|
+
declare function readMigrationBreakingFlag(migrationsDir: string, shortName: string, version: string): boolean | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Parse the full frontmatter from a migration doc, including the `changes` array.
|
|
132
|
+
*
|
|
133
|
+
* Returns `null` if the content has no valid frontmatter or is missing
|
|
134
|
+
* required fields (`package`, `version`, `breaking`).
|
|
135
|
+
*/
|
|
136
|
+
declare function parseMigrationFrontmatter(content: string): MigrationFrontmatter | null;
|
|
137
|
+
/**
|
|
138
|
+
* Read all migration docs for a package between two versions,
|
|
139
|
+
* returning parsed frontmatter alongside the body content.
|
|
140
|
+
*
|
|
141
|
+
* Like `readMigrationDocs` but returns structured metadata instead of
|
|
142
|
+
* plain strings. Used by the codemod infrastructure to discover
|
|
143
|
+
* machine-actionable changes.
|
|
144
|
+
*/
|
|
145
|
+
declare function readMigrationDocsWithMetadata(migrationsDir: string, shortName: string, fromVersion: string, toVersion: string): MigrationDocWithMetadata[];
|
|
146
|
+
/**
|
|
147
|
+
* Build structured migration guides for packages with available updates.
|
|
148
|
+
*
|
|
149
|
+
* For each package with an update, produces a `MigrationGuide` with steps
|
|
150
|
+
* extracted from migration docs (if a migrations directory is available).
|
|
151
|
+
* Packages without updates or without a resolved latest version are skipped.
|
|
152
|
+
*
|
|
153
|
+
* This function is pure — no side effects beyond reading migration doc files
|
|
154
|
+
* when `migrationsDir` is provided.
|
|
155
|
+
*/
|
|
156
|
+
declare function buildMigrationGuides(packages: readonly PackageVersionInfo[], migrationsDir: string | null): MigrationGuide[];
|
|
157
|
+
/**
|
|
158
|
+
* Run the upgrade command — detect installed versions and query npm for latest.
|
|
159
|
+
*
|
|
160
|
+
* Default flow: scan → classify → prompt → apply.
|
|
161
|
+
* `--dry-run` returns a report without mutation.
|
|
162
|
+
* `--all` includes breaking changes.
|
|
163
|
+
* `--yes` or `--non-interactive` bypasses the prompt.
|
|
164
|
+
*/
|
|
165
|
+
declare function runUpgrade(options: UpgradeOptions): Promise<Result<UpgradeResult, OutfitterError>>;
|
|
166
|
+
/**
|
|
167
|
+
* Format and output upgrade results.
|
|
168
|
+
*/
|
|
169
|
+
declare function printUpgradeResults(result: UpgradeResult, options?: {
|
|
170
|
+
mode?: OutputMode;
|
|
171
|
+
guide?: boolean;
|
|
172
|
+
cwd?: string;
|
|
173
|
+
dryRun?: boolean;
|
|
174
|
+
all?: boolean;
|
|
175
|
+
}): Promise<void>;
|
|
176
|
+
type UpgradeReportStatus = "dry_run" | "no_updates" | "cancelled" | "skipped_non_interactive" | "applied" | "failed";
|
|
177
|
+
/** Snapshot of effective flags for this upgrade run. */
|
|
178
|
+
interface UpgradeReportFlags {
|
|
179
|
+
readonly dryRun: boolean;
|
|
180
|
+
readonly yes: boolean;
|
|
181
|
+
readonly interactive: boolean;
|
|
182
|
+
readonly all: boolean;
|
|
183
|
+
readonly noCodemods: boolean;
|
|
184
|
+
readonly outputMode: OutputMode | null;
|
|
185
|
+
}
|
|
186
|
+
/** Machine-readable upgrade report written to `.outfitter/reports/upgrade.json`. */
|
|
187
|
+
interface UpgradeReport {
|
|
188
|
+
readonly $schema: "https://outfitter.dev/reports/upgrade/v1";
|
|
189
|
+
readonly status: UpgradeReportStatus;
|
|
190
|
+
readonly checkedAt: string;
|
|
191
|
+
readonly startedAt: string;
|
|
192
|
+
readonly finishedAt: string;
|
|
193
|
+
readonly cwd: string;
|
|
194
|
+
readonly workspaceRoot: string | null;
|
|
195
|
+
readonly flags: UpgradeReportFlags;
|
|
196
|
+
readonly applied: boolean;
|
|
197
|
+
readonly summary: {
|
|
198
|
+
readonly total: number;
|
|
199
|
+
readonly available: number;
|
|
200
|
+
readonly breaking: number;
|
|
201
|
+
readonly applied: number;
|
|
202
|
+
};
|
|
203
|
+
readonly packages: readonly PackageVersionInfo[];
|
|
204
|
+
readonly excluded: {
|
|
205
|
+
readonly breaking: readonly string[];
|
|
206
|
+
};
|
|
207
|
+
readonly codemods?: CodemodSummary;
|
|
208
|
+
readonly error?: {
|
|
209
|
+
readonly message: string;
|
|
210
|
+
readonly category: string;
|
|
211
|
+
readonly context?: Record<string, unknown>;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
export { runUpgrade, readMigrationDocsWithMetadata, readMigrationDocs, readMigrationBreakingFlag, printUpgradeResults, parseMigrationFrontmatter, findMigrationDocsDir, buildMigrationGuides, UpgradeResult, UpgradeReportStatus, UpgradeReportFlags, UpgradeReport, UpgradeOptions, PackageVersionInfo, MigrationGuide, MigrationFrontmatter, MigrationDocWithMetadata, MigrationChangeType, MigrationChange, CodemodSummary };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
buildMigrationGuides,
|
|
4
|
+
findMigrationDocsDir,
|
|
5
|
+
parseMigrationFrontmatter,
|
|
6
|
+
printUpgradeResults,
|
|
7
|
+
readMigrationBreakingFlag,
|
|
8
|
+
readMigrationDocs,
|
|
9
|
+
readMigrationDocsWithMetadata,
|
|
10
|
+
runUpgrade
|
|
11
|
+
} from "../shared/outfitter-9zqc2njf.js";
|
|
12
|
+
import"../shared/outfitter-yvksv5qb.js";
|
|
13
|
+
import"../shared/outfitter-bpr28y54.js";
|
|
14
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
15
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
16
|
+
export {
|
|
17
|
+
runUpgrade,
|
|
18
|
+
readMigrationDocsWithMetadata,
|
|
19
|
+
readMigrationDocs,
|
|
20
|
+
readMigrationBreakingFlag,
|
|
21
|
+
printUpgradeResults,
|
|
22
|
+
parseMigrationFrontmatter,
|
|
23
|
+
findMigrationDocsDir,
|
|
24
|
+
buildMigrationGuides
|
|
25
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../shared/outfitter-wvbpxqq7";
|
|
2
|
+
import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "../shared/outfitter-2ngep1h2";
|
|
3
|
+
import { planCreateProject } from "../shared/outfitter-ksa1pp4t";
|
|
4
|
+
import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "../shared/outfitter-e2zz5wv7";
|
|
5
|
+
export { planCreateProject, getCreatePreset, CreateProjectPlan, CreateProjectInput, CreatePresetId, CreatePresetDefinition, CreatePlanChange, CREATE_PRESET_IDS, CREATE_PRESETS };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../shared/outfitter-hvsaxgcp.js";
|
|
3
|
+
import {
|
|
4
|
+
planCreateProject
|
|
5
|
+
} from "../shared/outfitter-avhm5z6w.js";
|
|
6
|
+
import {
|
|
7
|
+
CREATE_PRESETS,
|
|
8
|
+
CREATE_PRESET_IDS,
|
|
9
|
+
getCreatePreset
|
|
10
|
+
} from "../shared/outfitter-vh4xgb93.js";
|
|
11
|
+
import"../shared/outfitter-344t1r38.js";
|
|
12
|
+
import"../shared/outfitter-2np85etz.js";
|
|
13
|
+
import"../shared/outfitter-q9agarmb.js";
|
|
14
|
+
import"../shared/outfitter-66b25bj8.js";
|
|
15
|
+
import"../shared/outfitter-9x1brcmq.js";
|
|
16
|
+
import"../shared/outfitter-j833sxws.js";
|
|
17
|
+
import"../shared/outfitter-79vfxt6y.js";
|
|
18
|
+
import"../shared/outfitter-mtbpabf3.js";
|
|
19
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
20
|
+
import"../shared/outfitter-ara3djt0.js";
|
|
21
|
+
import"../shared/outfitter-k112c427.js";
|
|
22
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
23
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
24
|
+
export {
|
|
25
|
+
planCreateProject,
|
|
26
|
+
getCreatePreset,
|
|
27
|
+
CREATE_PRESET_IDS,
|
|
28
|
+
CREATE_PRESETS
|
|
29
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
planCreateProject
|
|
4
|
+
} from "../shared/outfitter-avhm5z6w.js";
|
|
5
|
+
import"../shared/outfitter-vh4xgb93.js";
|
|
6
|
+
import"../shared/outfitter-344t1r38.js";
|
|
7
|
+
import"../shared/outfitter-2np85etz.js";
|
|
8
|
+
import"../shared/outfitter-q9agarmb.js";
|
|
9
|
+
import"../shared/outfitter-66b25bj8.js";
|
|
10
|
+
import"../shared/outfitter-9x1brcmq.js";
|
|
11
|
+
import"../shared/outfitter-j833sxws.js";
|
|
12
|
+
import"../shared/outfitter-79vfxt6y.js";
|
|
13
|
+
import"../shared/outfitter-mtbpabf3.js";
|
|
14
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
15
|
+
import"../shared/outfitter-ara3djt0.js";
|
|
16
|
+
import"../shared/outfitter-k112c427.js";
|
|
17
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
18
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
19
|
+
export {
|
|
20
|
+
planCreateProject
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
addBlocks
|
|
4
|
+
} from "../shared/outfitter-j833sxws.js";
|
|
5
|
+
import"../shared/outfitter-79vfxt6y.js";
|
|
6
|
+
import"../shared/outfitter-mtbpabf3.js";
|
|
7
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
8
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
9
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
10
|
+
export {
|
|
11
|
+
addBlocks
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
injectSharedConfig,
|
|
4
|
+
rewriteLocalDependencies
|
|
5
|
+
} from "../shared/outfitter-ara3djt0.js";
|
|
6
|
+
import"../shared/outfitter-k112c427.js";
|
|
7
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
8
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
9
|
+
export {
|
|
10
|
+
rewriteLocalDependencies,
|
|
11
|
+
injectSharedConfig
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
executePlan
|
|
4
|
+
} from "../shared/outfitter-66b25bj8.js";
|
|
5
|
+
import"../shared/outfitter-9x1brcmq.js";
|
|
6
|
+
import"../shared/outfitter-j833sxws.js";
|
|
7
|
+
import"../shared/outfitter-79vfxt6y.js";
|
|
8
|
+
import"../shared/outfitter-mtbpabf3.js";
|
|
9
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
10
|
+
import"../shared/outfitter-ara3djt0.js";
|
|
11
|
+
import"../shared/outfitter-k112c427.js";
|
|
12
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
13
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
14
|
+
export {
|
|
15
|
+
executePlan
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { buildWorkspaceRootPackageJson, detectWorkspaceRoot, scaffoldWorkspaceRoot } from "../shared/outfitter-7ha7p61k";
|
|
2
|
+
import { deriveBinName, deriveProjectName, resolveAuthor, resolvePackageName, resolveYear } from "../shared/outfitter-npyfbdmc";
|
|
3
|
+
import { copyTemplateFiles, getOutputFilename, getTemplatesDir, isBinaryFile, replacePlaceholders } from "../shared/outfitter-h1mnzzd1";
|
|
4
|
+
import { executePlan } from "../shared/outfitter-gdvm5c0b";
|
|
5
|
+
import { addBlocks } from "../shared/outfitter-193jvzg4";
|
|
6
|
+
import { injectSharedConfig, rewriteLocalDependencies } from "../shared/outfitter-sgtq57qr";
|
|
7
|
+
import { EngineCollector, EngineOptions, PlaceholderValues, ScaffoldChange, ScaffoldError, ScaffoldPlan, ScaffoldResult } from "../shared/outfitter-qfh36ddg";
|
|
8
|
+
export { scaffoldWorkspaceRoot, rewriteLocalDependencies, resolveYear, resolvePackageName, resolveAuthor, replacePlaceholders, isBinaryFile, injectSharedConfig, getTemplatesDir, getOutputFilename, executePlan, detectWorkspaceRoot, deriveProjectName, deriveBinName, copyTemplateFiles, buildWorkspaceRootPackageJson, addBlocks, ScaffoldResult, ScaffoldPlan, ScaffoldError, ScaffoldChange, PlaceholderValues, EngineOptions, EngineCollector };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../shared/outfitter-344t1r38.js";
|
|
3
|
+
import {
|
|
4
|
+
buildWorkspaceRootPackageJson,
|
|
5
|
+
detectWorkspaceRoot,
|
|
6
|
+
scaffoldWorkspaceRoot
|
|
7
|
+
} from "../shared/outfitter-2np85etz.js";
|
|
8
|
+
import {
|
|
9
|
+
deriveBinName,
|
|
10
|
+
deriveProjectName,
|
|
11
|
+
resolveAuthor,
|
|
12
|
+
resolvePackageName,
|
|
13
|
+
resolveYear
|
|
14
|
+
} from "../shared/outfitter-q9agarmb.js";
|
|
15
|
+
import {
|
|
16
|
+
executePlan
|
|
17
|
+
} from "../shared/outfitter-66b25bj8.js";
|
|
18
|
+
import {
|
|
19
|
+
copyTemplateFiles,
|
|
20
|
+
getOutputFilename,
|
|
21
|
+
getTemplatesDir,
|
|
22
|
+
isBinaryFile,
|
|
23
|
+
replacePlaceholders
|
|
24
|
+
} from "../shared/outfitter-9x1brcmq.js";
|
|
25
|
+
import {
|
|
26
|
+
addBlocks
|
|
27
|
+
} from "../shared/outfitter-j833sxws.js";
|
|
28
|
+
import"../shared/outfitter-79vfxt6y.js";
|
|
29
|
+
import"../shared/outfitter-mtbpabf3.js";
|
|
30
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
31
|
+
import {
|
|
32
|
+
injectSharedConfig,
|
|
33
|
+
rewriteLocalDependencies
|
|
34
|
+
} from "../shared/outfitter-ara3djt0.js";
|
|
35
|
+
import"../shared/outfitter-k112c427.js";
|
|
36
|
+
import {
|
|
37
|
+
ScaffoldError
|
|
38
|
+
} from "../shared/outfitter-8y2dfx6n.js";
|
|
39
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
40
|
+
export {
|
|
41
|
+
scaffoldWorkspaceRoot,
|
|
42
|
+
rewriteLocalDependencies,
|
|
43
|
+
resolveYear,
|
|
44
|
+
resolvePackageName,
|
|
45
|
+
resolveAuthor,
|
|
46
|
+
replacePlaceholders,
|
|
47
|
+
isBinaryFile,
|
|
48
|
+
injectSharedConfig,
|
|
49
|
+
getTemplatesDir,
|
|
50
|
+
getOutputFilename,
|
|
51
|
+
executePlan,
|
|
52
|
+
detectWorkspaceRoot,
|
|
53
|
+
deriveProjectName,
|
|
54
|
+
deriveBinName,
|
|
55
|
+
copyTemplateFiles,
|
|
56
|
+
buildWorkspaceRootPackageJson,
|
|
57
|
+
addBlocks,
|
|
58
|
+
ScaffoldError
|
|
59
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
deriveBinName,
|
|
4
|
+
deriveProjectName,
|
|
5
|
+
resolveAuthor,
|
|
6
|
+
resolvePackageName,
|
|
7
|
+
resolveYear
|
|
8
|
+
} from "../shared/outfitter-q9agarmb.js";
|
|
9
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
10
|
+
export {
|
|
11
|
+
resolveYear,
|
|
12
|
+
resolvePackageName,
|
|
13
|
+
resolveAuthor,
|
|
14
|
+
deriveProjectName,
|
|
15
|
+
deriveBinName
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OperationCollector } from "../shared/outfitter-amc4jbs1";
|
|
2
|
+
import { OutputMode } from "@outfitter/cli/types";
|
|
3
|
+
declare function renderOperationPlan(collector: OperationCollector, options?: {
|
|
4
|
+
readonly mode?: OutputMode;
|
|
5
|
+
readonly rootDir?: string;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export { renderOperationPlan };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { copyTemplateFiles, getOutputFilename, getTemplatesDir, isBinaryFile, replacePlaceholders } from "../shared/outfitter-h1mnzzd1";
|
|
2
|
+
import "../shared/outfitter-qfh36ddg";
|
|
3
|
+
export { replacePlaceholders, isBinaryFile, getTemplatesDir, getOutputFilename, copyTemplateFiles };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
copyTemplateFiles,
|
|
4
|
+
getOutputFilename,
|
|
5
|
+
getTemplatesDir,
|
|
6
|
+
isBinaryFile,
|
|
7
|
+
replacePlaceholders
|
|
8
|
+
} from "../shared/outfitter-9x1brcmq.js";
|
|
9
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
10
|
+
import"../shared/outfitter-mdt37hqm.js";
|
|
11
|
+
export {
|
|
12
|
+
replacePlaceholders,
|
|
13
|
+
isBinaryFile,
|
|
14
|
+
getTemplatesDir,
|
|
15
|
+
getOutputFilename,
|
|
16
|
+
copyTemplateFiles
|
|
17
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EngineCollector, EngineOptions, PlaceholderValues, ScaffoldChange, ScaffoldError, ScaffoldPlan, ScaffoldResult } from "../shared/outfitter-qfh36ddg";
|
|
2
|
+
export { ScaffoldResult, ScaffoldPlan, ScaffoldError, ScaffoldChange, PlaceholderValues, EngineOptions, EngineCollector };
|