@fumadocs/cli 1.2.5 → 1.3.0
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/dist/{ast-BS3xj9uY.js → ast-BRNdmLn5.js} +2 -4
- package/dist/{ast-BS3xj9uY.js.map → ast-BRNdmLn5.js.map} +1 -1
- package/dist/build/index.d.ts +7 -37
- package/dist/build/index.d.ts.map +1 -1
- package/dist/build/index.js +18 -13
- package/dist/build/index.js.map +1 -1
- package/dist/client-YTcWP1iz.js +102 -0
- package/dist/client-YTcWP1iz.js.map +1 -0
- package/dist/config-DH5Ggyir.js +55 -0
- package/dist/config-DH5Ggyir.js.map +1 -0
- package/dist/config-ndMKrpJz.d.ts +49 -0
- package/dist/config-ndMKrpJz.d.ts.map +1 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.js +2 -0
- package/dist/fs-CigSthjp.js +18 -0
- package/dist/fs-CigSthjp.js.map +1 -0
- package/dist/index.js +249 -391
- package/dist/index.js.map +1 -1
- package/dist/installer-BS70ExnQ.js +248 -0
- package/dist/installer-BS70ExnQ.js.map +1 -0
- package/dist/registry/client.d.ts +94 -0
- package/dist/registry/client.d.ts.map +1 -0
- package/dist/registry/client.js +2 -0
- package/dist/registry/installer/index.d.ts +106 -0
- package/dist/registry/installer/index.d.ts.map +1 -0
- package/dist/registry/installer/index.js +4 -0
- package/dist/registry/schema.d.ts +2 -0
- package/dist/registry/schema.js +46 -0
- package/dist/registry/schema.js.map +1 -0
- package/dist/schema-CKNbRBjk.d.ts +61 -0
- package/dist/schema-CKNbRBjk.d.ts.map +1 -0
- package/package.json +14 -13
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { i as Component, o as File } from "../../schema-CKNbRBjk.js";
|
|
2
|
+
import { RegistryClient } from "../client.js";
|
|
3
|
+
import { ParseResult } from "oxc-parser";
|
|
4
|
+
import { AgentName } from "package-manager-detector";
|
|
5
|
+
import MagicString from "magic-string";
|
|
6
|
+
|
|
7
|
+
//#region src/utils/get-package-manager.d.ts
|
|
8
|
+
type PackageManager = AgentName;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/registry/installer/dep-manager.d.ts
|
|
11
|
+
declare class DependencyManager {
|
|
12
|
+
private readonly cwd;
|
|
13
|
+
private installedDeps;
|
|
14
|
+
dependencies: string[];
|
|
15
|
+
devDependencies: string[];
|
|
16
|
+
packageManager: PackageManager;
|
|
17
|
+
constructor(cwd: string);
|
|
18
|
+
init(deps: Record<string, string | null>, devDeps: Record<string, string | null>): Promise<void>;
|
|
19
|
+
private resolveRequiredDependencies;
|
|
20
|
+
hasRequired(): boolean;
|
|
21
|
+
writeRequired(): Promise<false | undefined>;
|
|
22
|
+
installRequired(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/registry/installer/index.d.ts
|
|
26
|
+
interface PluginContext {
|
|
27
|
+
installer: ComponentInstaller;
|
|
28
|
+
}
|
|
29
|
+
interface TransformContext extends PluginContext, InstallContext {
|
|
30
|
+
s: MagicString;
|
|
31
|
+
parsed: ParseResult;
|
|
32
|
+
file: File;
|
|
33
|
+
component: DownloadedComponent;
|
|
34
|
+
}
|
|
35
|
+
interface InstallContext {
|
|
36
|
+
pathToFile: Map<string, File>;
|
|
37
|
+
io: IOInterface;
|
|
38
|
+
/** full variables of the current component. */
|
|
39
|
+
$variables: Record<string, unknown>;
|
|
40
|
+
/** the last item is always the current component. */
|
|
41
|
+
stack: DownloadedComponent[];
|
|
42
|
+
}
|
|
43
|
+
interface DownloadedComponent extends Component {
|
|
44
|
+
$subComponents: DownloadedComponent[];
|
|
45
|
+
$registry: RegistryClient;
|
|
46
|
+
}
|
|
47
|
+
type Awaitable<T> = T | Promise<T>;
|
|
48
|
+
interface ComponentInstallerPlugin {
|
|
49
|
+
/**
|
|
50
|
+
* transform file before writing (before default transformation)
|
|
51
|
+
*/
|
|
52
|
+
beforeTransform?: (context: TransformContext) => Awaitable<void>;
|
|
53
|
+
/**
|
|
54
|
+
* transform file before writing (after default transformation)
|
|
55
|
+
*/
|
|
56
|
+
afterTransform?: (context: TransformContext) => Awaitable<void>;
|
|
57
|
+
/**
|
|
58
|
+
* transform component before install
|
|
59
|
+
*/
|
|
60
|
+
beforeInstall?: (comp: DownloadedComponent, context: InstallContext & PluginContext) => Awaitable<DownloadedComponent | undefined>;
|
|
61
|
+
beforeDownload?: (context: PluginContext & {
|
|
62
|
+
name: string;
|
|
63
|
+
}) => void | Promise<void>;
|
|
64
|
+
afterDownload?: (context: PluginContext & {
|
|
65
|
+
name: string;
|
|
66
|
+
result: DownloadedComponent;
|
|
67
|
+
}) => void | Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
interface IOInterface {
|
|
70
|
+
onWarn: (message: string) => void;
|
|
71
|
+
confirmFileOverride: (options: {
|
|
72
|
+
path: string;
|
|
73
|
+
}) => Promise<boolean>;
|
|
74
|
+
onFileDownloaded: (options: {
|
|
75
|
+
path: string;
|
|
76
|
+
file: File;
|
|
77
|
+
component: Component;
|
|
78
|
+
}) => void;
|
|
79
|
+
}
|
|
80
|
+
interface ComponentInstallerOptions {
|
|
81
|
+
plugins?: ComponentInstallerPlugin[];
|
|
82
|
+
cwd?: string;
|
|
83
|
+
}
|
|
84
|
+
declare class ComponentInstaller {
|
|
85
|
+
private readonly rootClient;
|
|
86
|
+
private readonly installedFiles;
|
|
87
|
+
private readonly downloadCache;
|
|
88
|
+
private readonly cwd;
|
|
89
|
+
private readonly plugins;
|
|
90
|
+
readonly dependencies: Record<string, string | null>;
|
|
91
|
+
readonly devDependencies: Record<string, string | null>;
|
|
92
|
+
constructor(rootClient: RegistryClient, options?: ComponentInstallerOptions);
|
|
93
|
+
private installComponent;
|
|
94
|
+
install(name: string, io: IOInterface): Promise<void>;
|
|
95
|
+
deps(): Promise<DependencyManager>;
|
|
96
|
+
onEnd(): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* download component & its sub components
|
|
99
|
+
*/
|
|
100
|
+
private download;
|
|
101
|
+
private transform;
|
|
102
|
+
private resolveOutputPath;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { ComponentInstaller, ComponentInstallerOptions, ComponentInstallerPlugin, IOInterface };
|
|
106
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/utils/get-package-manager.ts","../../../src/registry/installer/dep-manager.ts","../../../src/registry/installer/index.ts"],"mappings":";;;;;;;KAEY,cAAA,GAAiB,SAAA;;;cCQhB,iBAAA;EAAA,iBAMkB,GAAA;EAAA,QALrB,aAAA;EACR,YAAA;EACA,eAAA;EACA,cAAA,EAAgB,cAAA;cAEa,GAAA;EAEvB,IAAA,CAAK,IAAA,EAAM,MAAA,yBAA+B,OAAA,EAAS,MAAA,0BAA6B,OAAA;EAAA,QAyB9E,2BAAA;EAMR,WAAA,CAAA;EAIM,aAAA,CAAA,GAAa,OAAA;EAuBb,eAAA,CAAA,GAAe,OAAA;AAAA;;;UChEb,aAAA;EACR,SAAA,EAAW,kBAAA;AAAA;AAAA,UAGH,gBAAA,SAAyB,aAAA,EAAe,cAAA;EAChD,CAAA,EAAG,WAAA;EACH,MAAA,EAAQ,WAAA;EACR,IAAA,EAAM,IAAA;EACN,SAAA,EAAW,mBAAA;AAAA;AAAA,UAGH,cAAA;EACR,UAAA,EAAY,GAAA,SAAY,IAAA;EACxB,EAAA,EAAI,WAAA;EDfwB;ECiB5B,UAAA,EAAY,MAAA;EDbI;ECehB,KAAA,EAAO,mBAAA;AAAA;AAAA,UAGC,mBAAA,SAA4B,SAAA;EACpC,cAAA,EAAgB,mBAAA;EAChB,SAAA,EAAW,cAAA;AAAA;AAAA,KAGR,SAAA,MAAe,CAAA,GAAI,OAAA,CAAQ,CAAA;AAAA,UAEf,wBAAA;ED5BP;;;ECgCR,eAAA,IAAmB,OAAA,EAAS,gBAAA,KAAqB,SAAA;ED7BjC;;;ECkChB,cAAA,IAAkB,OAAA,EAAS,gBAAA,KAAqB,SAAA;ED9B/B;;;ECmCjB,aAAA,IACE,IAAA,EAAM,mBAAA,EACN,OAAA,EAAS,cAAA,GAAiB,aAAA,KACvB,SAAA,CAAU,mBAAA;EAEf,cAAA,IACE,OAAA,EAAS,aAAA;IACP,IAAA;EAAA,aAEQ,OAAA;EAEZ,aAAA,IACE,OAAA,EAAS,aAAA;IACP,IAAA;IACA,MAAA,EAAQ,mBAAA;EAAA,aAEA,OAAA;AAAA;AAAA,UAGG,WAAA;EACf,MAAA,GAAS,OAAA;EACT,mBAAA,GAAsB,OAAA;IAAW,IAAA;EAAA,MAAmB,OAAA;EACpD,gBAAA,GAAmB,OAAA;IAAW,IAAA;IAAc,IAAA,EAAM,IAAA;IAAM,SAAA,EAAW,SAAA;EAAA;AAAA;AAAA,UAGpD,yBAAA;EACf,OAAA,GAAU,wBAAA;EACV,GAAA;AAAA;AAAA,cAGW,kBAAA;EAAA,iBASQ,UAAA;EAAA,iBARF,cAAA;EAAA,iBACA,aAAA;EAAA,iBACA,GAAA;EAAA,iBACA,OAAA;EAAA,SACR,YAAA,EAAc,MAAA;EAAA,SACd,eAAA,EAAiB,MAAA;cAGP,UAAA,EAAY,cAAA,EAC7B,OAAA,GAAS,yBAAA;EAAA,QAMG,gBAAA;EAsDR,OAAA,CAAQ,IAAA,UAAc,EAAA,EAAI,WAAA,GAAW,OAAA;EAuCrC,IAAA,CAAA,GAAI,OAAA,CAAA,iBAAA;EAMJ,KAAA,CAAA,GAAK,OAAA;EAlLX;;;EAAA,QA4Lc,QAAA;EAAA,QAoDA,SAAA;EAAA,QA2CN,iBAAA;AAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as DownloadedRegistryInfo, c as componentSchema, d as indexSchema, f as namespaces, i as Component, l as fileSchema, n as CompiledFile, o as File, p as registryInfoSchema, r as CompiledRegistryInfo, s as NamespaceType, t as CompiledComponent, u as httpSubComponent } from "../schema-CKNbRBjk.js";
|
|
2
|
+
export { CompiledComponent, CompiledFile, CompiledRegistryInfo, Component, DownloadedRegistryInfo, File, NamespaceType, componentSchema, fileSchema, httpSubComponent, indexSchema, namespaces, registryInfoSchema };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/registry/schema.ts
|
|
3
|
+
const namespaces = [
|
|
4
|
+
"components",
|
|
5
|
+
"lib",
|
|
6
|
+
"css",
|
|
7
|
+
"route",
|
|
8
|
+
"ui",
|
|
9
|
+
"block"
|
|
10
|
+
];
|
|
11
|
+
const indexSchema = z.object({
|
|
12
|
+
name: z.string(),
|
|
13
|
+
title: z.string().optional(),
|
|
14
|
+
description: z.string().optional()
|
|
15
|
+
});
|
|
16
|
+
const fileSchema = z.object({
|
|
17
|
+
type: z.literal(namespaces),
|
|
18
|
+
path: z.string(),
|
|
19
|
+
target: z.string().optional(),
|
|
20
|
+
content: z.string()
|
|
21
|
+
});
|
|
22
|
+
const httpSubComponent = z.object({
|
|
23
|
+
type: z.literal("http"),
|
|
24
|
+
baseUrl: z.string(),
|
|
25
|
+
component: z.string()
|
|
26
|
+
});
|
|
27
|
+
const componentSchema = z.object({
|
|
28
|
+
name: z.string(),
|
|
29
|
+
title: z.string().optional(),
|
|
30
|
+
description: z.string().optional(),
|
|
31
|
+
files: z.array(fileSchema),
|
|
32
|
+
dependencies: z.record(z.string(), z.string().or(z.null())),
|
|
33
|
+
devDependencies: z.record(z.string(), z.string().or(z.null())),
|
|
34
|
+
subComponents: z.array(z.string().or(httpSubComponent)).default([]),
|
|
35
|
+
variables: z.record(z.string(), z.unknown()).optional()
|
|
36
|
+
});
|
|
37
|
+
const registryInfoSchema = z.object({
|
|
38
|
+
variables: z.record(z.string(), z.object({ description: z.string().optional() })).optional(),
|
|
39
|
+
env: z.record(z.string(), z.unknown()).optional(),
|
|
40
|
+
indexes: z.array(indexSchema).default([]),
|
|
41
|
+
registries: z.array(z.string()).optional()
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { componentSchema, fileSchema, httpSubComponent, indexSchema, namespaces, registryInfoSchema };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","names":[],"sources":["../../src/registry/schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport type NamespaceType = (typeof namespaces)[number];\nexport type CompiledFile = z.input<typeof fileSchema>;\nexport type CompiledComponent = z.input<typeof componentSchema>;\nexport type CompiledRegistryInfo = z.input<typeof registryInfoSchema>;\nexport type DownloadedRegistryInfo = z.output<typeof registryInfoSchema>;\nexport type File = z.output<typeof fileSchema>;\nexport type Component = z.output<typeof componentSchema>;\n\nexport const namespaces = ['components', 'lib', 'css', 'route', 'ui', 'block'] as const;\n\nexport const indexSchema = z.object({\n name: z.string(),\n title: z.string().optional(),\n description: z.string().optional(),\n});\n\nexport const fileSchema = z.object({\n type: z.literal(namespaces),\n path: z.string(),\n target: z.string().optional(),\n content: z.string(),\n});\n\nexport const httpSubComponent = z.object({\n type: z.literal('http'),\n baseUrl: z.string(),\n component: z.string(),\n});\n\nexport const componentSchema = z.object({\n name: z.string(),\n title: z.string().optional(),\n description: z.string().optional(),\n files: z.array(fileSchema),\n dependencies: z.record(z.string(), z.string().or(z.null())),\n devDependencies: z.record(z.string(), z.string().or(z.null())),\n /**\n * list of sub components, either local (component name) or remote (registry info & component name)\n */\n subComponents: z.array(z.string().or(httpSubComponent)).default([]),\n\n /**\n * override variables for the current component & its sub components.\n *\n * this is powerful to customise how sub components are installed vs. installing them directly.\n */\n variables: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport const registryInfoSchema = z.object({\n /**\n * define metadata for variables, variables can be referenced in the target path of component files, or in plugins.\n */\n variables: z\n .record(\n z.string(),\n z.object({\n description: z.string().optional(),\n }),\n )\n .optional(),\n /**\n * override variables for all components.\n */\n env: z.record(z.string(), z.unknown()).optional(),\n indexes: z.array(indexSchema).default([]),\n\n registries: z.array(z.string()).optional(),\n});\n"],"mappings":";;AAUA,MAAa,aAAa;CAAC;CAAc;CAAO;CAAO;CAAS;CAAM;CAAQ;AAE9E,MAAa,cAAc,EAAE,OAAO;CAClC,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC;AAEF,MAAa,aAAa,EAAE,OAAO;CACjC,MAAM,EAAE,QAAQ,WAAW;CAC3B,MAAM,EAAE,QAAQ;CAChB,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,SAAS,EAAE,QAAQ;CACpB,CAAC;AAEF,MAAa,mBAAmB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ,OAAO;CACvB,SAAS,EAAE,QAAQ;CACnB,WAAW,EAAE,QAAQ;CACtB,CAAC;AAEF,MAAa,kBAAkB,EAAE,OAAO;CACtC,MAAM,EAAE,QAAQ;CAChB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,OAAO,EAAE,MAAM,WAAW;CAC1B,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;CAC3D,iBAAiB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;CAI9D,eAAe,EAAE,MAAM,EAAE,QAAQ,CAAC,GAAG,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC;CAOnE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;CACxD,CAAC;AAEF,MAAa,qBAAqB,EAAE,OAAO;CAIzC,WAAW,EACR,OACC,EAAE,QAAQ,EACV,EAAE,OAAO,EACP,aAAa,EAAE,QAAQ,CAAC,UAAU,EACnC,CAAC,CACH,CACA,UAAU;CAIb,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU;CACjD,SAAS,EAAE,MAAM,YAAY,CAAC,QAAQ,EAAE,CAAC;CAEzC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CAC3C,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/registry/schema.d.ts
|
|
4
|
+
type NamespaceType = (typeof namespaces)[number];
|
|
5
|
+
type CompiledFile = z.input<typeof fileSchema>;
|
|
6
|
+
type CompiledComponent = z.input<typeof componentSchema>;
|
|
7
|
+
type CompiledRegistryInfo = z.input<typeof registryInfoSchema>;
|
|
8
|
+
type DownloadedRegistryInfo = z.output<typeof registryInfoSchema>;
|
|
9
|
+
type File = z.output<typeof fileSchema>;
|
|
10
|
+
type Component = z.output<typeof componentSchema>;
|
|
11
|
+
declare const namespaces: readonly ["components", "lib", "css", "route", "ui", "block"];
|
|
12
|
+
declare const indexSchema: z.ZodObject<{
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
title: z.ZodOptional<z.ZodString>;
|
|
15
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const fileSchema: z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<"components" | "lib" | "css" | "route" | "ui" | "block">;
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
target: z.ZodOptional<z.ZodString>;
|
|
21
|
+
content: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const httpSubComponent: z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"http">;
|
|
25
|
+
baseUrl: z.ZodString;
|
|
26
|
+
component: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const componentSchema: z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
title: z.ZodOptional<z.ZodString>;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
files: z.ZodArray<z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"components" | "lib" | "css" | "route" | "ui" | "block">;
|
|
34
|
+
path: z.ZodString;
|
|
35
|
+
target: z.ZodOptional<z.ZodString>;
|
|
36
|
+
content: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
dependencies: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
39
|
+
devDependencies: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
40
|
+
subComponents: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"http">;
|
|
42
|
+
baseUrl: z.ZodString;
|
|
43
|
+
component: z.ZodString;
|
|
44
|
+
}, z.core.$strip>]>>>;
|
|
45
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const registryInfoSchema: z.ZodObject<{
|
|
48
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
49
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
52
|
+
indexes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
title: z.ZodOptional<z.ZodString>;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
57
|
+
registries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
//#endregion
|
|
60
|
+
export { DownloadedRegistryInfo as a, componentSchema as c, indexSchema as d, namespaces as f, Component as i, fileSchema as l, CompiledFile as n, File as o, registryInfoSchema as p, CompiledRegistryInfo as r, NamespaceType as s, CompiledComponent as t, httpSubComponent as u };
|
|
61
|
+
//# sourceMappingURL=schema-CKNbRBjk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-CKNbRBjk.d.ts","names":[],"sources":["../src/registry/schema.ts"],"mappings":";;;KAEY,aAAA,WAAwB,UAAA;AAAA,KACxB,YAAA,GAAe,CAAA,CAAE,KAAA,QAAa,UAAA;AAAA,KAC9B,iBAAA,GAAoB,CAAA,CAAE,KAAA,QAAa,eAAA;AAAA,KACnC,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,kBAAA;AAAA,KACtC,sBAAA,GAAyB,CAAA,CAAE,MAAA,QAAc,kBAAA;AAAA,KACzC,IAAA,GAAO,CAAA,CAAE,MAAA,QAAc,UAAA;AAAA,KACvB,SAAA,GAAY,CAAA,CAAE,MAAA,QAAc,eAAA;AAAA,cAE3B,UAAA;AAAA,cAEA,WAAA,EAAW,CAAA,CAAA,SAAA;;;;;cAMX,UAAA,EAAU,CAAA,CAAA,SAAA;;;;;;cAOV,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;cAMhB,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAoBf,kBAAA,EAAkB,CAAA,CAAA,SAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The CLI tool for Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -17,32 +17,33 @@
|
|
|
17
17
|
"dist/*"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"main": "./dist/index.js",
|
|
21
20
|
"exports": {
|
|
22
|
-
"./build":
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
"./build": "./dist/build/index.js",
|
|
22
|
+
"./config": "./dist/config.js",
|
|
23
|
+
"./registry/client": "./dist/registry/client.js",
|
|
24
|
+
"./registry/installer": "./dist/registry/installer/index.js",
|
|
25
|
+
"./registry/schema": "./dist/registry/schema.js",
|
|
26
|
+
"./package.json": "./package.json"
|
|
26
27
|
},
|
|
27
28
|
"publishConfig": {
|
|
28
29
|
"access": "public"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@clack/prompts": "^1.0
|
|
32
|
+
"@clack/prompts": "^1.1.0",
|
|
32
33
|
"commander": "^14.0.3",
|
|
33
34
|
"magic-string": "^0.30.21",
|
|
34
|
-
"oxc-parser": "^0.
|
|
35
|
+
"oxc-parser": "^0.121.0",
|
|
35
36
|
"oxc-resolver": "^11.19.1",
|
|
36
37
|
"package-manager-detector": "^1.6.0",
|
|
37
38
|
"picocolors": "^1.1.1",
|
|
38
|
-
"tinyexec": "^1.0.
|
|
39
|
+
"tinyexec": "^1.0.4",
|
|
39
40
|
"zod": "^4.3.6"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@oxc-project/types": "^0.
|
|
43
|
-
"@types/node": "25.
|
|
44
|
-
"shadcn": "
|
|
45
|
-
"tsdown": "0.
|
|
43
|
+
"@oxc-project/types": "^0.121.0",
|
|
44
|
+
"@types/node": "25.5.0",
|
|
45
|
+
"shadcn": "4.0.8",
|
|
46
|
+
"tsdown": "0.21.4",
|
|
46
47
|
"eslint-config-custom": "0.0.0",
|
|
47
48
|
"tsconfig": "0.0.0"
|
|
48
49
|
},
|