outfitter 0.2.7 → 0.3.3
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 +34 -7
- package/dist/actions/add.d.ts +18 -0
- package/dist/actions/add.js +14 -0
- package/dist/actions/check-automation.d.ts +20 -0
- package/dist/actions/check-automation.js +27 -0
- package/dist/actions/check.d.ts +34 -0
- package/dist/actions/check.js +19 -0
- package/dist/actions/demo.d.ts +12 -0
- package/dist/actions/demo.js +11 -0
- package/dist/actions/docs-output-mode.d.ts +4 -0
- package/dist/actions/docs-output-mode.js +8 -0
- package/dist/actions/docs.d.ts +25 -0
- package/dist/actions/docs.js +31 -0
- package/dist/actions/doctor.d.ts +10 -0
- package/dist/actions/doctor.js +15 -0
- package/dist/actions/init.d.ts +28 -0
- package/dist/actions/init.js +31 -0
- package/dist/actions/scaffold.d.ts +19 -0
- package/dist/actions/scaffold.js +21 -0
- package/dist/actions/shared.d.ts +61 -0
- package/dist/actions/shared.js +30 -0
- package/dist/actions/upgrade.d.ts +17 -0
- package/dist/actions/upgrade.js +21 -0
- package/dist/actions.d.ts +1 -1
- package/dist/actions.js +53 -22
- package/dist/cli.js +66 -4
- package/dist/commands/add.js +3 -3
- package/dist/commands/check-action-ceremony.d.ts +55 -0
- package/dist/commands/check-action-ceremony.js +15 -0
- package/dist/commands/check-docs-sentinel.d.ts +27 -0
- package/dist/commands/check-docs-sentinel.js +18 -0
- package/dist/commands/check-orchestrator.d.ts +2 -0
- package/dist/commands/check-orchestrator.js +17 -0
- package/dist/commands/check-preset-versions.d.ts +20 -0
- package/dist/commands/check-preset-versions.js +15 -0
- package/dist/commands/check-publish-guardrails.d.ts +38 -0
- package/dist/commands/check-publish-guardrails.js +19 -0
- package/dist/commands/check-surface-map-format.d.ts +29 -0
- package/dist/commands/check-surface-map-format.js +19 -0
- package/dist/commands/check-surface-map.d.ts +20 -0
- package/dist/commands/check-surface-map.js +15 -0
- package/dist/commands/check-tsdoc.d.ts +2 -21
- package/dist/commands/check-tsdoc.js +3 -2
- package/dist/commands/check.d.ts +2 -0
- package/dist/commands/check.js +3 -3
- package/dist/commands/demo.js +1 -1
- package/dist/commands/docs-api.d.ts +4 -0
- package/dist/commands/docs-api.js +13 -0
- package/dist/commands/docs-export.d.ts +4 -0
- package/dist/commands/docs-export.js +12 -0
- package/dist/commands/docs-list.d.ts +3 -0
- package/dist/commands/docs-list.js +13 -0
- package/dist/commands/docs-module-loader.d.ts +2 -2
- package/dist/commands/docs-module-loader.js +2 -2
- package/dist/commands/docs-search.d.ts +3 -0
- package/dist/commands/docs-search.js +13 -0
- package/dist/commands/docs-show.d.ts +3 -0
- package/dist/commands/docs-show.js +13 -0
- package/dist/commands/docs-types.d.ts +21 -0
- package/dist/commands/doctor.js +4 -12
- package/dist/commands/init-execution.d.ts +8 -0
- package/dist/commands/init-execution.js +11 -0
- package/dist/commands/init-option-resolution.d.ts +5 -0
- package/dist/commands/init-option-resolution.js +14 -0
- package/dist/commands/init-output.d.ts +9 -0
- package/dist/commands/init-output.js +11 -0
- package/dist/commands/init.d.ts +7 -5
- package/dist/commands/init.js +10 -18
- package/dist/commands/jq-utils.d.ts +17 -0
- package/dist/commands/jq-utils.js +8 -0
- package/dist/commands/repo.d.ts +3 -3
- package/dist/commands/repo.js +8 -4
- package/dist/commands/scaffold-output.d.ts +4 -0
- package/dist/commands/scaffold-output.js +11 -0
- package/dist/commands/scaffold-planning.d.ts +65 -0
- package/dist/commands/scaffold-planning.js +20 -0
- package/dist/commands/scaffold.d.ts +3 -3
- package/dist/commands/scaffold.js +10 -16
- package/dist/commands/shared-deps.d.ts +5 -4
- package/dist/commands/shared-deps.js +3 -3
- package/dist/commands/upgrade-apply.d.ts +14 -0
- package/dist/commands/upgrade-apply.js +8 -0
- package/dist/commands/upgrade-codemods.d.ts +5 -0
- package/dist/commands/upgrade-codemods.js +4 -5
- package/dist/commands/upgrade-latest-version.d.ts +8 -0
- package/dist/commands/upgrade-latest-version.js +8 -0
- package/dist/commands/upgrade-migration-docs.d.ts +3 -0
- package/dist/commands/upgrade-migration-docs.js +15 -0
- package/dist/commands/upgrade-migration-frontmatter.d.ts +2 -0
- package/dist/commands/upgrade-migration-frontmatter.js +10 -0
- package/dist/commands/upgrade-migration-guides.d.ts +5 -0
- package/dist/commands/upgrade-migration-guides.js +10 -0
- package/dist/commands/upgrade-output.d.ts +5 -0
- package/dist/commands/upgrade-output.js +11 -0
- package/dist/commands/upgrade-planner.js +1 -1
- package/dist/commands/upgrade-report.d.ts +5 -0
- package/dist/commands/upgrade-report.js +8 -0
- package/dist/commands/upgrade-workspace.js +2 -2
- package/dist/commands/upgrade.d.ts +4 -220
- package/dist/commands/upgrade.js +21 -9
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +2 -30
- package/dist/create/planner.d.ts +2 -2
- package/dist/create/planner.js +80 -17
- package/dist/create/presets.d.ts +2 -2
- package/dist/create/presets.js +2 -2
- package/dist/create/types.d.ts +1 -1
- package/dist/engine/blocks.d.ts +2 -2
- package/dist/engine/blocks.js +5 -5
- package/dist/engine/collector.d.ts +1 -1
- package/dist/engine/collector.js +1 -1
- package/dist/engine/config.d.ts +2 -2
- package/dist/engine/config.js +4 -4
- package/dist/engine/dependency-versions.d.ts +13 -8
- package/dist/engine/dependency-versions.js +4 -4
- package/dist/engine/executor.d.ts +2 -2
- package/dist/engine/executor.js +149 -12
- package/dist/engine/index.d.ts +9 -7
- package/dist/engine/index.js +17 -31
- package/dist/engine/names.js +1 -1
- package/dist/engine/post-scaffold.d.ts +2 -2
- package/dist/engine/post-scaffold.js +1 -1
- package/dist/engine/preset.d.ts +3 -0
- package/dist/engine/preset.js +17 -0
- package/dist/engine/render-plan.d.ts +1 -1
- package/dist/engine/render-plan.js +1 -1
- package/dist/engine/template.d.ts +3 -2
- package/dist/engine/template.js +24 -7
- package/dist/engine/types.d.ts +1 -1
- package/dist/engine/types.js +1 -1
- package/dist/engine/workspace.d.ts +2 -2
- package/dist/engine/workspace.js +1 -1
- package/dist/index.d.ts +17 -398
- package/dist/index.js +7 -164
- package/dist/manifest.js +2 -2
- package/dist/output-mode.js +1 -1
- package/dist/shared/{outfitter-6fgk6adm.d.ts → outfitter-1tfa9hke.d.ts} +16 -1
- package/dist/shared/{outfitter-6bkqjk86.d.ts → outfitter-2nx0k4b3.d.ts} +1 -0
- package/dist/shared/outfitter-2ysjerp6.d.ts +44 -0
- package/dist/shared/outfitter-2z61gp5w.js +29 -0
- package/dist/shared/outfitter-34vg353f.d.ts +82 -0
- package/dist/shared/{outfitter-5yjr404v.d.ts → outfitter-3dq4r10s.d.ts} +5 -3
- package/dist/shared/outfitter-3rcrvva8.js +103 -0
- package/dist/shared/{outfitter-79vfxt6y.js → outfitter-3tx3adgj.js} +12 -3
- package/dist/shared/{outfitter-63gse8fv.js → outfitter-507ra35w.js} +33 -64
- package/dist/shared/outfitter-56jq0rh2.d.ts +42 -0
- package/dist/shared/{outfitter-r419zfgs.d.ts → outfitter-58rn1sj1.d.ts} +1 -1
- package/dist/shared/outfitter-5d9wbzhh.d.ts +19 -0
- package/dist/shared/outfitter-5j7zee11.d.ts +180 -0
- package/dist/shared/{outfitter-s7jetkge.d.ts → outfitter-5r6q2749.d.ts} +1 -1
- package/dist/shared/outfitter-5vx1bp7h.js +41 -0
- package/dist/shared/outfitter-6ddf91vh.js +190 -0
- package/dist/shared/{outfitter-mt7d1ek2.js → outfitter-6mpkh3zn.js} +39 -305
- package/dist/shared/{outfitter-ybbazsxq.d.ts → outfitter-6rtcemk7.d.ts} +8 -4
- package/dist/shared/{outfitter-9x1brcmq.js → outfitter-6t7xeyg1.js} +13 -38
- package/dist/shared/outfitter-738z4c37.js +262 -0
- package/dist/shared/{outfitter-yvksv5qb.js → outfitter-76k25svs.js} +4 -4
- package/dist/shared/outfitter-7n7vsz95.js +101 -0
- package/dist/shared/outfitter-7q9fnbwa.js +60 -0
- package/dist/shared/outfitter-84chvazx.js +480 -0
- package/dist/shared/outfitter-8ggmja91.js +301 -0
- package/dist/shared/{outfitter-qakwgrrh.d.ts → outfitter-8kmak0wc.d.ts} +1 -1
- package/dist/shared/outfitter-940h0x7b.js +71 -0
- package/dist/shared/{outfitter-fn20r49x.d.ts → outfitter-954y4mzx.d.ts} +1 -1
- package/dist/shared/outfitter-b9cpnr7e.js +110 -0
- package/dist/shared/outfitter-c7sbs7es.js +92 -0
- package/dist/shared/outfitter-cyhzstz0.js +93 -0
- package/dist/shared/{outfitter-n9g1zk4x.d.ts → outfitter-cyvr4r8d.d.ts} +3 -2
- package/dist/shared/outfitter-d0kqashd.d.ts +98 -0
- package/dist/shared/outfitter-dx4hn4ta.js +325 -0
- package/dist/shared/{outfitter-bn9c8p2e.js → outfitter-e84cr97g.js} +37 -9
- package/dist/shared/outfitter-ec83h4v2.js +17 -0
- package/dist/shared/{outfitter-vh4xgb93.js → outfitter-ekb6t1zz.js} +4 -4
- package/dist/shared/outfitter-ex8gn945.js +51 -0
- package/dist/shared/outfitter-f3a70135.js +75 -0
- package/dist/shared/outfitter-fbvfd5zq.d.ts +13 -0
- package/dist/shared/outfitter-fj2v5ffz.js +165 -0
- package/dist/shared/outfitter-fx1m251y.js +122 -0
- package/dist/shared/outfitter-fxry5n58.js +254 -0
- package/dist/shared/outfitter-g3hvjshg.js +1 -0
- package/dist/shared/{outfitter-f9znfhkn.d.ts → outfitter-gdc7b7de.d.ts} +1 -1
- package/dist/shared/outfitter-gyayfx5r.js +156 -0
- package/dist/shared/outfitter-h0wmtxw8.d.ts +23 -0
- package/dist/shared/{outfitter-z5sx06qe.d.ts → outfitter-hcexcvxe.d.ts} +1 -1
- package/dist/shared/outfitter-hf5bj2gq.js +117 -0
- package/dist/shared/{outfitter-e9rrfekb.d.ts → outfitter-htx4asgr.d.ts} +4 -3
- package/dist/shared/outfitter-jkct38dh.js +53 -0
- package/dist/shared/outfitter-jwxggvz4.js +42 -0
- package/dist/shared/outfitter-k6zyvg2n.js +306 -0
- package/dist/shared/outfitter-mstr60zz.js +215 -0
- package/dist/shared/outfitter-n0ed012k.js +101 -0
- package/dist/shared/outfitter-n13pqaft.js +19 -0
- package/dist/shared/outfitter-nxvjxrmw.d.ts +48 -0
- package/dist/shared/outfitter-p2wn07b7.js +160 -0
- package/dist/shared/{outfitter-5y646xzk.js → outfitter-px5sv5gn.js} +29 -9
- package/dist/shared/outfitter-q1g58t85.js +8 -0
- package/dist/shared/{outfitter-pj9vp00r.js → outfitter-qsd5638j.js} +26 -249
- package/dist/shared/outfitter-qsrx7m4w.js +72 -0
- package/dist/shared/outfitter-r2awqszh.d.ts +52 -0
- package/dist/shared/outfitter-rdpw2sbp.d.ts +77 -0
- package/dist/shared/outfitter-rp89dafm.js +109 -0
- package/dist/shared/outfitter-s1c0whzj.js +121 -0
- package/dist/shared/{outfitter-w1j80j1r.js → outfitter-ssrtakh3.js} +21 -5
- package/dist/shared/outfitter-ssynegbs.js +167 -0
- package/dist/shared/{outfitter-zwyvewr1.js → outfitter-svts4wk2.js} +1 -1
- package/dist/shared/outfitter-tavatb5p.js +166 -0
- package/dist/shared/outfitter-tqznjgbm.js +44 -0
- package/dist/shared/{outfitter-yraebrmw.d.ts → outfitter-wcrp7d7m.d.ts} +1 -1
- package/dist/shared/outfitter-wkt0a0ra.js +67 -0
- package/dist/shared/{outfitter-ha89qf8q.js → outfitter-wrcqq29p.js} +4 -4
- package/dist/shared/outfitter-wyg1tpp5.d.ts +43 -0
- package/dist/shared/outfitter-x0vpb7tj.js +126 -0
- package/dist/shared/{outfitter-m44n0qzw.js → outfitter-x39awx8g.js} +11 -26
- package/dist/shared/outfitter-x4cc5xsq.js +168 -0
- package/dist/shared/outfitter-x8w5sjnd.d.ts +39 -0
- package/dist/shared/{outfitter-amc4jbs1.d.ts → outfitter-xr6g13nz.d.ts} +2 -2
- package/dist/shared/outfitter-xs94pkfe.js +106 -0
- package/dist/shared/outfitter-y37yfehn.d.ts +37 -0
- package/dist/shared/{outfitter-fhnjpjwc.d.ts → outfitter-y6ee0k45.d.ts} +1 -1
- package/dist/shared/{outfitter-j833sxws.js → outfitter-ydw7x6bh.js} +1 -1
- package/dist/shared/outfitter-yhb23pjc.js +89 -0
- package/dist/shared/{outfitter-mtbpabf3.js → outfitter-ypcvwg1s.js} +1 -1
- package/dist/shared/outfitter-znbqe5zy.d.ts +45 -0
- package/dist/shared/{outfitter-dpj9erew.d.ts → outfitter-zng6w0t9.d.ts} +1 -1
- package/dist/targets/index.d.ts +2 -2
- package/dist/targets/index.js +2 -3
- package/dist/targets/registry.d.ts +2 -2
- package/dist/targets/registry.js +207 -14
- package/dist/targets/types.d.ts +1 -1
- package/package.json +203 -40
- package/dist/shared/chunk-x6644tk8.js +0 -6491
- package/dist/shared/outfitter-20f6a2n4.js +0 -35
- package/dist/shared/outfitter-5akzvppx.js +0 -125
- package/dist/shared/outfitter-7ch26yq8.js +0 -885
- package/dist/shared/outfitter-ehp18x1n.js +0 -1
- package/dist/shared/outfitter-h3q6ae6d.d.ts +0 -48
- package/dist/shared/outfitter-hvsaxgcp.js +0 -1
- package/dist/shared/outfitter-p71qb0f0.js +0 -82
- package/dist/shared/outfitter-pcj9gg2g.js +0 -909
- package/dist/shared/outfitter-xe5mzgdc.js +0 -208
- package/dist/shared/outfitter-z0we32cp.d.ts +0 -63
- package/template-versions.json +0 -22
- package/templates/.gitkeep +0 -0
- package/templates/basic/.gitignore.template +0 -30
- package/templates/basic/.lefthook.yml.template +0 -26
- package/templates/basic/package.json.template +0 -46
- package/templates/basic/src/index.ts.template +0 -26
- package/templates/basic/tsconfig.json.template +0 -34
- package/templates/cli/.gitignore.template +0 -4
- package/templates/cli/.lefthook.yml.template +0 -26
- package/templates/cli/README.md.template +0 -35
- package/templates/cli/biome.json.template +0 -4
- package/templates/cli/package.json.template +0 -53
- package/templates/cli/src/cli.ts.template +0 -8
- package/templates/cli/src/index.ts.template +0 -7
- package/templates/cli/src/program.ts.template +0 -31
- package/templates/cli/tsconfig.json.template +0 -34
- package/templates/daemon/.gitignore.template +0 -4
- package/templates/daemon/.lefthook.yml.template +0 -26
- package/templates/daemon/README.md.template +0 -67
- package/templates/daemon/biome.json.template +0 -4
- package/templates/daemon/package.json.template +0 -56
- package/templates/daemon/src/cli.ts.template +0 -96
- package/templates/daemon/src/daemon-main.ts.template +0 -79
- package/templates/daemon/src/daemon.ts.template +0 -11
- package/templates/daemon/src/index.ts.template +0 -7
- package/templates/daemon/tsconfig.json.template +0 -23
- package/templates/full-stack/.gitignore.template +0 -30
- package/templates/full-stack/README.md.template +0 -30
- package/templates/full-stack/apps/cli/package.json.template +0 -39
- package/templates/full-stack/apps/cli/src/cli.ts.template +0 -24
- package/templates/full-stack/apps/cli/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/cli/src/index.ts.template +0 -5
- package/templates/full-stack/apps/cli/tsconfig.json.template +0 -37
- package/templates/full-stack/apps/mcp/package.json.template +0 -40
- package/templates/full-stack/apps/mcp/src/index.test.ts.template +0 -18
- package/templates/full-stack/apps/mcp/src/index.ts.template +0 -6
- package/templates/full-stack/apps/mcp/src/mcp.ts.template +0 -22
- package/templates/full-stack/apps/mcp/src/server.ts.template +0 -10
- package/templates/full-stack/apps/mcp/tsconfig.json.template +0 -37
- package/templates/full-stack/package.json.template +0 -16
- package/templates/full-stack/packages/core/package.json.template +0 -36
- package/templates/full-stack/packages/core/src/handlers.ts.template +0 -31
- package/templates/full-stack/packages/core/src/index.test.ts.template +0 -30
- package/templates/full-stack/packages/core/src/index.ts.template +0 -8
- package/templates/full-stack/packages/core/src/types.ts.template +0 -13
- package/templates/full-stack/packages/core/tsconfig.json.template +0 -34
- package/templates/library/.gitignore.template +0 -30
- package/templates/library/README.md.template +0 -29
- package/templates/library/bunup.config.ts.template +0 -20
- package/templates/library/package.json.template +0 -55
- package/templates/library/src/handlers.ts.template +0 -31
- package/templates/library/src/index.test.ts.template +0 -35
- package/templates/library/src/index.ts.template +0 -8
- package/templates/library/src/types.ts.template +0 -13
- package/templates/library/tsconfig.json.template +0 -34
- package/templates/mcp/.gitignore.template +0 -4
- package/templates/mcp/.lefthook.yml.template +0 -26
- package/templates/mcp/README.md.template +0 -54
- package/templates/mcp/biome.json.template +0 -4
- package/templates/mcp/package.json.template +0 -53
- package/templates/mcp/src/index.ts.template +0 -7
- package/templates/mcp/src/mcp.ts.template +0 -33
- package/templates/mcp/src/server.ts.template +0 -8
- package/templates/mcp/tsconfig.json.template +0 -23
- package/templates/minimal/.gitignore.template +0 -30
- package/templates/minimal/.lefthook.yml.template +0 -26
- package/templates/minimal/package.json.template +0 -53
- package/templates/minimal/src/index.ts.template +0 -26
- package/templates/minimal/tsconfig.json.template +0 -34
- /package/dist/{shared/outfitter-344t1r38.js → commands/docs-types.js} +0 -0
- /package/dist/shared/{outfitter-mdt37hqm.js → outfitter-eepj7rf7.js} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UpgradeReport, UpgradeReportFlags, UpgradeReportStatus, WriteUpgradeReportMeta, writeUpgradeReportSafely } from "../shared/outfitter-5j7zee11.js";
|
|
2
|
+
import "../shared/outfitter-109s75x0.js";
|
|
3
|
+
import "../shared/outfitter-56jq0rh2.js";
|
|
4
|
+
import "../shared/outfitter-y37yfehn.js";
|
|
5
|
+
export { writeUpgradeReportSafely, WriteUpgradeReportMeta, UpgradeReportStatus, UpgradeReportFlags, UpgradeReport };
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
detectWorkspaceRoot,
|
|
6
6
|
getInstalledPackagesFromWorkspace,
|
|
7
7
|
runInstall
|
|
8
|
-
} from "../shared/outfitter-
|
|
9
|
-
import"../shared/outfitter-
|
|
8
|
+
} from "../shared/outfitter-76k25svs.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
10
|
export {
|
|
11
11
|
runInstall,
|
|
12
12
|
getInstalledPackagesFromWorkspace,
|
|
@@ -1,221 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
interface UpgradeOptions {
|
|
6
|
-
/** Include breaking changes in the upgrade */
|
|
7
|
-
readonly all?: boolean;
|
|
8
|
-
/** Working directory (defaults to cwd) */
|
|
9
|
-
readonly cwd: string;
|
|
10
|
-
/** Preview only — no mutations, no prompt */
|
|
11
|
-
readonly dryRun?: boolean;
|
|
12
|
-
/** Show migration guide */
|
|
13
|
-
readonly guide?: boolean;
|
|
14
|
-
/** Filter to specific package names (scan + guides) */
|
|
15
|
-
readonly guidePackages?: readonly string[];
|
|
16
|
-
/** Whether interactive prompts are enabled (false in CI) */
|
|
17
|
-
readonly interactive?: boolean;
|
|
18
|
-
/** Skip automatic codemod execution during upgrade */
|
|
19
|
-
readonly noCodemods?: boolean;
|
|
20
|
-
/** Output mode */
|
|
21
|
-
readonly outputMode?: OutputMode;
|
|
22
|
-
/** Auto-confirm without prompting */
|
|
23
|
-
readonly yes?: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface PackageVersionInfo {
|
|
26
|
-
/** Whether the update contains breaking changes (major bump) */
|
|
27
|
-
readonly breaking: boolean;
|
|
28
|
-
/** Currently installed version */
|
|
29
|
-
readonly current: string;
|
|
30
|
-
/** Latest available version from npm (null if query failed) */
|
|
31
|
-
readonly latest: string | null;
|
|
32
|
-
/** Full package name */
|
|
33
|
-
readonly name: string;
|
|
34
|
-
/** Whether an update is available */
|
|
35
|
-
readonly updateAvailable: boolean;
|
|
36
|
-
}
|
|
37
|
-
/** Classification of a change within a migration. */
|
|
38
|
-
type MigrationChangeType = "renamed" | "removed" | "signature-changed" | "moved" | "deprecated" | "added";
|
|
39
|
-
/** A single structured change entry from migration frontmatter. */
|
|
40
|
-
interface MigrationChange {
|
|
41
|
-
/** Path to codemod script relative to the codemods directory. */
|
|
42
|
-
readonly codemod?: string;
|
|
43
|
-
readonly detail?: string;
|
|
44
|
-
readonly export?: string;
|
|
45
|
-
readonly from?: string;
|
|
46
|
-
readonly path?: string;
|
|
47
|
-
readonly to?: string;
|
|
48
|
-
readonly type: MigrationChangeType;
|
|
49
|
-
}
|
|
50
|
-
/** Parsed frontmatter from a migration doc. */
|
|
51
|
-
interface MigrationFrontmatter {
|
|
52
|
-
readonly breaking: boolean;
|
|
53
|
-
readonly changes?: readonly MigrationChange[];
|
|
54
|
-
readonly package: string;
|
|
55
|
-
readonly version: string;
|
|
56
|
-
}
|
|
57
|
-
/** A migration doc with parsed frontmatter and body content. */
|
|
58
|
-
interface MigrationDocWithMetadata {
|
|
59
|
-
readonly body: string;
|
|
60
|
-
readonly frontmatter: MigrationFrontmatter;
|
|
61
|
-
readonly version: string;
|
|
62
|
-
}
|
|
63
|
-
interface MigrationGuide {
|
|
64
|
-
/** Whether this is a breaking change */
|
|
65
|
-
readonly breaking: boolean;
|
|
66
|
-
/** Structured changes from migration frontmatter, if available */
|
|
67
|
-
readonly changes?: readonly MigrationChange[];
|
|
68
|
-
/** Currently installed version */
|
|
69
|
-
readonly fromVersion: string;
|
|
70
|
-
/** The @outfitter/* package name */
|
|
71
|
-
readonly packageName: string;
|
|
72
|
-
/** Migration step strings (empty if no guide exists) */
|
|
73
|
-
readonly steps: readonly string[];
|
|
74
|
-
/** Latest available version */
|
|
75
|
-
readonly toVersion: string;
|
|
76
|
-
}
|
|
77
|
-
/** Summary of codemods executed during --apply. */
|
|
78
|
-
interface CodemodSummary {
|
|
79
|
-
/** Total files changed across all codemods */
|
|
80
|
-
readonly changedFiles: readonly string[];
|
|
81
|
-
/** Number of codemods executed */
|
|
82
|
-
readonly codemodCount: number;
|
|
83
|
-
/** Errors encountered during codemod execution */
|
|
84
|
-
readonly errors: readonly string[];
|
|
85
|
-
}
|
|
86
|
-
interface UpgradeResult {
|
|
87
|
-
/** Whether mutations were made (--apply was used and changes were written) */
|
|
88
|
-
readonly applied: boolean;
|
|
89
|
-
/** Package names that were updated in package.json */
|
|
90
|
-
readonly appliedPackages: string[];
|
|
91
|
-
/** Codemod execution summary (populated when --apply runs codemods) */
|
|
92
|
-
readonly codemods?: CodemodSummary;
|
|
93
|
-
/** Version conflicts found across workspace manifests */
|
|
94
|
-
readonly conflicts?: readonly VersionConflict[];
|
|
95
|
-
/** Structured migration guides (populated when --guide is used) */
|
|
96
|
-
readonly guides?: readonly MigrationGuide[];
|
|
97
|
-
/** Whether any update is a breaking change */
|
|
98
|
-
readonly hasBreaking: boolean;
|
|
99
|
-
/** Package version info */
|
|
100
|
-
readonly packages: PackageVersionInfo[];
|
|
101
|
-
/** Package names skipped because they contain breaking changes */
|
|
102
|
-
readonly skippedBreaking: string[];
|
|
103
|
-
/** Total packages checked */
|
|
104
|
-
readonly total: number;
|
|
105
|
-
/** Package names that were requested but not found in the workspace */
|
|
106
|
-
readonly unknownPackages?: readonly string[];
|
|
107
|
-
/** Number of packages with updates available */
|
|
108
|
-
readonly updatesAvailable: number;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Find migration docs directory, checking known locations.
|
|
112
|
-
*
|
|
113
|
-
* Searches:
|
|
114
|
-
* 1. Relative to the target cwd
|
|
115
|
-
* 2. Walking up parent directories from cwd (monorepo root detection)
|
|
116
|
-
* 3. Relative to the outfitter binary itself (development mode)
|
|
117
|
-
*/
|
|
118
|
-
declare function findMigrationDocsDir(cwd: string, binaryDir?: string): string | null;
|
|
119
|
-
/**
|
|
120
|
-
* Read all migration docs for a package between two versions.
|
|
121
|
-
*
|
|
122
|
-
* Scans the migrations directory for docs matching the package name,
|
|
123
|
-
* filters to versions greater than `fromVersion` and at most `toVersion`,
|
|
124
|
-
* and returns their contents sorted by version ascending.
|
|
125
|
-
*/
|
|
126
|
-
declare function readMigrationDocs(migrationsDir: string, shortName: string, fromVersion: string, toVersion: string): string[];
|
|
127
|
-
/**
|
|
128
|
-
* Read the `breaking` flag for an exact migration doc version, if present.
|
|
129
|
-
*
|
|
130
|
-
* Returns:
|
|
131
|
-
* - `true` or `false` when the frontmatter contains `breaking: ...`
|
|
132
|
-
* - `undefined` when the doc is missing, unreadable, or has no valid flag
|
|
133
|
-
*/
|
|
134
|
-
declare function readMigrationBreakingFlag(migrationsDir: string, shortName: string, version: string): boolean | undefined;
|
|
135
|
-
/**
|
|
136
|
-
* Parse the full frontmatter from a migration doc, including the `changes` array.
|
|
137
|
-
*
|
|
138
|
-
* Returns `null` if the content has no valid frontmatter or is missing
|
|
139
|
-
* required fields (`package`, `version`, `breaking`).
|
|
140
|
-
*/
|
|
141
|
-
declare function parseMigrationFrontmatter(content: string): MigrationFrontmatter | null;
|
|
142
|
-
/**
|
|
143
|
-
* Read all migration docs for a package between two versions,
|
|
144
|
-
* returning parsed frontmatter alongside the body content.
|
|
145
|
-
*
|
|
146
|
-
* Like `readMigrationDocs` but returns structured metadata instead of
|
|
147
|
-
* plain strings. Used by the codemod infrastructure to discover
|
|
148
|
-
* machine-actionable changes.
|
|
149
|
-
*/
|
|
150
|
-
declare function readMigrationDocsWithMetadata(migrationsDir: string, shortName: string, fromVersion: string, toVersion: string): MigrationDocWithMetadata[];
|
|
151
|
-
/**
|
|
152
|
-
* Build structured migration guides for packages with available updates.
|
|
153
|
-
*
|
|
154
|
-
* For each package with an update, produces a `MigrationGuide` with steps
|
|
155
|
-
* extracted from migration docs (if a migrations directory is available).
|
|
156
|
-
* Packages without updates or without a resolved latest version are skipped.
|
|
157
|
-
*
|
|
158
|
-
* This function is pure — no side effects beyond reading migration doc files
|
|
159
|
-
* when `migrationsDir` is provided.
|
|
160
|
-
*/
|
|
161
|
-
declare function buildMigrationGuides(packages: readonly PackageVersionInfo[], migrationsDir: string | null): MigrationGuide[];
|
|
162
|
-
/**
|
|
163
|
-
* Run the upgrade command — detect installed versions and query npm for latest.
|
|
164
|
-
*
|
|
165
|
-
* Default flow: scan → classify → prompt → apply.
|
|
166
|
-
* `--dry-run` returns a report without mutation.
|
|
167
|
-
* `--all` includes breaking changes.
|
|
168
|
-
* `--yes` or `--non-interactive` bypasses the prompt.
|
|
169
|
-
*/
|
|
170
|
-
declare function runUpgrade(options: UpgradeOptions): Promise<Result<UpgradeResult, OutfitterError>>;
|
|
171
|
-
/**
|
|
172
|
-
* Format and output upgrade results.
|
|
173
|
-
*/
|
|
174
|
-
declare function printUpgradeResults(result: UpgradeResult, options?: {
|
|
175
|
-
mode?: OutputMode;
|
|
176
|
-
guide?: boolean;
|
|
177
|
-
cwd?: string;
|
|
178
|
-
dryRun?: boolean;
|
|
179
|
-
all?: boolean;
|
|
180
|
-
}): Promise<void>;
|
|
181
|
-
type UpgradeReportStatus = "dry_run" | "no_updates" | "cancelled" | "skipped_non_interactive" | "applied" | "failed";
|
|
182
|
-
/** Snapshot of effective flags for this upgrade run. */
|
|
183
|
-
interface UpgradeReportFlags {
|
|
184
|
-
readonly all: boolean;
|
|
185
|
-
readonly dryRun: boolean;
|
|
186
|
-
readonly interactive: boolean;
|
|
187
|
-
readonly noCodemods: boolean;
|
|
188
|
-
readonly outputMode: OutputMode | null;
|
|
189
|
-
readonly yes: boolean;
|
|
190
|
-
}
|
|
191
|
-
/** Machine-readable upgrade report written to `.outfitter/reports/upgrade.json`. */
|
|
192
|
-
interface UpgradeReport {
|
|
193
|
-
readonly $schema: "https://outfitter.dev/reports/upgrade/v1";
|
|
194
|
-
readonly applied: boolean;
|
|
195
|
-
readonly checkedAt: string;
|
|
196
|
-
readonly codemods?: CodemodSummary;
|
|
197
|
-
readonly conflicts?: readonly VersionConflict[];
|
|
198
|
-
readonly cwd: string;
|
|
199
|
-
readonly error?: {
|
|
200
|
-
readonly message: string;
|
|
201
|
-
readonly category: string;
|
|
202
|
-
readonly context?: Record<string, unknown>;
|
|
203
|
-
};
|
|
204
|
-
readonly excluded: {
|
|
205
|
-
readonly breaking: readonly string[];
|
|
206
|
-
};
|
|
207
|
-
readonly finishedAt: string;
|
|
208
|
-
readonly flags: UpgradeReportFlags;
|
|
209
|
-
readonly packages: readonly PackageVersionInfo[];
|
|
210
|
-
readonly startedAt: string;
|
|
211
|
-
readonly status: UpgradeReportStatus;
|
|
212
|
-
readonly summary: {
|
|
213
|
-
readonly total: number;
|
|
214
|
-
readonly available: number;
|
|
215
|
-
readonly breaking: number;
|
|
216
|
-
readonly applied: number;
|
|
217
|
-
};
|
|
218
|
-
readonly unknownPackages?: readonly string[];
|
|
219
|
-
readonly workspaceRoot: string | null;
|
|
220
|
-
}
|
|
1
|
+
import { CodemodSummary, MigrationGuide, PackageVersionInfo, UpgradeOptions, UpgradeReport, UpgradeReportFlags, UpgradeReportStatus, UpgradeResult, buildMigrationGuides, printUpgradeResults, runUpgrade } from "../shared/outfitter-5j7zee11.js";
|
|
2
|
+
import "../shared/outfitter-109s75x0.js";
|
|
3
|
+
import { MigrationDocWithMetadata, findMigrationDocsDir, readMigrationBreakingFlag, readMigrationDocs, readMigrationDocsWithMetadata } from "../shared/outfitter-56jq0rh2.js";
|
|
4
|
+
import { MigrationChange, MigrationChangeType, MigrationFrontmatter, parseMigrationFrontmatter } from "../shared/outfitter-y37yfehn.js";
|
|
221
5
|
export { runUpgrade, readMigrationDocsWithMetadata, readMigrationDocs, readMigrationBreakingFlag, printUpgradeResults, parseMigrationFrontmatter, findMigrationDocsDir, buildMigrationGuides, UpgradeResult, UpgradeReportStatus, UpgradeReportFlags, UpgradeReport, UpgradeOptions, PackageVersionInfo, MigrationGuide, MigrationFrontmatter, MigrationDocWithMetadata, MigrationChangeType, MigrationChange, CodemodSummary };
|
package/dist/commands/upgrade.js
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
runUpgrade
|
|
4
|
+
} from "../shared/outfitter-fxry5n58.js";
|
|
5
|
+
import"../shared/outfitter-76k25svs.js";
|
|
6
|
+
import {
|
|
7
|
+
buildMigrationGuides
|
|
8
|
+
} from "../shared/outfitter-jwxggvz4.js";
|
|
9
|
+
import {
|
|
10
|
+
printUpgradeResults
|
|
11
|
+
} from "../shared/outfitter-x4cc5xsq.js";
|
|
12
|
+
import"../shared/outfitter-f3a70135.js";
|
|
13
|
+
import"../shared/outfitter-bpr28y54.js";
|
|
14
|
+
import"../shared/outfitter-n13pqaft.js";
|
|
15
|
+
import"../shared/outfitter-x0vpb7tj.js";
|
|
16
|
+
import {
|
|
4
17
|
findMigrationDocsDir,
|
|
5
|
-
parseMigrationFrontmatter,
|
|
6
|
-
printUpgradeResults,
|
|
7
18
|
readMigrationBreakingFlag,
|
|
8
19
|
readMigrationDocs,
|
|
9
|
-
readMigrationDocsWithMetadata
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
readMigrationDocsWithMetadata
|
|
21
|
+
} from "../shared/outfitter-fx1m251y.js";
|
|
22
|
+
import {
|
|
23
|
+
parseMigrationFrontmatter
|
|
24
|
+
} from "../shared/outfitter-s1c0whzj.js";
|
|
25
|
+
import"../shared/outfitter-7q9fnbwa.js";
|
|
14
26
|
import"../shared/outfitter-7r12fj7f.js";
|
|
15
|
-
import"../shared/outfitter-
|
|
27
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
16
28
|
export {
|
|
17
29
|
runUpgrade,
|
|
18
30
|
readMigrationDocsWithMetadata,
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../shared/outfitter-wvbpxqq7.js";
|
|
2
|
-
import { planCreateProject } from "../shared/outfitter-
|
|
3
|
-
import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "../shared/outfitter-
|
|
4
|
-
import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "../shared/outfitter-
|
|
2
|
+
import { planCreateProject } from "../shared/outfitter-zng6w0t9.js";
|
|
3
|
+
import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "../shared/outfitter-wcrp7d7m.js";
|
|
4
|
+
import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "../shared/outfitter-htx4asgr.js";
|
|
5
5
|
export { planCreateProject, getCreatePreset, CreateProjectPlan, CreateProjectInput, CreatePresetId, CreatePresetDefinition, CreatePlanChange, CREATE_PRESET_IDS, CREATE_PRESETS };
|
package/dist/create/index.js
CHANGED
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
planCreateProject
|
|
5
|
-
} from "../shared/outfitter-p71qb0f0.js";
|
|
6
|
-
import"../shared/outfitter-344t1r38.js";
|
|
7
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
8
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
9
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
10
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
11
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
12
|
-
import"../shared/outfitter-j833sxws.js";
|
|
13
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
14
|
-
import"../shared/outfitter-1fy7byz5.js";
|
|
15
|
-
import"../shared/outfitter-4q1zfmvc.js";
|
|
16
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
17
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
18
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
19
|
-
import {
|
|
20
|
-
CREATE_PRESETS,
|
|
21
|
-
CREATE_PRESET_IDS,
|
|
22
|
-
getCreatePreset
|
|
23
|
-
} from "../shared/outfitter-vh4xgb93.js";
|
|
24
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
25
|
-
export {
|
|
26
|
-
planCreateProject,
|
|
27
|
-
getCreatePreset,
|
|
28
|
-
CREATE_PRESET_IDS,
|
|
29
|
-
CREATE_PRESETS
|
|
30
|
-
};
|
|
1
|
+
export { planCreateProject } from "./planner.js";
|
|
2
|
+
export { CREATE_PRESET_IDS, CREATE_PRESETS, getCreatePreset } from "./presets.js";
|
package/dist/create/planner.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { planCreateProject } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { planCreateProject } from "../shared/outfitter-zng6w0t9.js";
|
|
2
|
+
import "../shared/outfitter-htx4asgr.js";
|
|
3
3
|
export { planCreateProject };
|
package/dist/create/planner.js
CHANGED
|
@@ -1,22 +1,85 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../shared/outfitter-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import"../shared/outfitter-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
getCreatePreset
|
|
4
|
+
} from "../shared/outfitter-ekb6t1zz.js";
|
|
5
|
+
import {
|
|
6
|
+
deriveBinName,
|
|
7
|
+
deriveProjectName
|
|
8
|
+
} from "../shared/outfitter-q1g58t85.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
|
|
11
|
+
// apps/outfitter/src/create/planner.ts
|
|
12
|
+
import { Result, ValidationError } from "@outfitter/contracts";
|
|
13
|
+
function derivePackageName(input) {
|
|
14
|
+
return (input.packageName ?? input.name).trim();
|
|
15
|
+
}
|
|
16
|
+
function planCreateProject(input) {
|
|
17
|
+
const packageName = derivePackageName(input);
|
|
18
|
+
if (packageName.length === 0) {
|
|
19
|
+
return Result.err(new ValidationError({
|
|
20
|
+
message: "Project name must not be empty",
|
|
21
|
+
field: "name"
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
const targetDir = input.targetDir.trim();
|
|
25
|
+
if (targetDir.length === 0) {
|
|
26
|
+
return Result.err(new ValidationError({
|
|
27
|
+
message: "Target directory must not be empty",
|
|
28
|
+
field: "targetDir"
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
if (packageName.startsWith("@") && !packageName.includes("/")) {
|
|
32
|
+
return Result.err(new ValidationError({
|
|
33
|
+
message: "Could not derive a project name from package name",
|
|
34
|
+
field: "packageName"
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
const projectName = deriveProjectName(packageName);
|
|
38
|
+
if (projectName.length === 0) {
|
|
39
|
+
return Result.err(new ValidationError({
|
|
40
|
+
message: "Could not derive a project name from package name",
|
|
41
|
+
field: "packageName"
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
const preset = getCreatePreset(input.preset);
|
|
45
|
+
if (!preset) {
|
|
46
|
+
return Result.err(new ValidationError({
|
|
47
|
+
message: `Unknown create preset '${input.preset}'`,
|
|
48
|
+
field: "preset"
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
const includeTooling = input.includeTooling ?? true;
|
|
52
|
+
const defaultBlocks = includeTooling ? [...preset.defaultBlocks] : [];
|
|
53
|
+
const changes = [
|
|
54
|
+
{
|
|
55
|
+
type: "copy-preset",
|
|
56
|
+
preset: preset.presetDir,
|
|
57
|
+
targetDir,
|
|
58
|
+
includeTooling,
|
|
59
|
+
overlayBaseTemplate: true
|
|
60
|
+
},
|
|
61
|
+
{ type: "inject-shared-config" }
|
|
62
|
+
];
|
|
63
|
+
if (input.local) {
|
|
64
|
+
changes.push({ type: "rewrite-local-dependencies", mode: "workspace" });
|
|
65
|
+
}
|
|
66
|
+
if (defaultBlocks.length > 0) {
|
|
67
|
+
changes.push({ type: "add-blocks", blocks: defaultBlocks });
|
|
68
|
+
}
|
|
69
|
+
const plan = {
|
|
70
|
+
preset,
|
|
71
|
+
values: {
|
|
72
|
+
packageName,
|
|
73
|
+
projectName,
|
|
74
|
+
version: input.version?.trim() || "0.1.0",
|
|
75
|
+
description: input.description?.trim() || "A new project created with Outfitter",
|
|
76
|
+
binName: deriveBinName(projectName),
|
|
77
|
+
year: input.year ?? String(new Date().getFullYear())
|
|
78
|
+
},
|
|
79
|
+
changes
|
|
80
|
+
};
|
|
81
|
+
return Result.ok(plan);
|
|
82
|
+
}
|
|
20
83
|
export {
|
|
21
84
|
planCreateProject
|
|
22
85
|
};
|
package/dist/create/presets.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { CREATE_PRESETS, CREATE_PRESET_IDS, getCreatePreset } from "../shared/outfitter-wcrp7d7m.js";
|
|
2
|
+
import "../shared/outfitter-htx4asgr.js";
|
|
3
3
|
export { getCreatePreset, CREATE_PRESET_IDS, CREATE_PRESETS };
|
package/dist/create/presets.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
CREATE_PRESETS,
|
|
4
4
|
CREATE_PRESET_IDS,
|
|
5
5
|
getCreatePreset
|
|
6
|
-
} from "../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
6
|
+
} from "../shared/outfitter-ekb6t1zz.js";
|
|
7
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
8
8
|
export {
|
|
9
9
|
getCreatePreset,
|
|
10
10
|
CREATE_PRESET_IDS,
|
package/dist/create/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "../shared/outfitter-
|
|
1
|
+
import { CreatePlanChange, CreatePresetDefinition, CreatePresetId, CreateProjectInput, CreateProjectPlan } from "../shared/outfitter-htx4asgr.js";
|
|
2
2
|
export { CreateProjectPlan, CreateProjectInput, CreatePresetId, CreatePresetDefinition, CreatePlanChange };
|
package/dist/engine/blocks.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { addBlocks } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { addBlocks } from "../shared/outfitter-954y4mzx.js";
|
|
2
|
+
import "../shared/outfitter-cyvr4r8d.js";
|
|
3
3
|
export { addBlocks };
|
package/dist/engine/blocks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
addBlocks
|
|
4
|
-
} from "../shared/outfitter-
|
|
5
|
-
import"../shared/outfitter-
|
|
6
|
-
import"../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
4
|
+
} from "../shared/outfitter-ydw7x6bh.js";
|
|
5
|
+
import"../shared/outfitter-3tx3adgj.js";
|
|
6
|
+
import"../shared/outfitter-ypcvwg1s.js";
|
|
8
7
|
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
-
import"../shared/outfitter-
|
|
8
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
10
|
export {
|
|
11
11
|
addBlocks
|
|
12
12
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Operation, OperationCollector } from "../shared/outfitter-
|
|
1
|
+
import { Operation, OperationCollector } from "../shared/outfitter-xr6g13nz.js";
|
|
2
2
|
export { OperationCollector, Operation };
|
package/dist/engine/collector.js
CHANGED
package/dist/engine/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { injectSharedConfig, rewriteLocalDependencies } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { injectSharedConfig, rewriteLocalDependencies } from "../shared/outfitter-gdc7b7de.js";
|
|
2
|
+
import "../shared/outfitter-cyvr4r8d.js";
|
|
3
3
|
export { rewriteLocalDependencies, injectSharedConfig };
|
package/dist/engine/config.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
injectSharedConfig,
|
|
4
4
|
rewriteLocalDependencies
|
|
5
|
-
} from "../shared/outfitter-
|
|
6
|
-
import"../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
5
|
+
} from "../shared/outfitter-wrcqq29p.js";
|
|
6
|
+
import"../shared/outfitter-tqznjgbm.js";
|
|
7
|
+
import"../shared/outfitter-x39awx8g.js";
|
|
8
8
|
import"../shared/outfitter-1fy7byz5.js";
|
|
9
9
|
import"../shared/outfitter-4q1zfmvc.js";
|
|
10
10
|
import"../shared/outfitter-8y2dfx6n.js";
|
|
11
|
-
import"../shared/outfitter-
|
|
11
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
12
12
|
export {
|
|
13
13
|
rewriteLocalDependencies,
|
|
14
14
|
injectSharedConfig
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
interface
|
|
2
|
-
readonly externalDependencies: Record<string, string>;
|
|
3
|
-
readonly internalDependencies: Record<string, string>;
|
|
4
|
-
}
|
|
5
|
-
interface ResolvedTemplateDependencyVersions {
|
|
1
|
+
interface ResolvedPresetDependencyVersions {
|
|
6
2
|
readonly external: Record<string, string>;
|
|
7
3
|
readonly internal: Record<string, string>;
|
|
8
4
|
}
|
|
9
5
|
declare function clearResolvedVersionsCache(): void;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Resolve dependency versions for scaffold presets.
|
|
8
|
+
*
|
|
9
|
+
* External deps (zod, commander, etc.) come from `@outfitter/presets` which
|
|
10
|
+
* has concrete versions (catalog: resolved at publish time).
|
|
11
|
+
*
|
|
12
|
+
* Internal deps (`@outfitter/*`) come from workspace package scanning (monorepo)
|
|
13
|
+
* or from the outfitter CLI's own package.json deps (when published).
|
|
14
|
+
*/
|
|
15
|
+
declare function resolvePresetDependencyVersions(): ResolvedPresetDependencyVersions;
|
|
16
|
+
declare function applyResolvedDependencyVersions(parsedPackageJson: Record<string, unknown>, versions: ResolvedPresetDependencyVersions): void;
|
|
17
|
+
export { resolvePresetDependencyVersions, clearResolvedVersionsCache, applyResolvedDependencyVersions, ResolvedPresetDependencyVersions };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
applyResolvedDependencyVersions,
|
|
4
4
|
clearResolvedVersionsCache,
|
|
5
|
-
|
|
6
|
-
} from "../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
5
|
+
resolvePresetDependencyVersions
|
|
6
|
+
} from "../shared/outfitter-x39awx8g.js";
|
|
7
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
resolvePresetDependencyVersions,
|
|
10
10
|
clearResolvedVersionsCache,
|
|
11
11
|
applyResolvedDependencyVersions
|
|
12
12
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { executePlan } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { executePlan } from "../shared/outfitter-8kmak0wc.js";
|
|
2
|
+
import "../shared/outfitter-cyvr4r8d.js";
|
|
3
3
|
export { executePlan };
|