@outfitter/tooling 0.3.3 → 0.3.5

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.
Files changed (94) hide show
  1. package/.markdownlint-cli2.jsonc +55 -55
  2. package/README.md +33 -24
  3. package/dist/bun-version-compat.d.ts +2 -0
  4. package/dist/bun-version-compat.js +10 -0
  5. package/dist/cli/check-boundary-invocations.d.ts +34 -0
  6. package/dist/cli/check-boundary-invocations.js +14 -0
  7. package/dist/cli/check-bunup-registry.d.ts +36 -0
  8. package/dist/cli/check-bunup-registry.js +12 -0
  9. package/dist/cli/check-changeset.d.ts +82 -0
  10. package/dist/cli/check-changeset.js +24 -0
  11. package/dist/cli/check-clean-tree.d.ts +36 -0
  12. package/dist/cli/check-clean-tree.js +14 -0
  13. package/dist/cli/check-exports.d.ts +3 -0
  14. package/dist/cli/check-exports.js +17 -0
  15. package/dist/cli/check-home-paths.d.ts +31 -0
  16. package/dist/cli/check-home-paths.js +12 -0
  17. package/dist/cli/check-markdown-links.d.ts +42 -0
  18. package/dist/cli/check-markdown-links.js +13 -0
  19. package/dist/cli/check-readme-imports.d.ts +61 -0
  20. package/dist/{shared/chunk-7tdgbqb0.js → cli/check-readme-imports.js} +7 -6
  21. package/dist/cli/check-tsdoc.d.ts +5 -0
  22. package/dist/cli/check-tsdoc.js +42 -0
  23. package/dist/cli/check.d.ts +19 -0
  24. package/dist/cli/check.js +10 -0
  25. package/dist/cli/fix.d.ts +19 -0
  26. package/dist/cli/fix.js +10 -0
  27. package/dist/cli/index.js +61 -1218
  28. package/dist/cli/init.d.ts +31 -0
  29. package/dist/cli/init.js +12 -0
  30. package/dist/cli/internal/exports-analysis.d.ts +2 -0
  31. package/dist/cli/internal/exports-analysis.js +10 -0
  32. package/dist/cli/internal/exports-fs.d.ts +17 -0
  33. package/dist/cli/internal/exports-fs.js +9 -0
  34. package/dist/cli/internal/pre-push-checks.d.ts +2 -0
  35. package/dist/cli/internal/pre-push-checks.js +37 -0
  36. package/dist/cli/internal/tsdoc-analysis.d.ts +3 -0
  37. package/dist/cli/internal/tsdoc-analysis.js +26 -0
  38. package/dist/cli/internal/tsdoc-formatting.d.ts +3 -0
  39. package/dist/cli/internal/tsdoc-formatting.js +10 -0
  40. package/dist/cli/internal/tsdoc-types.d.ts +2 -0
  41. package/dist/cli/internal/tsdoc-types.js +16 -0
  42. package/dist/cli/pre-push.d.ts +7 -0
  43. package/dist/cli/pre-push.js +29 -0
  44. package/dist/cli/upgrade-bun.d.ts +8 -0
  45. package/dist/cli/upgrade-bun.js +9 -0
  46. package/dist/index.d.ts +9 -186
  47. package/dist/index.js +4 -42
  48. package/dist/registry/build.d.ts +4 -0
  49. package/dist/registry/build.js +279 -0
  50. package/dist/registry/index.d.ts +3 -0
  51. package/dist/registry/index.js +1 -0
  52. package/dist/registry/schema.d.ts +2 -0
  53. package/dist/registry/schema.js +28 -0
  54. package/dist/shared/@outfitter/tooling-0zjz8eg9.js +106 -0
  55. package/dist/shared/@outfitter/tooling-1hez6j9d.js +21 -0
  56. package/dist/shared/@outfitter/tooling-2vv5y3s4.js +145 -0
  57. package/dist/shared/{chunk-cmde0fwx.js → @outfitter/tooling-5xxctk9b.js} +12 -138
  58. package/dist/shared/@outfitter/tooling-5ynz680q.js +59 -0
  59. package/dist/shared/@outfitter/tooling-7437rmy6.js +39 -0
  60. package/dist/shared/@outfitter/tooling-8qcwr06t.d.ts +74 -0
  61. package/dist/shared/@outfitter/tooling-9ram55dd.js +69 -0
  62. package/dist/shared/@outfitter/tooling-9vs606gq.d.ts +3 -0
  63. package/dist/shared/@outfitter/tooling-a4bfx4be.js +21 -0
  64. package/dist/shared/@outfitter/tooling-a59br34g.js +32 -0
  65. package/dist/shared/@outfitter/tooling-a6q3zh7t.js +86 -0
  66. package/dist/shared/@outfitter/tooling-amrbp7cm.js +102 -0
  67. package/dist/shared/@outfitter/tooling-ayps7c4x.js +58 -0
  68. package/dist/shared/@outfitter/tooling-c8q6mj8z.js +228 -0
  69. package/dist/shared/@outfitter/tooling-cb0b8wsx.d.ts +57 -0
  70. package/dist/shared/@outfitter/tooling-ctmgnap5.js +19 -0
  71. package/dist/shared/@outfitter/tooling-f8q38e9z.d.ts +16 -0
  72. package/dist/shared/@outfitter/tooling-gcdvsqqp.js +73 -0
  73. package/dist/shared/@outfitter/tooling-h5dnevjw.js +139 -0
  74. package/dist/shared/@outfitter/tooling-j8d1h2zd.d.ts +10 -0
  75. package/dist/shared/@outfitter/tooling-ja1zg5yc.js +214 -0
  76. package/dist/shared/@outfitter/tooling-jnrs9rqd.js +4 -0
  77. package/dist/shared/@outfitter/tooling-mkynjra9.js +23 -0
  78. package/dist/shared/@outfitter/tooling-mq2xvz96.js +285 -0
  79. package/dist/shared/@outfitter/tooling-pq47jv6t.js +213 -0
  80. package/dist/shared/@outfitter/tooling-sjm8nebx.d.ts +109 -0
  81. package/dist/shared/@outfitter/tooling-stgnc2zx.d.ts +85 -0
  82. package/dist/shared/@outfitter/tooling-tj9p41vj.d.ts +55 -0
  83. package/dist/shared/@outfitter/tooling-vjmhvpjq.d.ts +29 -0
  84. package/dist/shared/@outfitter/tooling-wwm97f47.js +81 -0
  85. package/dist/shared/@outfitter/tooling-y43b117h.d.ts +13 -0
  86. package/dist/version.d.ts +2 -0
  87. package/dist/version.js +8 -0
  88. package/lefthook.yml +5 -1
  89. package/package.json +140 -131
  90. package/registry/registry.json +19 -12
  91. package/tsconfig.preset.bun.json +5 -5
  92. package/tsconfig.preset.json +33 -33
  93. package/biome.json +0 -81
  94. package/dist/shared/chunk-3s189drz.js +0 -4
@@ -0,0 +1,31 @@
1
+ /**
2
+ * CLI init command - Initialize tooling config in a project
3
+ */
4
+ /** Package.json structure for framework detection */
5
+ interface PackageJson {
6
+ dependencies?: Record<string, string>;
7
+ devDependencies?: Record<string, string>;
8
+ }
9
+ /** Options for building the ultracite command */
10
+ interface UltraciteOptions {
11
+ frameworks?: string[];
12
+ quiet?: boolean;
13
+ }
14
+ /**
15
+ * Detect frameworks from package.json dependencies
16
+ * @param pkg - Package.json contents
17
+ * @returns Array of CLI flags for detected frameworks
18
+ */
19
+ declare function detectFrameworks(pkg: PackageJson): string[];
20
+ /**
21
+ * Build the ultracite init command with appropriate flags
22
+ * @param options - Command options
23
+ * @returns Array of command arguments
24
+ */
25
+ declare function buildUltraciteCommand(options: UltraciteOptions): string[];
26
+ /**
27
+ * Run the init command
28
+ * @param cwd - Working directory
29
+ */
30
+ declare function runInit(cwd?: string): Promise<void>;
31
+ export { runInit, detectFrameworks, buildUltraciteCommand };
@@ -0,0 +1,12 @@
1
+ // @bun
2
+ import {
3
+ buildUltraciteCommand,
4
+ detectFrameworks,
5
+ runInit
6
+ } from "../shared/@outfitter/tooling-9ram55dd.js";
7
+ import"../shared/@outfitter/tooling-jnrs9rqd.js";
8
+ export {
9
+ runInit,
10
+ detectFrameworks,
11
+ buildUltraciteCommand
12
+ };
@@ -0,0 +1,2 @@
1
+ import { CheckResult, CompareInput, ExportDrift, ExportMap, PackageResult, compareExports, entryToSubpath } from "../../shared/@outfitter/tooling-cb0b8wsx.js";
2
+ export { entryToSubpath, compareExports, PackageResult, ExportMap, ExportDrift, CompareInput, CheckResult };
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ compareExports,
4
+ entryToSubpath
5
+ } from "../../shared/@outfitter/tooling-ayps7c4x.js";
6
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
7
+ export {
8
+ entryToSubpath,
9
+ compareExports
10
+ };
@@ -0,0 +1,17 @@
1
+ import { ExportMap } from "../../shared/@outfitter/tooling-cb0b8wsx.js";
2
+ /** Bunup workspace entry from bunup.config.ts */
3
+ interface WorkspaceEntry {
4
+ readonly name: string;
5
+ readonly root: string;
6
+ readonly config?: {
7
+ readonly exports?: boolean | {
8
+ readonly exclude?: readonly string[];
9
+ readonly customExports?: Readonly<Record<string, string>>;
10
+ };
11
+ };
12
+ }
13
+ /** Compute expected exports for a workspace package */
14
+ declare function computeExpectedExports(packageRoot: string, workspace: WorkspaceEntry, pkg: {
15
+ files?: string[];
16
+ }): ExportMap;
17
+ export { computeExpectedExports, WorkspaceEntry };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ computeExpectedExports
4
+ } from "../../shared/@outfitter/tooling-a6q3zh7t.js";
5
+ import"../../shared/@outfitter/tooling-ayps7c4x.js";
6
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
7
+ export {
8
+ computeExpectedExports
9
+ };
@@ -0,0 +1,2 @@
1
+ import { BunVersionCheckResult, PushChangedFiles, VerificationPlan, areFilesTestOnly, canBypassRedPhaseByChangedFiles, checkBunVersion, createVerificationPlan, getChangedFilesForPush, getCurrentBranch, hasPackageSourceChanges, hasRedPhaseBranchInContext, isRedPhaseBranch, isReleaseBranch, isScaffoldBranch, isTestOnlyPath, printTsdocSummary, readPackageScripts, runGit } from "../../shared/@outfitter/tooling-8qcwr06t.js";
2
+ export { runGit, readPackageScripts, printTsdocSummary, isTestOnlyPath, isScaffoldBranch, isReleaseBranch, isRedPhaseBranch, hasRedPhaseBranchInContext, hasPackageSourceChanges, getCurrentBranch, getChangedFilesForPush, createVerificationPlan, checkBunVersion, canBypassRedPhaseByChangedFiles, areFilesTestOnly, VerificationPlan, PushChangedFiles, BunVersionCheckResult };
@@ -0,0 +1,37 @@
1
+ // @bun
2
+ import {
3
+ areFilesTestOnly,
4
+ canBypassRedPhaseByChangedFiles,
5
+ checkBunVersion,
6
+ createVerificationPlan,
7
+ getChangedFilesForPush,
8
+ getCurrentBranch,
9
+ hasPackageSourceChanges,
10
+ hasRedPhaseBranchInContext,
11
+ isRedPhaseBranch,
12
+ isReleaseBranch,
13
+ isScaffoldBranch,
14
+ isTestOnlyPath,
15
+ printTsdocSummary,
16
+ readPackageScripts,
17
+ runGit
18
+ } from "../../shared/@outfitter/tooling-c8q6mj8z.js";
19
+ import"../../shared/@outfitter/tooling-5xxctk9b.js";
20
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
21
+ export {
22
+ runGit,
23
+ readPackageScripts,
24
+ printTsdocSummary,
25
+ isTestOnlyPath,
26
+ isScaffoldBranch,
27
+ isReleaseBranch,
28
+ isRedPhaseBranch,
29
+ hasRedPhaseBranchInContext,
30
+ hasPackageSourceChanges,
31
+ getCurrentBranch,
32
+ getChangedFilesForPush,
33
+ createVerificationPlan,
34
+ checkBunVersion,
35
+ canBypassRedPhaseByChangedFiles,
36
+ areFilesTestOnly
37
+ };
@@ -0,0 +1,3 @@
1
+ import { analyzeCheckTsdoc, analyzePackage, analyzeSourceFile, calculateCoverage, classifyDeclaration, collectReExportedSourceFiles, discoverPackages, getDeclarationKind, getDeclarationName, isExportedDeclaration } from "../../shared/@outfitter/tooling-stgnc2zx.js";
2
+ import "../../shared/@outfitter/tooling-tj9p41vj.js";
3
+ export { isExportedDeclaration, getDeclarationName, getDeclarationKind, discoverPackages, collectReExportedSourceFiles, classifyDeclaration, calculateCoverage, analyzeSourceFile, analyzePackage, analyzeCheckTsdoc };
@@ -0,0 +1,26 @@
1
+ // @bun
2
+ import {
3
+ analyzeCheckTsdoc,
4
+ analyzePackage,
5
+ analyzeSourceFile,
6
+ calculateCoverage,
7
+ classifyDeclaration,
8
+ collectReExportedSourceFiles,
9
+ discoverPackages,
10
+ getDeclarationKind,
11
+ getDeclarationName,
12
+ isExportedDeclaration
13
+ } from "../../shared/@outfitter/tooling-5xxctk9b.js";
14
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
15
+ export {
16
+ isExportedDeclaration,
17
+ getDeclarationName,
18
+ getDeclarationKind,
19
+ discoverPackages,
20
+ collectReExportedSourceFiles,
21
+ classifyDeclaration,
22
+ calculateCoverage,
23
+ analyzeSourceFile,
24
+ analyzePackage,
25
+ analyzeCheckTsdoc
26
+ };
@@ -0,0 +1,3 @@
1
+ import { printCheckTsdocHuman, resolveJsonMode } from "../../shared/@outfitter/tooling-f8q38e9z.js";
2
+ import "../../shared/@outfitter/tooling-tj9p41vj.js";
3
+ export { resolveJsonMode, printCheckTsdocHuman };
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ printCheckTsdocHuman,
4
+ resolveJsonMode
5
+ } from "../../shared/@outfitter/tooling-5ynz680q.js";
6
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
7
+ export {
8
+ resolveJsonMode,
9
+ printCheckTsdocHuman
10
+ };
@@ -0,0 +1,2 @@
1
+ import { CheckTsDocOptions, CoverageLevel, CoverageSummary, DeclarationCoverage, PackageCoverage, TsDocCheckResult, coverageLevelSchema, coverageSummarySchema, declarationCoverageSchema, packageCoverageSchema, tsDocCheckResultSchema } from "../../shared/@outfitter/tooling-tj9p41vj.js";
2
+ export { tsDocCheckResultSchema, packageCoverageSchema, declarationCoverageSchema, coverageSummarySchema, coverageLevelSchema, TsDocCheckResult, PackageCoverage, DeclarationCoverage, CoverageSummary, CoverageLevel, CheckTsDocOptions };
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import {
3
+ coverageLevelSchema,
4
+ coverageSummarySchema,
5
+ declarationCoverageSchema,
6
+ packageCoverageSchema,
7
+ tsDocCheckResultSchema
8
+ } from "../../shared/@outfitter/tooling-7437rmy6.js";
9
+ import"../../shared/@outfitter/tooling-jnrs9rqd.js";
10
+ export {
11
+ tsDocCheckResultSchema,
12
+ packageCoverageSchema,
13
+ declarationCoverageSchema,
14
+ coverageSummarySchema,
15
+ coverageLevelSchema
16
+ };
@@ -0,0 +1,7 @@
1
+ import { BunVersionCheckResult, PushChangedFiles, VerificationPlan, areFilesTestOnly, canBypassRedPhaseByChangedFiles, checkBunVersion, createVerificationPlan, hasPackageSourceChanges, isRedPhaseBranch, isReleaseBranch, isScaffoldBranch, isTestOnlyPath } from "../shared/@outfitter/tooling-8qcwr06t.js";
2
+ interface PrePushOptions {
3
+ force?: boolean;
4
+ }
5
+ /** Main pre-push command */
6
+ declare function runPrePush(options?: PrePushOptions): Promise<void>;
7
+ export { runPrePush, isTestOnlyPath, isScaffoldBranch, isReleaseBranch, isRedPhaseBranch, hasPackageSourceChanges, createVerificationPlan, checkBunVersion, canBypassRedPhaseByChangedFiles, areFilesTestOnly, VerificationPlan, PushChangedFiles, PrePushOptions, BunVersionCheckResult };
@@ -0,0 +1,29 @@
1
+ // @bun
2
+ import {
3
+ runPrePush
4
+ } from "../shared/@outfitter/tooling-2vv5y3s4.js";
5
+ import {
6
+ areFilesTestOnly,
7
+ canBypassRedPhaseByChangedFiles,
8
+ checkBunVersion,
9
+ createVerificationPlan,
10
+ hasPackageSourceChanges,
11
+ isRedPhaseBranch,
12
+ isReleaseBranch,
13
+ isScaffoldBranch,
14
+ isTestOnlyPath
15
+ } from "../shared/@outfitter/tooling-c8q6mj8z.js";
16
+ import"../shared/@outfitter/tooling-5xxctk9b.js";
17
+ import"../shared/@outfitter/tooling-jnrs9rqd.js";
18
+ export {
19
+ runPrePush,
20
+ isTestOnlyPath,
21
+ isScaffoldBranch,
22
+ isReleaseBranch,
23
+ isRedPhaseBranch,
24
+ hasPackageSourceChanges,
25
+ createVerificationPlan,
26
+ checkBunVersion,
27
+ canBypassRedPhaseByChangedFiles,
28
+ areFilesTestOnly
29
+ };
@@ -0,0 +1,8 @@
1
+ interface UpgradeBunOptions {
2
+ install?: boolean;
3
+ }
4
+ /**
5
+ * Main upgrade-bun command
6
+ */
7
+ declare function runUpgradeBun(targetVersion?: string, options?: UpgradeBunOptions): Promise<void>;
8
+ export { runUpgradeBun, UpgradeBunOptions };
@@ -0,0 +1,9 @@
1
+ // @bun
2
+ import {
3
+ runUpgradeBun
4
+ } from "../shared/@outfitter/tooling-pq47jv6t.js";
5
+ import"../shared/@outfitter/tooling-mkynjra9.js";
6
+ import"../shared/@outfitter/tooling-jnrs9rqd.js";
7
+ export {
8
+ runUpgradeBun
9
+ };
package/dist/index.d.ts CHANGED
@@ -1,186 +1,9 @@
1
- import { ZodType } from "zod";
2
- /** Coverage classification for a single declaration. */
3
- type CoverageLevel = "documented" | "partial" | "undocumented";
4
- /** Result for a single exported declaration. */
5
- interface DeclarationCoverage {
6
- readonly name: string;
7
- readonly kind: string;
8
- readonly level: CoverageLevel;
9
- readonly file: string;
10
- readonly line: number;
11
- }
12
- /** Coverage summary statistics. */
13
- interface CoverageSummary {
14
- readonly documented: number;
15
- readonly partial: number;
16
- readonly undocumented: number;
17
- readonly total: number;
18
- readonly percentage: number;
19
- }
20
- /** Per-package TSDoc coverage stats. */
21
- interface PackageCoverage {
22
- readonly name: string;
23
- readonly path: string;
24
- readonly declarations: readonly DeclarationCoverage[];
25
- readonly documented: number;
26
- readonly partial: number;
27
- readonly undocumented: number;
28
- readonly total: number;
29
- readonly percentage: number;
30
- }
31
- /** Aggregated result across all packages. */
32
- interface TsDocCheckResult {
33
- readonly ok: boolean;
34
- readonly packages: readonly PackageCoverage[];
35
- readonly summary: CoverageSummary;
36
- }
37
- /** Zod schema for {@link CoverageLevel}. */
38
- declare const coverageLevelSchema: ZodType<CoverageLevel>;
39
- /** Zod schema for {@link DeclarationCoverage}. */
40
- declare const declarationCoverageSchema: ZodType<DeclarationCoverage>;
41
- /** Zod schema for {@link PackageCoverage}. */
42
- declare const packageCoverageSchema: ZodType<PackageCoverage>;
43
- /** Zod schema for {@link TsDocCheckResult}. */
44
- declare const tsDocCheckResultSchema: ZodType<TsDocCheckResult>;
45
- /** Options for the check-tsdoc command. */
46
- interface CheckTsDocOptions {
47
- readonly strict?: boolean | undefined;
48
- readonly json?: boolean | undefined;
49
- readonly minCoverage?: number | undefined;
50
- readonly cwd?: string | undefined;
51
- readonly paths?: readonly string[] | undefined;
52
- }
53
- /**
54
- * Analyze TSDoc coverage across workspace packages.
55
- *
56
- * Pure function that discovers packages, analyzes TSDoc coverage on exported
57
- * declarations, and returns the aggregated result. Does not print output or
58
- * call `process.exit()`.
59
- *
60
- * @param options - Analysis options (paths, strict mode, coverage threshold)
61
- * @returns Aggregated coverage result across all packages, or `null` if no packages found
62
- */
63
- declare function analyzeCheckTsdoc(options?: CheckTsDocOptions): TsDocCheckResult | null;
64
- /**
65
- * Print a TSDoc coverage result in human-readable format.
66
- *
67
- * Renders a bar chart per package with summary statistics. Writes to stdout/stderr.
68
- *
69
- * @param result - The coverage result to print
70
- * @param options - Display options (strict mode, coverage threshold for warning)
71
- */
72
- declare function printCheckTsdocHuman(result: TsDocCheckResult, options?: {
73
- strict?: boolean | undefined;
74
- minCoverage?: number | undefined;
75
- }): void;
76
- import { ZodType as ZodType2 } from "zod";
77
- /**
78
- * File entry in a block.
79
- */
80
- interface FileEntry {
81
- /** Destination path relative to project root */
82
- path: string;
83
- /** File contents (embedded in registry) */
84
- content: string;
85
- /** Whether to chmod +x after copying */
86
- executable?: boolean | undefined;
87
- /** Whether to process as a template (future) */
88
- template?: boolean | undefined;
89
- }
90
- /**
91
- * Schema for a file entry in a block.
92
- * Represents a file that will be copied to the user's project.
93
- */
94
- declare const FileEntrySchema: ZodType2<FileEntry>;
95
- /**
96
- * Block in the registry.
97
- */
98
- interface Block {
99
- /** Block name (matches the key in blocks record) */
100
- name: string;
101
- /** Human-readable description */
102
- description: string;
103
- /** Files included in this block */
104
- files?: FileEntry[] | undefined;
105
- /** npm dependencies to add to package.json */
106
- dependencies?: Record<string, string> | undefined;
107
- /** npm devDependencies to add to package.json */
108
- devDependencies?: Record<string, string> | undefined;
109
- /** Other blocks this block extends (for composite blocks) */
110
- extends?: string[] | undefined;
111
- }
112
- /**
113
- * Schema for a block in the registry.
114
- * A block is a collection of related files that can be added together.
115
- */
116
- declare const BlockSchema: ZodType2<Block>;
117
- /**
118
- * Complete registry structure.
119
- */
120
- interface Registry {
121
- /** Registry schema version */
122
- version: string;
123
- /** Map of block name to block definition */
124
- blocks: Record<string, Block>;
125
- }
126
- /**
127
- * Schema for the complete registry.
128
- * Contains all available blocks with their files and metadata.
129
- */
130
- declare const RegistrySchema: ZodType2<Registry>;
131
- /**
132
- * Block definition used in the build script.
133
- * Specifies how to collect source files into a block.
134
- */
135
- interface BlockDefinition {
136
- /** Human-readable description */
137
- description: string;
138
- /** Source file paths (relative to repo root) */
139
- files?: string[];
140
- /** Remap source paths to destination paths */
141
- remap?: Record<string, string>;
142
- /** npm dependencies */
143
- dependencies?: Record<string, string>;
144
- /** npm devDependencies */
145
- devDependencies?: Record<string, string>;
146
- /** Other blocks this block extends */
147
- extends?: string[];
148
- }
149
- /**
150
- * Configuration for the registry build.
151
- */
152
- interface RegistryBuildConfig {
153
- /** Registry schema version */
154
- version: string;
155
- /** Block definitions */
156
- blocks: Record<string, BlockDefinition>;
157
- }
158
- /**
159
- * Result of adding a block to a project.
160
- */
161
- interface AddBlockResult {
162
- /** Files that were created */
163
- created: string[];
164
- /** Files that were skipped (already exist) */
165
- skipped: string[];
166
- /** Files that were overwritten (with --force) */
167
- overwritten: string[];
168
- /** Dependencies added to package.json */
169
- dependencies: Record<string, string>;
170
- /** devDependencies added to package.json */
171
- devDependencies: Record<string, string>;
172
- }
173
- /**
174
- * Options for the add command.
175
- */
176
- interface AddBlockOptions {
177
- /** Overwrite existing files */
178
- force?: boolean;
179
- /** Show what would be added without making changes */
180
- dryRun?: boolean;
181
- /** Working directory (defaults to cwd) */
182
- cwd?: string;
183
- }
184
- /** Package version, read from package.json at load time. */
185
- declare const VERSION: string;
186
- export { tsDocCheckResultSchema, printCheckTsdocHuman, packageCoverageSchema, declarationCoverageSchema, coverageLevelSchema, analyzeCheckTsdoc, VERSION, TsDocCheckResult, RegistrySchema, RegistryBuildConfig, Registry, PackageCoverage, FileEntrySchema, FileEntry, DeclarationCoverage, CoverageLevel, CheckTsDocOptions, BlockSchema, BlockDefinition, Block, AddBlockResult, AddBlockOptions };
1
+ import "./shared/@outfitter/tooling-j8d1h2zd.js";
2
+ import { printCheckTsdocHuman } from "./shared/@outfitter/tooling-f8q38e9z.js";
3
+ import { analyzeCheckTsdoc } from "./shared/@outfitter/tooling-stgnc2zx.js";
4
+ import { CheckTsDocOptions, CoverageLevel, DeclarationCoverage, PackageCoverage, TsDocCheckResult, coverageLevelSchema, declarationCoverageSchema, packageCoverageSchema, tsDocCheckResultSchema } from "./shared/@outfitter/tooling-tj9p41vj.js";
5
+ import { ParsedSemver, isTypesBunVersionCompatible, parseSemver } from "./shared/@outfitter/tooling-vjmhvpjq.js";
6
+ import { VERSION } from "./shared/@outfitter/tooling-9vs606gq.js";
7
+ import "./shared/@outfitter/tooling-xqwn46sx.js";
8
+ import { AddBlockOptions, AddBlockResult, Block, BlockDefinition, BlockSchema, FileEntry, FileEntrySchema, Registry, RegistryBuildConfig, RegistrySchema } from "./shared/@outfitter/tooling-sjm8nebx.js";
9
+ export { tsDocCheckResultSchema, printCheckTsdocHuman, parseSemver, packageCoverageSchema, isTypesBunVersionCompatible, declarationCoverageSchema, coverageLevelSchema, analyzeCheckTsdoc, VERSION, TsDocCheckResult, RegistrySchema, RegistryBuildConfig, Registry, ParsedSemver, PackageCoverage, FileEntrySchema, FileEntry, DeclarationCoverage, CoverageLevel, CheckTsDocOptions, BlockSchema, BlockDefinition, Block, AddBlockResult, AddBlockOptions };
package/dist/index.js CHANGED
@@ -1,42 +1,4 @@
1
- import {
2
- VERSION,
3
- analyzeCheckTsdoc,
4
- coverageLevelSchema,
5
- declarationCoverageSchema,
6
- packageCoverageSchema,
7
- printCheckTsdocHuman,
8
- tsDocCheckResultSchema
9
- } from "./shared/chunk-cmde0fwx.js";
10
- import"./shared/chunk-3s189drz.js";
11
- // src/registry/schema.ts
12
- import { z } from "zod";
13
- var FileEntrySchema = z.object({
14
- path: z.string().min(1),
15
- content: z.string(),
16
- executable: z.boolean().optional(),
17
- template: z.boolean().optional()
18
- });
19
- var BlockSchema = z.object({
20
- name: z.string().min(1),
21
- description: z.string().min(1),
22
- files: z.array(FileEntrySchema).optional(),
23
- dependencies: z.record(z.string(), z.string()).optional(),
24
- devDependencies: z.record(z.string(), z.string()).optional(),
25
- extends: z.array(z.string()).optional()
26
- });
27
- var RegistrySchema = z.object({
28
- version: z.string(),
29
- blocks: z.record(z.string(), BlockSchema)
30
- });
31
- export {
32
- tsDocCheckResultSchema,
33
- printCheckTsdocHuman,
34
- packageCoverageSchema,
35
- declarationCoverageSchema,
36
- coverageLevelSchema,
37
- analyzeCheckTsdoc,
38
- VERSION,
39
- RegistrySchema,
40
- FileEntrySchema,
41
- BlockSchema
42
- };
1
+ export { analyzeCheckTsdoc, coverageLevelSchema, declarationCoverageSchema, packageCoverageSchema, printCheckTsdocHuman, tsDocCheckResultSchema } from "./cli/check-tsdoc.js";
2
+ export { isTypesBunVersionCompatible, parseSemver } from "./bun-version-compat.js";
3
+ export { BlockSchema, FileEntrySchema, RegistrySchema } from "./registry/index.js";
4
+ export { VERSION } from "./version.js";
@@ -0,0 +1,4 @@
1
+ import { RegistryBuildConfig } from "../shared/@outfitter/tooling-sjm8nebx.js";
2
+ /** Registry build configuration with dynamically resolved versions. */
3
+ declare const REGISTRY_CONFIG: RegistryBuildConfig;
4
+ export { REGISTRY_CONFIG };