outfitter 0.3.2 → 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 +33 -5
- 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 +2 -0
- package/dist/actions.js +66 -0
- package/dist/cli.js +66 -4
- package/dist/commands/add.d.ts +54 -0
- package/dist/commands/add.js +16 -0
- 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 +3 -0
- package/dist/commands/check-tsdoc.js +9 -0
- package/dist/commands/check.d.ts +93 -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-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 -0
- package/dist/commands/docs-module-loader.js +8 -0
- 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/docs-types.js +1 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +17 -0
- 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 +9 -0
- package/dist/commands/init.js +24 -0
- package/dist/commands/jq-utils.d.ts +17 -0
- package/dist/commands/jq-utils.js +8 -0
- package/dist/commands/repo.d.ts +3 -0
- package/dist/commands/repo.js +13 -0
- 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 +4 -0
- package/dist/commands/scaffold.js +26 -0
- package/dist/commands/shared-deps.d.ts +22 -0
- package/dist/commands/shared-deps.js +11 -0
- package/dist/commands/upgrade-apply.d.ts +14 -0
- package/dist/commands/upgrade-apply.js +8 -0
- package/dist/commands/upgrade-codemods.d.ts +47 -0
- package/dist/commands/upgrade-codemods.js +14 -0
- 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.d.ts +58 -0
- package/dist/commands/upgrade-planner.js +8 -0
- package/dist/commands/upgrade-report.d.ts +5 -0
- package/dist/commands/upgrade-report.js +8 -0
- package/dist/commands/upgrade-workspace.d.ts +2 -0
- package/dist/commands/upgrade-workspace.js +16 -0
- package/dist/commands/upgrade.d.ts +5 -0
- package/dist/commands/upgrade.js +37 -0
- package/dist/create/index.d.ts +5 -0
- package/dist/create/index.js +2 -0
- package/dist/create/planner.d.ts +3 -0
- package/dist/create/planner.js +85 -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 +15 -0
- package/dist/engine/dependency-versions.d.ts +17 -0
- package/dist/engine/dependency-versions.js +12 -0
- package/dist/engine/executor.d.ts +3 -0
- package/dist/engine/executor.js +156 -0
- package/dist/engine/index.d.ts +10 -0
- package/dist/engine/index.js +54 -0
- package/dist/engine/names.d.ts +2 -0
- package/dist/engine/names.js +24 -0
- package/dist/engine/post-scaffold.d.ts +3 -0
- package/dist/engine/post-scaffold.js +8 -0
- package/dist/engine/preset.d.ts +3 -0
- package/dist/engine/preset.js +17 -0
- package/dist/engine/render-plan.d.ts +7 -0
- package/dist/engine/render-plan.js +9 -0
- package/dist/engine/template.d.ts +4 -0
- package/dist/engine/template.js +34 -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 +20 -0
- package/dist/index.d.ts +17 -397
- package/dist/index.js +7 -165
- 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/outfitter-109s75x0.d.ts +76 -0
- package/dist/shared/outfitter-1fy7byz5.js +170 -0
- package/dist/shared/outfitter-1h7k8xxt.js +29 -0
- package/dist/shared/outfitter-1tfa9hke.d.ts +55 -0
- package/dist/shared/outfitter-2nx0k4b3.d.ts +4 -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-3dq4r10s.d.ts +24 -0
- package/dist/shared/outfitter-3rcrvva8.js +103 -0
- package/dist/shared/outfitter-3tx3adgj.js +278 -0
- package/dist/shared/outfitter-4q1zfmvc.js +154 -0
- package/dist/shared/outfitter-4s9meh3j.js +221 -0
- package/dist/shared/outfitter-507ra35w.js +285 -0
- package/dist/shared/outfitter-56jq0rh2.d.ts +42 -0
- package/dist/shared/outfitter-58rn1sj1.d.ts +30 -0
- package/dist/shared/outfitter-5d9wbzhh.d.ts +19 -0
- package/dist/shared/outfitter-5j7zee11.d.ts +180 -0
- package/dist/shared/outfitter-5r6q2749.d.ts +18 -0
- package/dist/shared/outfitter-5vx1bp7h.js +41 -0
- package/dist/shared/outfitter-6ddf91vh.js +190 -0
- package/dist/shared/outfitter-6mpkh3zn.js +432 -0
- package/dist/shared/outfitter-6rtcemk7.d.ts +18 -0
- package/dist/shared/outfitter-6t7xeyg1.js +159 -0
- package/dist/shared/outfitter-738z4c37.js +262 -0
- package/dist/shared/outfitter-76k25svs.js +322 -0
- package/dist/shared/outfitter-7n7vsz95.js +101 -0
- package/dist/shared/outfitter-7q9fnbwa.js +60 -0
- package/dist/shared/outfitter-7r12fj7f.js +30 -0
- package/dist/shared/outfitter-84chvazx.js +480 -0
- package/dist/shared/outfitter-8ggmja91.js +301 -0
- package/dist/shared/outfitter-8kmak0wc.d.ts +4 -0
- package/dist/shared/outfitter-8y2dfx6n.js +11 -0
- package/dist/shared/outfitter-940h0x7b.js +71 -0
- package/dist/shared/outfitter-954y4mzx.d.ts +5 -0
- package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
- package/dist/shared/outfitter-b9cpnr7e.js +110 -0
- package/dist/shared/outfitter-bpr28y54.js +70 -0
- package/dist/shared/outfitter-c7sbs7es.js +92 -0
- package/dist/shared/outfitter-cyhzstz0.js +93 -0
- package/dist/shared/outfitter-cyvr4r8d.d.ts +67 -0
- package/dist/shared/outfitter-d0kqashd.d.ts +98 -0
- package/dist/shared/outfitter-dx4hn4ta.js +325 -0
- package/dist/shared/outfitter-e84cr97g.js +232 -0
- package/dist/shared/outfitter-ec83h4v2.js +17 -0
- package/dist/shared/outfitter-eepj7rf7.js +4 -0
- package/dist/shared/outfitter-ekb6t1zz.js +35 -0
- 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-gdc7b7de.d.ts +5 -0
- package/dist/shared/outfitter-gyayfx5r.js +156 -0
- package/dist/shared/outfitter-h0wmtxw8.d.ts +23 -0
- package/dist/shared/outfitter-hcexcvxe.d.ts +25 -0
- package/dist/shared/outfitter-hf5bj2gq.js +117 -0
- package/dist/shared/outfitter-hsp8vy5m.d.ts +146 -0
- package/dist/shared/outfitter-htx4asgr.d.ts +52 -0
- 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-ksyvwmb5.js +191 -0
- package/dist/shared/outfitter-m3ehh37q.d.ts +22 -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-px5sv5gn.js +321 -0
- package/dist/shared/outfitter-q1g58t85.js +8 -0
- package/dist/shared/outfitter-qsd5638j.js +378 -0
- 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-ssrtakh3.js +342 -0
- package/dist/shared/outfitter-ssynegbs.js +167 -0
- package/dist/shared/outfitter-svts4wk2.js +36 -0
- package/dist/shared/outfitter-tavatb5p.js +166 -0
- package/dist/shared/outfitter-tqznjgbm.js +44 -0
- package/dist/shared/outfitter-ttjr95y9.js +98 -0
- package/dist/shared/outfitter-wcrp7d7m.d.ts +5 -0
- package/dist/shared/outfitter-wkt0a0ra.js +67 -0
- package/dist/shared/outfitter-wrcqq29p.js +132 -0
- package/dist/shared/outfitter-wyg1tpp5.d.ts +43 -0
- package/dist/shared/outfitter-x0vpb7tj.js +126 -0
- package/dist/shared/outfitter-x39awx8g.js +146 -0
- package/dist/shared/outfitter-x4cc5xsq.js +168 -0
- package/dist/shared/outfitter-x8w5sjnd.d.ts +39 -0
- package/dist/shared/outfitter-xr6g13nz.d.ts +50 -0
- package/dist/shared/outfitter-xs94pkfe.js +106 -0
- package/dist/shared/outfitter-y37yfehn.d.ts +37 -0
- package/dist/shared/outfitter-y6ee0k45.d.ts +18 -0
- package/dist/shared/outfitter-ydw7x6bh.js +61 -0
- package/dist/shared/outfitter-yhb23pjc.js +89 -0
- package/dist/shared/outfitter-ypcvwg1s.js +91 -0
- package/dist/shared/outfitter-znbqe5zy.d.ts +45 -0
- package/dist/shared/outfitter-zng6w0t9.d.ts +4 -0
- package/dist/targets/index.d.ts +4 -0
- package/dist/targets/index.js +28 -0
- package/dist/targets/registry.d.ts +3 -0
- package/dist/targets/registry.js +221 -0
- package/dist/targets/types.d.ts +2 -0
- package/dist/targets/types.js +1 -0
- package/package.json +194 -35
- package/dist/shared/chunk-3pwh8ys4.js +0 -6461
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CheckError,
|
|
4
|
+
printCheckResults,
|
|
5
|
+
runCheck
|
|
6
|
+
} from "../shared/outfitter-ssrtakh3.js";
|
|
7
|
+
import"../shared/outfitter-ypcvwg1s.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runCheck,
|
|
12
|
+
printCheckResults,
|
|
13
|
+
CheckError
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CliOutputMode } from "../shared/outfitter-a79xrm12.js";
|
|
2
|
+
/**
|
|
3
|
+
* Options for forwarding to the demo CLI.
|
|
4
|
+
*/
|
|
5
|
+
interface DemoOptions {
|
|
6
|
+
readonly animate?: boolean | undefined;
|
|
7
|
+
readonly list?: boolean | undefined;
|
|
8
|
+
readonly outputMode: CliOutputMode;
|
|
9
|
+
readonly section?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Result of forwarding the demo command.
|
|
13
|
+
*/
|
|
14
|
+
interface DemoResult {
|
|
15
|
+
readonly exitCode: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Runs the demo command through available entrypoints.
|
|
19
|
+
*/
|
|
20
|
+
declare function runDemo(options: DemoOptions): Promise<DemoResult>;
|
|
21
|
+
export { runDemo, DemoResult, DemoOptions };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printDocsApiResults,
|
|
4
|
+
runDocsApi
|
|
5
|
+
} from "../shared/outfitter-cyhzstz0.js";
|
|
6
|
+
import"../shared/outfitter-507ra35w.js";
|
|
7
|
+
import"../shared/outfitter-5vx1bp7h.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runDocsApi,
|
|
12
|
+
printDocsApiResults
|
|
13
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DocsExportInput, DocsExportOutput, printDocsExportResults, runDocsExport } from "../shared/outfitter-x8w5sjnd.js";
|
|
2
|
+
import "../shared/outfitter-a79xrm12.js";
|
|
3
|
+
import { DocsExportTarget } from "../shared/outfitter-1tfa9hke.js";
|
|
4
|
+
export { runDocsExport, printDocsExportResults, DocsExportTarget, DocsExportOutput, DocsExportInput };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printDocsExportResults,
|
|
4
|
+
runDocsExport
|
|
5
|
+
} from "../shared/outfitter-940h0x7b.js";
|
|
6
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
7
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
runDocsExport,
|
|
11
|
+
printDocsExportResults
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
printDocsListResults,
|
|
4
|
+
runDocsList
|
|
5
|
+
} from "../shared/outfitter-yhb23pjc.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
|
+
runDocsList,
|
|
12
|
+
printDocsListResults
|
|
13
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CreateDocsCommandOptions, DocsCommandIo, DocsExportTarget, DocsModule, ExecuteCheckCommandOptions, ExecuteExportCommandOptions, ExecuteSyncCommandOptions, loadDocsModule } from "../shared/outfitter-1tfa9hke.js";
|
|
2
|
+
export { loadDocsModule, ExecuteSyncCommandOptions, ExecuteExportCommandOptions, ExecuteCheckCommandOptions, DocsModule, DocsExportTarget, DocsCommandIo, CreateDocsCommandOptions };
|
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { BunVersionCheck, CheckResult, ConfigFilesCheck, DependenciesCheck, DirectoriesCheck, DoctorOptions, DoctorResult, DoctorSummary, PackageJsonCheck, WorkspaceMemberHealth, doctorCommand, printDoctorResults, runDoctor } from "../shared/outfitter-hsp8vy5m.js";
|
|
2
|
+
export { runDoctor, printDoctorResults, doctorCommand, WorkspaceMemberHealth, PackageJsonCheck, DoctorSummary, DoctorResult, DoctorOptions, DirectoriesCheck, DependenciesCheck, ConfigFilesCheck, CheckResult, BunVersionCheck };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
doctorCommand,
|
|
4
|
+
printDoctorResults,
|
|
5
|
+
runDoctor
|
|
6
|
+
} from "../shared/outfitter-px5sv5gn.js";
|
|
7
|
+
import"../shared/outfitter-q1g58t85.js";
|
|
8
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
9
|
+
import"../shared/outfitter-1fy7byz5.js";
|
|
10
|
+
import"../shared/outfitter-4q1zfmvc.js";
|
|
11
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
12
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
13
|
+
export {
|
|
14
|
+
runDoctor,
|
|
15
|
+
printDoctorResults,
|
|
16
|
+
doctorCommand
|
|
17
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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";
|
|
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 { runInit, printInitResults, initCommand, InitStructure, InitResult, InitPresetId, InitOptions, InitError };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
InitError,
|
|
4
|
+
initCommand,
|
|
5
|
+
runInit
|
|
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";
|
|
14
|
+
import"../shared/outfitter-4s9meh3j.js";
|
|
15
|
+
import"../shared/outfitter-ttjr95y9.js";
|
|
16
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
17
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
18
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
19
|
+
export {
|
|
20
|
+
runInit,
|
|
21
|
+
printInitResults,
|
|
22
|
+
initCommand,
|
|
23
|
+
InitError
|
|
24
|
+
};
|
|
@@ -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 };
|
|
@@ -0,0 +1,3 @@
|
|
|
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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
DOCS_COMMON_OPTION_FLAGS,
|
|
4
|
+
DOCS_EXPORT_OPTION_FLAGS,
|
|
5
|
+
createRepoCommand
|
|
6
|
+
} from "../shared/outfitter-e84cr97g.js";
|
|
7
|
+
import"../shared/outfitter-svts4wk2.js";
|
|
8
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
9
|
+
export {
|
|
10
|
+
createRepoCommand,
|
|
11
|
+
DOCS_EXPORT_OPTION_FLAGS,
|
|
12
|
+
DOCS_COMMON_OPTION_FLAGS
|
|
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
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
export { scaffoldCommand, runScaffold, printScaffoldResults, ScaffoldOptions, ScaffoldCommandResult, ScaffoldCommandError };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ScaffoldCommandError,
|
|
4
|
+
runScaffold,
|
|
5
|
+
scaffoldCommand
|
|
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";
|
|
13
|
+
import"../shared/outfitter-4s9meh3j.js";
|
|
14
|
+
import"../shared/outfitter-ttjr95y9.js";
|
|
15
|
+
import"../shared/outfitter-7r12fj7f.js";
|
|
16
|
+
import"../shared/outfitter-1fy7byz5.js";
|
|
17
|
+
import"../shared/outfitter-4q1zfmvc.js";
|
|
18
|
+
import"../shared/outfitter-8y2dfx6n.js";
|
|
19
|
+
import"../shared/outfitter-1h7k8xxt.js";
|
|
20
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
21
|
+
export {
|
|
22
|
+
scaffoldCommand,
|
|
23
|
+
runScaffold,
|
|
24
|
+
printScaffoldResults,
|
|
25
|
+
ScaffoldCommandError
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared devDependencies injected into all scaffolded projects.
|
|
3
|
+
* Template-specific devDependencies take precedence over these defaults.
|
|
4
|
+
*
|
|
5
|
+
* Versions are resolved from @outfitter/presets (catalog-resolved at publish time).
|
|
6
|
+
* Internal @outfitter/* versions come from workspace scanning.
|
|
7
|
+
*/
|
|
8
|
+
declare const SHARED_DEV_DEPS: Readonly<Record<string, string>>;
|
|
9
|
+
/**
|
|
10
|
+
* Shared scripts injected into all scaffolded projects.
|
|
11
|
+
* Template-specific scripts take precedence over these defaults.
|
|
12
|
+
*/
|
|
13
|
+
declare const SHARED_SCRIPTS: {
|
|
14
|
+
readonly check: "ultracite check";
|
|
15
|
+
readonly "clean:artifacts": "rm -rf dist .turbo";
|
|
16
|
+
readonly "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test";
|
|
17
|
+
readonly lint: "oxlint .";
|
|
18
|
+
readonly "lint:fix": "oxlint --fix .";
|
|
19
|
+
readonly format: "oxfmt --write .";
|
|
20
|
+
readonly typecheck: "tsc --noEmit";
|
|
21
|
+
};
|
|
22
|
+
export { SHARED_SCRIPTS, 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 };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OutfitterError } from "@outfitter/contracts";
|
|
2
|
+
import { Result } from "@outfitter/contracts";
|
|
3
|
+
/** Options passed to a codemod's transform function. */
|
|
4
|
+
interface CodemodOptions {
|
|
5
|
+
readonly dryRun: boolean;
|
|
6
|
+
readonly targetDir: string;
|
|
7
|
+
}
|
|
8
|
+
/** Result returned by a codemod's transform function. */
|
|
9
|
+
interface CodemodResult {
|
|
10
|
+
readonly changedFiles: readonly string[];
|
|
11
|
+
readonly errors: readonly string[];
|
|
12
|
+
readonly skippedFiles: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
/** A discovered codemod with resolved paths. */
|
|
15
|
+
interface DiscoveredCodemod {
|
|
16
|
+
/** Absolute path to the codemod file. */
|
|
17
|
+
readonly absolutePath: string;
|
|
18
|
+
/** Path relative to the codemods directory. */
|
|
19
|
+
readonly relativePath: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Find the codemods directory, checking known locations.
|
|
23
|
+
*
|
|
24
|
+
* Searches:
|
|
25
|
+
* 1. Relative to the target cwd
|
|
26
|
+
* 2. Walking up parent directories from cwd (monorepo root detection)
|
|
27
|
+
* 3. Relative to the outfitter binary itself (development mode)
|
|
28
|
+
*/
|
|
29
|
+
declare function findCodemodsDir(cwd: string, binaryDir?: string): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Discover codemods referenced in migration docs for a package version range.
|
|
32
|
+
*
|
|
33
|
+
* Scans migration doc frontmatter for `codemod` references in the `changes`
|
|
34
|
+
* array, resolves them to absolute paths in the codemods directory, and
|
|
35
|
+
* deduplicates.
|
|
36
|
+
*/
|
|
37
|
+
declare function discoverCodemods(migrationsDir: string, codemodsDir: string, shortName: string, fromVersion: string, toVersion: string): DiscoveredCodemod[];
|
|
38
|
+
/**
|
|
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
|
|
45
|
+
*/
|
|
46
|
+
declare function runCodemod(codemodPath: string, targetDir: string, dryRun: boolean): Promise<Result<CodemodResult, OutfitterError>>;
|
|
47
|
+
export { runCodemod, findCodemodsDir, discoverCodemods, DiscoveredCodemod, CodemodResult, CodemodOptions };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
discoverCodemods,
|
|
4
|
+
findCodemodsDir,
|
|
5
|
+
runCodemod
|
|
6
|
+
} from "../shared/outfitter-x0vpb7tj.js";
|
|
7
|
+
import"../shared/outfitter-fx1m251y.js";
|
|
8
|
+
import"../shared/outfitter-s1c0whzj.js";
|
|
9
|
+
import"../shared/outfitter-eepj7rf7.js";
|
|
10
|
+
export {
|
|
11
|
+
runCodemod,
|
|
12
|
+
findCodemodsDir,
|
|
13
|
+
discoverCodemods
|
|
14
|
+
};
|
|
@@ -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 };
|