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,3 @@
|
|
|
1
|
+
import { DocsSearchInput, DocsSearchMatch, DocsSearchOutput, printDocsSearchResults, runDocsSearch } from "../shared/outfitter-nxvjxrmw.js";
|
|
2
|
+
import "../shared/outfitter-a79xrm12.js";
|
|
3
|
+
export { runDocsSearch, printDocsSearchResults, DocsSearchOutput, DocsSearchMatch, DocsSearchInput };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printDocsSearchResults,
|
|
4
|
+
runDocsSearch
|
|
5
|
+
} from "../shared/outfitter-hf5bj2gq.js";
|
|
6
|
+
import"../shared/outfitter-5vx1bp7h.js";
|
|
7
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runDocsSearch,
|
|
12
|
+
printDocsSearchResults
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printDocsShowResults,
|
|
4
|
+
runDocsShow
|
|
5
|
+
} from "../shared/outfitter-c7sbs7es.js";
|
|
6
|
+
import"../shared/outfitter-5vx1bp7h.js";
|
|
7
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runDocsShow,
|
|
12
|
+
printDocsShowResults
|
|
13
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared type definitions for docs commands.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Local shape matching DocsMapEntry from "@outfitter/docs".
|
|
8
|
+
*
|
|
9
|
+
* Defined separately because the dist types use z.infer which tsc
|
|
10
|
+
* cannot fully resolve through the bundled declarations.
|
|
11
|
+
*/
|
|
12
|
+
interface DocsMapEntryShape {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly kind: string;
|
|
15
|
+
readonly outputPath: string;
|
|
16
|
+
readonly package?: string;
|
|
17
|
+
readonly sourcePath: string;
|
|
18
|
+
readonly tags: string[];
|
|
19
|
+
readonly title: string;
|
|
20
|
+
}
|
|
21
|
+
export { DocsMapEntryShape };
|
package/dist/commands/doctor.js
CHANGED
|
@@ -3,21 +3,13 @@ import {
|
|
|
3
3
|
doctorCommand,
|
|
4
4
|
printDoctorResults,
|
|
5
5
|
runDoctor
|
|
6
|
-
} from "../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
8
|
-
import"../shared/outfitter-
|
|
9
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
10
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
11
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
12
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
13
|
-
import"../shared/outfitter-j833sxws.js";
|
|
14
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
6
|
+
} from "../shared/outfitter-px5sv5gn.js";
|
|
7
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
15
9
|
import"../shared/outfitter-1fy7byz5.js";
|
|
16
10
|
import"../shared/outfitter-4q1zfmvc.js";
|
|
17
11
|
import"../shared/outfitter-8y2dfx6n.js";
|
|
18
|
-
import"../shared/outfitter-
|
|
19
|
-
import"../shared/outfitter-7r12fj7f.js";
|
|
20
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
12
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
21
13
|
export {
|
|
22
14
|
runDoctor,
|
|
23
15
|
printDoctorResults,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InitExecutionOptions, InitExecutionResult, InitStructure, ResolvedInitExecutionInput, executeInitPipeline } from "../shared/outfitter-r2awqszh.js";
|
|
2
|
+
import "../shared/outfitter-5d9wbzhh.js";
|
|
3
|
+
import "../shared/outfitter-y784nh31.js";
|
|
4
|
+
import "../shared/outfitter-5r6q2749.js";
|
|
5
|
+
import "../shared/outfitter-58rn1sj1.js";
|
|
6
|
+
import "../shared/outfitter-hcexcvxe.js";
|
|
7
|
+
import "../shared/outfitter-xr6g13nz.js";
|
|
8
|
+
export { executeInitPipeline, ResolvedInitExecutionInput, InitStructure, InitExecutionResult, InitExecutionOptions };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
executeInitPipeline
|
|
4
|
+
} from "../shared/outfitter-tavatb5p.js";
|
|
5
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
6
|
+
import"../shared/outfitter-4s9meh3j.js";
|
|
7
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
executeInitPipeline
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InitPresetId, isBinaryPreset, isValidInitPreset, parseBlocks, resolvePresetFromFlags } from "../shared/outfitter-5d9wbzhh.js";
|
|
2
|
+
import "../shared/outfitter-y784nh31.js";
|
|
3
|
+
import "../shared/outfitter-5r6q2749.js";
|
|
4
|
+
import "../shared/outfitter-58rn1sj1.js";
|
|
5
|
+
export { resolvePresetFromFlags, parseBlocks, isValidInitPreset, isBinaryPreset, InitPresetId };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
isBinaryPreset,
|
|
4
|
+
isValidInitPreset,
|
|
5
|
+
parseBlocks,
|
|
6
|
+
resolvePresetFromFlags
|
|
7
|
+
} from "../shared/outfitter-2z61gp5w.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
resolvePresetFromFlags,
|
|
11
|
+
parseBlocks,
|
|
12
|
+
isValidInitPreset,
|
|
13
|
+
isBinaryPreset
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrintInitResultsOptions, printInitResults } from "../shared/outfitter-d0kqashd.js";
|
|
2
|
+
import "../shared/outfitter-r2awqszh.js";
|
|
3
|
+
import "../shared/outfitter-5d9wbzhh.js";
|
|
4
|
+
import "../shared/outfitter-y784nh31.js";
|
|
5
|
+
import "../shared/outfitter-5r6q2749.js";
|
|
6
|
+
import "../shared/outfitter-58rn1sj1.js";
|
|
7
|
+
import "../shared/outfitter-hcexcvxe.js";
|
|
8
|
+
import "../shared/outfitter-xr6g13nz.js";
|
|
9
|
+
export { printInitResults, PrintInitResultsOptions };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printInitResults
|
|
4
|
+
} from "../shared/outfitter-n0ed012k.js";
|
|
5
|
+
import"../shared/outfitter-ttjr95y9.js";
|
|
6
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
7
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
printInitResults
|
|
11
|
+
};
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { InitError, InitOptions,
|
|
2
|
-
import "../shared/outfitter-
|
|
1
|
+
import { InitError, InitOptions, InitResult, initCommand, printInitResults, runInit } from "../shared/outfitter-d0kqashd.js";
|
|
2
|
+
import { InitStructure } from "../shared/outfitter-r2awqszh.js";
|
|
3
|
+
import { InitPresetId } from "../shared/outfitter-5d9wbzhh.js";
|
|
3
4
|
import "../shared/outfitter-y784nh31.js";
|
|
4
|
-
import "../shared/outfitter-
|
|
5
|
-
import "../shared/outfitter-
|
|
6
|
-
import "../shared/outfitter-
|
|
5
|
+
import "../shared/outfitter-5r6q2749.js";
|
|
6
|
+
import "../shared/outfitter-58rn1sj1.js";
|
|
7
|
+
import "../shared/outfitter-hcexcvxe.js";
|
|
8
|
+
import "../shared/outfitter-xr6g13nz.js";
|
|
7
9
|
export { runInit, printInitResults, initCommand, InitStructure, InitResult, InitPresetId, InitOptions, InitError };
|
package/dist/commands/init.js
CHANGED
|
@@ -2,28 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
InitError,
|
|
4
4
|
initCommand,
|
|
5
|
-
printInitResults,
|
|
6
5
|
runInit
|
|
7
|
-
} from "../shared/outfitter-
|
|
6
|
+
} from "../shared/outfitter-6mpkh3zn.js";
|
|
7
|
+
import {
|
|
8
|
+
printInitResults
|
|
9
|
+
} from "../shared/outfitter-n0ed012k.js";
|
|
10
|
+
import"../shared/outfitter-2z61gp5w.js";
|
|
11
|
+
import"../shared/outfitter-tavatb5p.js";
|
|
12
|
+
import"../shared/outfitter-g3hvjshg.js";
|
|
13
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
8
14
|
import"../shared/outfitter-4s9meh3j.js";
|
|
9
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
10
|
-
import"../shared/outfitter-xe5mzgdc.js";
|
|
11
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
12
15
|
import"../shared/outfitter-ttjr95y9.js";
|
|
13
|
-
import"../shared/outfitter-344t1r38.js";
|
|
14
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
15
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
16
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
17
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
18
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
19
|
-
import"../shared/outfitter-j833sxws.js";
|
|
20
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
21
|
-
import"../shared/outfitter-1fy7byz5.js";
|
|
22
|
-
import"../shared/outfitter-4q1zfmvc.js";
|
|
23
|
-
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-mtbpabf3.js";
|
|
25
16
|
import"../shared/outfitter-7r12fj7f.js";
|
|
26
|
-
import"../shared/outfitter-
|
|
17
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
18
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
27
19
|
export {
|
|
28
20
|
runInit,
|
|
29
21
|
printInitResults,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared jq filtering utility for CLI commands.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Apply a jq expression to JSON data using the system `jq` binary.
|
|
8
|
+
*
|
|
9
|
+
* @param data - Data to filter
|
|
10
|
+
* @param expr - jq expression
|
|
11
|
+
* @param options - jq output controls
|
|
12
|
+
* @returns Filtered output string, or the original JSON if jq fails
|
|
13
|
+
*/
|
|
14
|
+
declare function applyJq(data: unknown, expr: string, options?: {
|
|
15
|
+
compact?: boolean;
|
|
16
|
+
}): Promise<string>;
|
|
17
|
+
export { applyJq };
|
package/dist/commands/repo.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CreateRepoCommandOptions, RepoCheckSubject, RepoCommandIo, RepoToolingInvocation, createRepoCommand } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
3
|
-
export { createRepoCommand, RepoToolingInvocation, RepoCommandIo, RepoCheckSubject, CreateRepoCommandOptions };
|
|
1
|
+
import { CreateRepoCommandOptions, DOCS_COMMON_OPTION_FLAGS, DOCS_EXPORT_OPTION_FLAGS, RepoCheckSubject, RepoCommandIo, RepoToolingInvocation, createRepoCommand } from "../shared/outfitter-3dq4r10s.js";
|
|
2
|
+
import "../shared/outfitter-1tfa9hke.js";
|
|
3
|
+
export { createRepoCommand, RepoToolingInvocation, RepoCommandIo, RepoCheckSubject, DOCS_EXPORT_OPTION_FLAGS, DOCS_COMMON_OPTION_FLAGS, CreateRepoCommandOptions };
|
package/dist/commands/repo.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
DOCS_COMMON_OPTION_FLAGS,
|
|
4
|
+
DOCS_EXPORT_OPTION_FLAGS,
|
|
3
5
|
createRepoCommand
|
|
4
|
-
} from "../shared/outfitter-
|
|
5
|
-
import"../shared/outfitter-
|
|
6
|
-
import"../shared/outfitter-
|
|
6
|
+
} from "../shared/outfitter-e84cr97g.js";
|
|
7
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
7
9
|
export {
|
|
8
|
-
createRepoCommand
|
|
10
|
+
createRepoCommand,
|
|
11
|
+
DOCS_EXPORT_OPTION_FLAGS,
|
|
12
|
+
DOCS_COMMON_OPTION_FLAGS
|
|
9
13
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printScaffoldResults
|
|
4
|
+
} from "../shared/outfitter-qsrx7m4w.js";
|
|
5
|
+
import"../shared/outfitter-ttjr95y9.js";
|
|
6
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
7
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
printScaffoldResults
|
|
11
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "../shared/outfitter-p8t646r8.js";
|
|
2
|
+
import "../shared/outfitter-954y4mzx.js";
|
|
3
|
+
import "../shared/outfitter-y6ee0k45.js";
|
|
4
|
+
import "../shared/outfitter-m3ehh37q.js";
|
|
5
|
+
import "../shared/outfitter-fbvfd5zq.js";
|
|
6
|
+
import "../shared/outfitter-6rtcemk7.js";
|
|
7
|
+
import "../shared/outfitter-8kmak0wc.js";
|
|
8
|
+
import "../shared/outfitter-y784nh31.js";
|
|
9
|
+
import "../shared/outfitter-5r6q2749.js";
|
|
10
|
+
import { TargetDefinition } from "../shared/outfitter-58rn1sj1.js";
|
|
11
|
+
import "../shared/outfitter-gdc7b7de.js";
|
|
12
|
+
import { ScaffoldPlan } from "../shared/outfitter-cyvr4r8d.js";
|
|
13
|
+
import { OperationCollector } from "../shared/outfitter-xr6g13nz.js";
|
|
14
|
+
import { Result } from "@outfitter/contracts";
|
|
15
|
+
/** Discriminated union describing the detected project layout at a given directory. */
|
|
16
|
+
type ProjectStructure = {
|
|
17
|
+
readonly kind: "workspace";
|
|
18
|
+
readonly rootDir: string;
|
|
19
|
+
readonly workspacePatterns: readonly string[];
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: "single-package";
|
|
22
|
+
readonly rootDir: string;
|
|
23
|
+
readonly packageJson: Record<string, unknown>;
|
|
24
|
+
} | {
|
|
25
|
+
readonly kind: "none";
|
|
26
|
+
readonly rootDir: string;
|
|
27
|
+
};
|
|
28
|
+
interface ScaffoldPlanningOptions {
|
|
29
|
+
readonly local?: boolean | undefined;
|
|
30
|
+
readonly noTooling?: boolean | undefined;
|
|
31
|
+
readonly with?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Detects whether the given directory is a workspace root, a single package,
|
|
35
|
+
* or has no package.json at all. Walks up to find workspace roots when needed.
|
|
36
|
+
*/
|
|
37
|
+
declare function detectProjectStructure(cwd: string): Result<ProjectStructure, string>;
|
|
38
|
+
/**
|
|
39
|
+
* Ensures the workspace root package.json includes the given placement pattern (e.g. "apps/*").
|
|
40
|
+
* @returns `true` if the pattern was added, `false` if it already existed.
|
|
41
|
+
*/
|
|
42
|
+
declare function ensureWorkspacePattern(rootDir: string, placement: "apps" | "packages", dryRun: boolean, collector?: OperationCollector): Result<boolean, string>;
|
|
43
|
+
/**
|
|
44
|
+
* Converts a single-package directory into a workspace by moving existing files
|
|
45
|
+
* into the appropriate `apps/` or `packages/` subdirectory and creating a workspace root.
|
|
46
|
+
* Rolls back on failure.
|
|
47
|
+
*/
|
|
48
|
+
declare function convertToWorkspace(rootDir: string, existingPkg: Record<string, unknown>, dryRun: boolean, collector?: OperationCollector): Result<{
|
|
49
|
+
movedExisting: {
|
|
50
|
+
from: string;
|
|
51
|
+
to: string;
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
}, string>;
|
|
55
|
+
/**
|
|
56
|
+
* Builds a scaffold plan for a target within a workspace, including preset
|
|
57
|
+
* copying, shared config injection, and optional tooling blocks.
|
|
58
|
+
*/
|
|
59
|
+
declare function buildScaffoldPlan(target: TargetDefinition, rootDir: string, targetName: string, options: ScaffoldPlanningOptions): ScaffoldPlan;
|
|
60
|
+
/**
|
|
61
|
+
* Validates that a scaffold target name is safe as both a directory name and an npm package name.
|
|
62
|
+
* Suggests a sanitized alternative when the name is invalid.
|
|
63
|
+
*/
|
|
64
|
+
declare function validateScaffoldTargetName(targetName: string): Result<void, string>;
|
|
65
|
+
export { validateScaffoldTargetName, ensureWorkspacePattern, detectProjectStructure, convertToWorkspace, buildScaffoldPlan, ProjectStructure };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
buildScaffoldPlan,
|
|
4
|
+
convertToWorkspace,
|
|
5
|
+
detectProjectStructure,
|
|
6
|
+
ensureWorkspacePattern,
|
|
7
|
+
validateScaffoldTargetName
|
|
8
|
+
} from "../shared/outfitter-qsd5638j.js";
|
|
9
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
10
|
+
import"../shared/outfitter-1fy7byz5.js";
|
|
11
|
+
import"../shared/outfitter-4q1zfmvc.js";
|
|
12
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
13
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
14
|
+
export {
|
|
15
|
+
validateScaffoldTargetName,
|
|
16
|
+
ensureWorkspacePattern,
|
|
17
|
+
detectProjectStructure,
|
|
18
|
+
convertToWorkspace,
|
|
19
|
+
buildScaffoldPlan
|
|
20
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScaffoldCommandError, ScaffoldCommandResult, ScaffoldOptions, printScaffoldResults, runScaffold, scaffoldCommand } from "../shared/outfitter-
|
|
2
|
-
import "../shared/outfitter-
|
|
3
|
-
import "../shared/outfitter-
|
|
1
|
+
import { ScaffoldCommandError, ScaffoldCommandResult, ScaffoldOptions, printScaffoldResults, runScaffold, scaffoldCommand } from "../shared/outfitter-34vg353f.js";
|
|
2
|
+
import "../shared/outfitter-hcexcvxe.js";
|
|
3
|
+
import "../shared/outfitter-xr6g13nz.js";
|
|
4
4
|
export { scaffoldCommand, runScaffold, printScaffoldResults, ScaffoldOptions, ScaffoldCommandResult, ScaffoldCommandError };
|
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ScaffoldCommandError,
|
|
4
|
-
printScaffoldResults,
|
|
5
4
|
runScaffold,
|
|
6
5
|
scaffoldCommand
|
|
7
|
-
} from "../shared/outfitter-
|
|
6
|
+
} from "../shared/outfitter-6ddf91vh.js";
|
|
7
|
+
import"../shared/outfitter-qsd5638j.js";
|
|
8
|
+
import"../shared/outfitter-g3hvjshg.js";
|
|
9
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
10
|
+
import {
|
|
11
|
+
printScaffoldResults
|
|
12
|
+
} from "../shared/outfitter-qsrx7m4w.js";
|
|
8
13
|
import"../shared/outfitter-4s9meh3j.js";
|
|
9
|
-
import"../shared/outfitter-ehp18x1n.js";
|
|
10
|
-
import"../shared/outfitter-xe5mzgdc.js";
|
|
11
|
-
import"../shared/outfitter-1h7k8xxt.js";
|
|
12
14
|
import"../shared/outfitter-ttjr95y9.js";
|
|
13
|
-
import"../shared/outfitter-
|
|
14
|
-
import"../shared/outfitter-5akzvppx.js";
|
|
15
|
-
import"../shared/outfitter-ha89qf8q.js";
|
|
16
|
-
import"../shared/outfitter-20f6a2n4.js";
|
|
17
|
-
import"../shared/outfitter-m44n0qzw.js";
|
|
18
|
-
import"../shared/outfitter-9x1brcmq.js";
|
|
19
|
-
import"../shared/outfitter-j833sxws.js";
|
|
20
|
-
import"../shared/outfitter-79vfxt6y.js";
|
|
15
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
21
16
|
import"../shared/outfitter-1fy7byz5.js";
|
|
22
17
|
import"../shared/outfitter-4q1zfmvc.js";
|
|
23
18
|
import"../shared/outfitter-8y2dfx6n.js";
|
|
24
|
-
import"../shared/outfitter-
|
|
25
|
-
import"../shared/outfitter-
|
|
26
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
19
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
20
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
27
21
|
export {
|
|
28
22
|
scaffoldCommand,
|
|
29
23
|
runScaffold,
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Shared devDependencies injected into all scaffolded projects.
|
|
3
3
|
* Template-specific devDependencies take precedence over these defaults.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Versions are resolved from @outfitter/presets (catalog-resolved at publish time).
|
|
6
|
+
* Internal @outfitter/* versions come from workspace scanning.
|
|
6
7
|
*/
|
|
7
8
|
declare const SHARED_DEV_DEPS: Readonly<Record<string, string>>;
|
|
8
9
|
/**
|
|
@@ -13,9 +14,9 @@ declare const SHARED_SCRIPTS: {
|
|
|
13
14
|
readonly check: "ultracite check";
|
|
14
15
|
readonly "clean:artifacts": "rm -rf dist .turbo";
|
|
15
16
|
readonly "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test";
|
|
16
|
-
readonly lint: "
|
|
17
|
-
readonly "lint:fix": "
|
|
18
|
-
readonly format: "
|
|
17
|
+
readonly lint: "oxlint .";
|
|
18
|
+
readonly "lint:fix": "oxlint --fix .";
|
|
19
|
+
readonly format: "oxfmt --write .";
|
|
19
20
|
readonly typecheck: "tsc --noEmit";
|
|
20
21
|
};
|
|
21
22
|
export { SHARED_SCRIPTS, SHARED_DEV_DEPS };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SHARED_DEV_DEPS,
|
|
4
4
|
SHARED_SCRIPTS
|
|
5
|
-
} from "../shared/outfitter-
|
|
6
|
-
import"../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
5
|
+
} from "../shared/outfitter-tqznjgbm.js";
|
|
6
|
+
import"../shared/outfitter-x39awx8g.js";
|
|
7
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
8
8
|
export {
|
|
9
9
|
SHARED_SCRIPTS,
|
|
10
10
|
SHARED_DEV_DEPS
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OutfitterError } from "@outfitter/contracts";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
interface UpgradeApplyInput {
|
|
4
|
+
readonly latestVersion: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Apply non-breaking updates to package.json and run `bun install`.
|
|
9
|
+
*
|
|
10
|
+
* Reads the package.json, updates version ranges for the specified packages
|
|
11
|
+
* (preserving the existing range prefix), writes it back, and runs install.
|
|
12
|
+
*/
|
|
13
|
+
declare function applyUpdates(cwd: string, updates: readonly UpgradeApplyInput[]): Promise<Result<void, OutfitterError>>;
|
|
14
|
+
export { applyUpdates };
|
|
@@ -37,6 +37,11 @@ declare function findCodemodsDir(cwd: string, binaryDir?: string): string | null
|
|
|
37
37
|
declare function discoverCodemods(migrationsDir: string, codemodsDir: string, shortName: string, fromVersion: string, toVersion: string): DiscoveredCodemod[];
|
|
38
38
|
/**
|
|
39
39
|
* Run a single codemod by importing and executing its `transform` function.
|
|
40
|
+
*
|
|
41
|
+
* @param codemodPath - Absolute path to the codemod module
|
|
42
|
+
* @param targetDir - Root directory the codemod should operate on
|
|
43
|
+
* @param dryRun - When `true`, the codemod previews changes without writing
|
|
44
|
+
* @returns Codemod result with changed/skipped files, or an error
|
|
40
45
|
*/
|
|
41
46
|
declare function runCodemod(codemodPath: string, targetDir: string, dryRun: boolean): Promise<Result<CodemodResult, OutfitterError>>;
|
|
42
47
|
export { runCodemod, findCodemodsDir, discoverCodemods, DiscoveredCodemod, CodemodResult, CodemodOptions };
|
|
@@ -3,11 +3,10 @@ import {
|
|
|
3
3
|
discoverCodemods,
|
|
4
4
|
findCodemodsDir,
|
|
5
5
|
runCodemod
|
|
6
|
-
} from "../shared/outfitter-
|
|
7
|
-
import"../shared/outfitter-
|
|
8
|
-
import"../shared/outfitter-
|
|
9
|
-
import"../shared/outfitter-
|
|
10
|
-
import"../shared/outfitter-mdt37hqm.js";
|
|
6
|
+
} from "../shared/outfitter-x0vpb7tj.js";
|
|
7
|
+
import"../shared/outfitter-fx1m251y.js";
|
|
8
|
+
import"../shared/outfitter-s1c0whzj.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
11
10
|
export {
|
|
12
11
|
runCodemod,
|
|
13
12
|
findCodemodsDir,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query npm registry for the latest version of a package.
|
|
3
|
+
*
|
|
4
|
+
* @param name - Full npm package name (e.g. "@outfitter/cli")
|
|
5
|
+
* @returns Trimmed version string, or `null` if the lookup fails or returns empty
|
|
6
|
+
*/
|
|
7
|
+
declare function getLatestVersion(name: string): Promise<string | null>;
|
|
8
|
+
export { getLatestVersion };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MigrationDocWithMetadata, findMigrationDocsDir, readMigrationBreakingFlag, readMigrationDocs, readMigrationDocsWithMetadata } from "../shared/outfitter-56jq0rh2.js";
|
|
2
|
+
import "../shared/outfitter-y37yfehn.js";
|
|
3
|
+
export { readMigrationDocsWithMetadata, readMigrationDocs, readMigrationBreakingFlag, findMigrationDocsDir, MigrationDocWithMetadata };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
findMigrationDocsDir,
|
|
4
|
+
readMigrationBreakingFlag,
|
|
5
|
+
readMigrationDocs,
|
|
6
|
+
readMigrationDocsWithMetadata
|
|
7
|
+
} from "../shared/outfitter-fx1m251y.js";
|
|
8
|
+
import"../shared/outfitter-s1c0whzj.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
readMigrationDocsWithMetadata,
|
|
12
|
+
readMigrationDocs,
|
|
13
|
+
readMigrationBreakingFlag,
|
|
14
|
+
findMigrationDocsDir
|
|
15
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { MigrationChange, MigrationChangeType, MigrationFrontmatter, parseMigrationFrontmatter, stripMigrationFrontmatter } from "../shared/outfitter-y37yfehn.js";
|
|
2
|
+
export { stripMigrationFrontmatter, parseMigrationFrontmatter, MigrationFrontmatter, MigrationChangeType, MigrationChange };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PrintUpgradeResultsOptions, printUpgradeResults } 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 { printUpgradeResults, PrintUpgradeResultsOptions };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printUpgradeResults
|
|
4
|
+
} from "../shared/outfitter-x4cc5xsq.js";
|
|
5
|
+
import"../shared/outfitter-fx1m251y.js";
|
|
6
|
+
import"../shared/outfitter-s1c0whzj.js";
|
|
7
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
printUpgradeResults
|
|
11
|
+
};
|