@outfitter/tooling 0.3.0 → 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.
Files changed (54) hide show
  1. package/dist/cli/index.js +3 -6
  2. package/package.json +3 -2
  3. package/registry/registry.json +3 -3
  4. package/dist/cli/check-boundary-invocations.d.ts +0 -34
  5. package/dist/cli/check-boundary-invocations.js +0 -14
  6. package/dist/cli/check-bunup-registry.d.ts +0 -36
  7. package/dist/cli/check-bunup-registry.js +0 -12
  8. package/dist/cli/check-changeset.d.ts +0 -66
  9. package/dist/cli/check-changeset.js +0 -20
  10. package/dist/cli/check-clean-tree.d.ts +0 -36
  11. package/dist/cli/check-clean-tree.js +0 -14
  12. package/dist/cli/check-exports.d.ts +0 -2
  13. package/dist/cli/check-exports.js +0 -14
  14. package/dist/cli/check-readme-imports.d.ts +0 -61
  15. package/dist/cli/check-readme-imports.js +0 -198
  16. package/dist/cli/check-tsdoc.d.ts +0 -2
  17. package/dist/cli/check-tsdoc.js +0 -36
  18. package/dist/cli/check.d.ts +0 -19
  19. package/dist/cli/check.js +0 -10
  20. package/dist/cli/fix.d.ts +0 -19
  21. package/dist/cli/fix.js +0 -10
  22. package/dist/cli/init.d.ts +0 -31
  23. package/dist/cli/init.js +0 -12
  24. package/dist/cli/pre-push.d.ts +0 -48
  25. package/dist/cli/pre-push.js +0 -25
  26. package/dist/cli/upgrade-bun.d.ts +0 -8
  27. package/dist/cli/upgrade-bun.js +0 -8
  28. package/dist/registry/build.d.ts +0 -6
  29. package/dist/registry/build.js +0 -150
  30. package/dist/registry/index.d.ts +0 -3
  31. package/dist/registry/index.js +0 -13
  32. package/dist/registry/schema.d.ts +0 -2
  33. package/dist/registry/schema.js +0 -12
  34. package/dist/shared/@outfitter/tooling-0x5q15ec.js +0 -21
  35. package/dist/shared/@outfitter/tooling-1y8w5ahg.js +0 -70
  36. package/dist/shared/@outfitter/tooling-2n2dpsaa.js +0 -323
  37. package/dist/shared/@outfitter/tooling-9errkcvk.js +0 -21
  38. package/dist/shared/@outfitter/tooling-9vs606gq.d.ts +0 -3
  39. package/dist/shared/@outfitter/tooling-9yzd08v1.js +0 -146
  40. package/dist/shared/@outfitter/tooling-cj5vsa9k.js +0 -184
  41. package/dist/shared/@outfitter/tooling-ctmgnap5.js +0 -19
  42. package/dist/shared/@outfitter/tooling-dvwh9qve.js +0 -4
  43. package/dist/shared/@outfitter/tooling-enjcenja.js +0 -229
  44. package/dist/shared/@outfitter/tooling-kcvs6mys.js +0 -1
  45. package/dist/shared/@outfitter/tooling-mxwc1n8w.js +0 -68
  46. package/dist/shared/@outfitter/tooling-njw4z34x.d.ts +0 -140
  47. package/dist/shared/@outfitter/tooling-qk5xgmxr.js +0 -405
  48. package/dist/shared/@outfitter/tooling-r9976n43.js +0 -100
  49. package/dist/shared/@outfitter/tooling-sjm8nebx.d.ts +0 -109
  50. package/dist/shared/@outfitter/tooling-t17gnh9b.js +0 -78
  51. package/dist/shared/@outfitter/tooling-wesswf21.d.ts +0 -59
  52. package/dist/shared/@outfitter/tooling-wv09k6hr.js +0 -23
  53. package/dist/version.d.ts +0 -2
  54. package/dist/version.js +0 -8
@@ -1,59 +0,0 @@
1
- /** A package.json map: keys are subpaths, values are conditions or strings */
2
- type ExportMap = Record<string, unknown>;
3
- /** Describes drift between expected and actual exports for a single package */
4
- interface ExportDrift {
5
- readonly package: string;
6
- readonly path: string;
7
- readonly added: string[];
8
- readonly removed: string[];
9
- readonly changed: Array<{
10
- readonly key: string;
11
- readonly expected: unknown;
12
- readonly actual: unknown;
13
- }>;
14
- }
15
- /** Per-package comparison result */
16
- interface PackageResult {
17
- readonly name: string;
18
- readonly status: "ok" | "drift";
19
- readonly drift?: ExportDrift;
20
- }
21
- /** Aggregated result across all checked packages */
22
- interface CheckResult {
23
- readonly ok: boolean;
24
- readonly packages: PackageResult[];
25
- }
26
- /** Input for comparing a single package's exports */
27
- interface CompareInput {
28
- readonly name: string;
29
- readonly actual: ExportMap;
30
- readonly expected: ExportMap;
31
- readonly path?: string;
32
- }
33
- /**
34
- * Convert a source entry file path to its subpath.
35
- *
36
- * @example
37
- * entryToSubpath("src/index.ts") // "."
38
- * entryToSubpath("src/branded.ts") // "./branded"
39
- * entryToSubpath("src/cli/index.ts") // "./cli"
40
- * entryToSubpath("src/cli/check.ts") // "./cli/check"
41
- */
42
- declare function entryToSubpath(entry: string): string;
43
- /**
44
- * Compare actual vs expected exports for a single package.
45
- *
46
- * Returns a PackageResult with status "ok" or "drift" and detailed diff.
47
- */
48
- declare function compareExports(input: CompareInput): PackageResult;
49
- interface CheckExportsOptions {
50
- readonly json?: boolean;
51
- }
52
- declare function resolveJsonMode(options?: CheckExportsOptions): boolean;
53
- /**
54
- * Run check-exports across all workspace packages.
55
- *
56
- * Reads the bunup workspace config to discover packages and their * settings, then compares expected vs actual exports in each package.json.
57
- */
58
- declare function runCheckExports(options?: CheckExportsOptions): Promise<void>;
59
- export { ExportMap, ExportDrift, PackageResult, CheckResult, CompareInput, entryToSubpath, compareExports, CheckExportsOptions, resolveJsonMode, runCheckExports };
@@ -1,23 +0,0 @@
1
- // @bun
2
- // packages/tooling/src/registry/schema.ts
3
- import { z } from "zod";
4
- var FileEntrySchema = z.object({
5
- path: z.string().min(1),
6
- content: z.string(),
7
- executable: z.boolean().optional(),
8
- template: z.boolean().optional()
9
- });
10
- var BlockSchema = z.object({
11
- name: z.string().min(1),
12
- description: z.string().min(1),
13
- files: z.array(FileEntrySchema).optional(),
14
- dependencies: z.record(z.string(), z.string()).optional(),
15
- devDependencies: z.record(z.string(), z.string()).optional(),
16
- extends: z.array(z.string()).optional()
17
- });
18
- var RegistrySchema = z.object({
19
- version: z.string(),
20
- blocks: z.record(z.string(), BlockSchema)
21
- });
22
-
23
- export { FileEntrySchema, BlockSchema, RegistrySchema };
package/dist/version.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { VERSION } from "./shared/@outfitter/tooling-9vs606gq.js";
2
- export { VERSION };
package/dist/version.js DELETED
@@ -1,8 +0,0 @@
1
- // @bun
2
- import {
3
- VERSION
4
- } from "./shared/@outfitter/tooling-ctmgnap5.js";
5
- import"./shared/@outfitter/tooling-dvwh9qve.js";
6
- export {
7
- VERSION
8
- };