@batijs/core 0.0.12 → 0.0.13

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 (3) hide show
  1. package/dist/index.d.ts +5 -3
  2. package/dist/index.js +87582 -2547
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -2,15 +2,17 @@ import { ASTNode, ProxifiedModule } from 'magicast';
2
2
  export { generateCode, loadFile, parseModule } from 'magicast';
3
3
  export { addVitePlugin } from 'magicast/helpers';
4
4
 
5
- declare const features: readonly ["framework:solid", "auth:authjs", "rpc:telefunc", "server:hattip", "server:express"];
6
- declare const flags: Map<string | undefined, "framework:solid" | "auth:authjs" | "rpc:telefunc" | "server:hattip" | "server:express">;
5
+ declare const features: readonly ["framework:solid", "auth:authjs", "rpc:telefunc", "server:hattip", "server:express", "uikit:tailwindcss"];
6
+ declare const flags: Map<string | undefined, "framework:solid" | "auth:authjs" | "rpc:telefunc" | "server:hattip" | "server:express" | "uikit:tailwindcss">;
7
7
 
8
8
  type MaybeContentGetter = (() => string | Promise<string>) | undefined;
9
9
  interface VikeMeta {
10
10
  VIKE_MODULES?: (typeof features)[number][];
11
11
  }
12
12
 
13
- declare function transformAndGenerate(tree: ASTNode, meta: VikeMeta): string;
13
+ declare function transformAndGenerate(tree: ASTNode, meta: VikeMeta, options?: {
14
+ filepath?: string;
15
+ }): string;
14
16
 
15
17
  declare function loadAsJson(getter: MaybeContentGetter): Promise<any>;
16
18
  declare function loadAsMagicast<Exports extends object>(getter: MaybeContentGetter): Promise<ProxifiedModule<Exports>>;