@batijs/core 0.0.93 → 0.0.95
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 +6 -7
- package/dist/index.js +1257 -397
- package/package.json +12 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ASTNode, ProxifiedModule } from 'magicast';
|
|
2
|
-
export { generateCode, loadFile, parseModule } from 'magicast';
|
|
3
1
|
import { Flags } from '@batijs/features';
|
|
2
|
+
import { ProxifiedModule } from 'magicast';
|
|
3
|
+
export { generateCode, loadFile, parseModule } from 'magicast';
|
|
4
4
|
export { addVitePlugin } from 'magicast/helpers';
|
|
5
5
|
export { default as which } from 'which';
|
|
6
6
|
import { Color } from 'colorette';
|
|
@@ -17,10 +17,9 @@ type TransformerProps = {
|
|
|
17
17
|
};
|
|
18
18
|
type Transformer = (props: TransformerProps) => unknown;
|
|
19
19
|
|
|
20
|
-
declare function
|
|
21
|
-
filepath
|
|
22
|
-
}): Promise<string>;
|
|
23
|
-
declare function renderSquirrelly(template: string, meta: VikeMeta): string;
|
|
20
|
+
declare function transformAndFormat(code: string, meta: VikeMeta, options: {
|
|
21
|
+
filepath: string;
|
|
22
|
+
}): string | Promise<string>;
|
|
24
23
|
|
|
25
24
|
declare function loadAsJson({ readfile, source, target }: TransformerProps): Promise<any>;
|
|
26
25
|
declare function loadAsMagicast<Exports extends object>({ readfile, source, target, }: TransformerProps): Promise<ProxifiedModule<Exports>>;
|
|
@@ -57,4 +56,4 @@ declare function setScripts<T extends PackageJsonScripts>(packageJson: T, script
|
|
|
57
56
|
|
|
58
57
|
declare function withIcon(icon: string, iconColor?: Color, indentLevel?: number): (str: string) => string;
|
|
59
58
|
|
|
60
|
-
export { ContentGetter, PackageJsonDeps, PackageJsonScriptOption, PackageJsonScriptOptions, PackageJsonScripts, Transformer, TransformerProps, VikeMeta, addDependency, loadAsJson, loadAsMagicast, loadRelativeFileAsMagicast,
|
|
59
|
+
export { ContentGetter, PackageJsonDeps, PackageJsonScriptOption, PackageJsonScriptOptions, PackageJsonScripts, Transformer, TransformerProps, VikeMeta, addDependency, loadAsJson, loadAsMagicast, loadRelativeFileAsMagicast, setScripts, transformAndFormat, withIcon };
|