@batijs/core 0.0.234 → 0.0.236
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/index.d.ts +8 -1
- package/dist/index.js +578 -523
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ declare function transformAndFormat(code: string, meta: VikeMeta, options: {
|
|
|
31
31
|
context: FileContext | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
|
|
34
|
+
declare function formatCode(code: string, options: {
|
|
35
|
+
filepath: string;
|
|
36
|
+
}): Promise<string>;
|
|
37
|
+
|
|
34
38
|
declare function h1(text: string): string;
|
|
35
39
|
declare function h2(text: string): string;
|
|
36
40
|
declare function h3(text: string): string;
|
|
@@ -76,6 +80,9 @@ interface PackageJsonScripts {
|
|
|
76
80
|
}
|
|
77
81
|
interface PackageJsonScriptOption {
|
|
78
82
|
value?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Higher values have priority
|
|
85
|
+
*/
|
|
79
86
|
precedence: number;
|
|
80
87
|
warnIfReplaced?: boolean;
|
|
81
88
|
}
|
|
@@ -100,4 +107,4 @@ declare function getVersion(): {
|
|
|
100
107
|
semver: string[];
|
|
101
108
|
};
|
|
102
109
|
|
|
103
|
-
export { type ContentGetter, type PackageJsonDeps, type PackageJsonScriptOption, type PackageJsonScriptOptions, type PackageJsonScripts, Readme, type Transformer, type TransformerProps, type VikeMeta, addDependency, appendToEnv, getArgs, getVersion, loadAsJson, loadAsMagicast, loadReadme, loadRelativeFileAsMagicast, markdown, packageManager, parseReadme, setScripts, transformAndFormat, withIcon };
|
|
110
|
+
export { type ContentGetter, type PackageJsonDeps, type PackageJsonScriptOption, type PackageJsonScriptOptions, type PackageJsonScripts, Readme, type Transformer, type TransformerProps, type VikeMeta, addDependency, appendToEnv, formatCode, getArgs, getVersion, loadAsJson, loadAsMagicast, loadReadme, loadRelativeFileAsMagicast, markdown, packageManager, parseReadme, setScripts, transformAndFormat, withIcon };
|