@batijs/core 0.0.530 → 0.0.532

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/config.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as Colorette from 'colorette';
1
2
  import { BatiSet } from '@batijs/features';
2
3
 
3
4
  interface VikeMeta {
@@ -5,10 +6,16 @@ interface VikeMeta {
5
6
  BATI_TEST?: boolean;
6
7
  }
7
8
 
9
+ interface BatiConfigStep {
10
+ order?: number;
11
+ step: string;
12
+ type: "command" | "text";
13
+ }
8
14
  interface BatiConfig {
9
15
  if?: (meta: VikeMeta, packageManager?: string) => boolean;
10
16
  enforce?: "pre" | "post";
17
+ nextSteps?: (meta: VikeMeta, packageManager: string, utils: typeof Colorette) => BatiConfigStep[];
11
18
  }
12
19
  declare function defineConfig<T extends BatiConfig>(config: T): T;
13
20
 
14
- export { type BatiConfig, defineConfig };
21
+ export { type BatiConfig, type BatiConfigStep, defineConfig };
package/dist/config.js CHANGED
@@ -1 +1 @@
1
- function t(e,r){if(!e)throw new Error(r)}function i(e){return"enforce"in e&&t(e.enforce==="pre"||e.enforce==="post",`'enforce' must be 'pre' or 'post', was ${e.enforce}`),"if"in e&&t(typeof e.if=="function","'if' must be a function"),e}export{i as defineConfig};
1
+ function t(e,r){if(!e)throw new Error(r)}function i(e){return"enforce"in e&&t(e.enforce==="pre"||e.enforce==="post",`'enforce' must be 'pre' or 'post', was ${e.enforce}`),"if"in e&&t(typeof e.if=="function","'if' must be a function"),"nextSteps"in e&&t(typeof e.nextSteps=="function","'nextSteps' must be a function"),e}export{i as defineConfig};