@batijs/core 0.0.259 → 0.0.261
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 +3 -3
- package/dist/index.js +500 -500
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BatiSet } from '@batijs/features';
|
|
2
2
|
import * as yaml from 'yaml';
|
|
3
3
|
import { ParseOptions, DocumentOptions, SchemaOptions, Document } from 'yaml';
|
|
4
4
|
export { Document as YAMLDocument } from 'yaml';
|
|
@@ -17,7 +17,7 @@ interface FileContext {
|
|
|
17
17
|
|
|
18
18
|
type ContentGetter = () => string | Promise<string>;
|
|
19
19
|
interface VikeMeta {
|
|
20
|
-
BATI:
|
|
20
|
+
BATI: BatiSet;
|
|
21
21
|
BATI_TEST?: boolean;
|
|
22
22
|
}
|
|
23
23
|
type TransformerProps = {
|
|
@@ -73,7 +73,7 @@ declare function loadAsMagicast<Exports extends object>({ readfile, source, targ
|
|
|
73
73
|
declare function loadRelativeFileAsMagicast<Exports extends object>(relativePath: string, meta: Pick<ImportMeta, "url">): Promise<ProxifiedModule<Exports>>;
|
|
74
74
|
declare function loadYaml({ readfile, source, target }: TransformerProps, options?: ParseOptions & DocumentOptions & SchemaOptions): Promise<Document.Parsed<yaml.Alias.Parsed, true> | Document.Parsed<yaml.Scalar.Parsed, true> | Document.Parsed<yaml.YAMLMap.Parsed<yaml.ParsedNode, yaml.ParsedNode | null>, true> | Document.Parsed<yaml.YAMLSeq.Parsed<yaml.ParsedNode>, true>>;
|
|
75
75
|
|
|
76
|
-
declare const keys: readonly ["dev", "build", "preview", "lint", "format", "deploy"];
|
|
76
|
+
declare const keys: readonly ["dev", "build", "preview", "lint", "format", "deploy", "test"];
|
|
77
77
|
type Scripts = (typeof keys)[number];
|
|
78
78
|
type ValidScripts = Scripts | `${Scripts}:${string}`;
|
|
79
79
|
interface PackageJsonDeps {
|