@batijs/core 0.0.598 → 0.0.600

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.
@@ -0,0 +1 @@
1
+ import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),p=e(import.meta.url);export{f as a,p as i,s as n,d as o,l as r,c as t};
package/dist/config.d.ts CHANGED
@@ -1,30 +1,32 @@
1
- import * as Colorette from 'colorette';
2
- import { BatiSet } from '@batijs/features';
1
+ import * as Colorette from "colorette";
2
+ import { BatiSet } from "@batijs/features";
3
3
 
4
+ //#region src/types.d.ts
4
5
  interface VikeMeta {
5
- BATI: BatiSet;
6
- BATI_TEST?: boolean;
7
- BATI_SKIP_GIT?: boolean;
8
- BATI_IS_CI?: boolean;
6
+ BATI: BatiSet;
7
+ BATI_TEST?: boolean;
8
+ BATI_SKIP_GIT?: boolean;
9
+ BATI_IS_CI?: boolean;
9
10
  }
10
-
11
+ //#endregion
12
+ //#region src/config.d.ts
11
13
  interface BatiConfigStep {
12
- order?: number;
13
- step: string;
14
- type: "command" | "text";
14
+ order?: number;
15
+ step: string;
16
+ type: "command" | "text";
15
17
  }
16
18
  interface BatiKnipConfig {
17
- entry?: string[];
18
- ignoreDependencies?: string[];
19
- ignore?: string[];
20
- vite?: boolean;
19
+ entry?: string[];
20
+ ignoreDependencies?: string[];
21
+ ignore?: string[];
22
+ vite?: boolean;
21
23
  }
22
24
  interface BatiConfig {
23
- if?: (meta: VikeMeta, packageManager?: string) => boolean;
24
- enforce?: "pre" | "post";
25
- nextSteps?: (meta: VikeMeta, packageManager: string, utils: typeof Colorette) => BatiConfigStep[];
26
- knip?: BatiKnipConfig;
25
+ if?: (meta: VikeMeta, packageManager?: string) => boolean;
26
+ enforce?: "pre" | "post";
27
+ nextSteps?: (meta: VikeMeta, packageManager: string, utils: typeof Colorette) => BatiConfigStep[];
28
+ knip?: BatiKnipConfig;
27
29
  }
28
30
  declare function defineConfig<T extends BatiConfig>(config: T): T;
29
-
30
- export { type BatiConfig, type BatiConfigStep, type BatiKnipConfig, defineConfig };
31
+ //#endregion
32
+ export { BatiConfig, BatiConfigStep, BatiKnipConfig, type VikeMeta, defineConfig };
package/dist/config.js CHANGED
@@ -1 +1 @@
1
- function t(e,n){if(!e)throw new Error(n)}function p(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"),"knip"in e&&(t(typeof e.knip=="object"&&e.knip!==null,"'knip' must be an object"),"entry"in e.knip&&t(Array.isArray(e.knip.entry),"'knip.entry' must be an array"),"ignoreDependencies"in e.knip&&t(Array.isArray(e.knip.ignoreDependencies),"'knip.ignoreDependencies' must be an array"),"ignore"in e.knip&&t(Array.isArray(e.knip.ignore),"'knip.ignore' must be an array"),"vite"in e.knip&&t(typeof e.knip.vite=="boolean","'knip.vite' must be a boolean")),e}export{p as defineConfig};
1
+ function e(e,t){if(!e)throw Error(t)}function t(t){return`enforce`in t&&e(t.enforce===`pre`||t.enforce===`post`,`'enforce' must be 'pre' or 'post', was ${t.enforce}`),`if`in t&&e(typeof t.if==`function`,`'if' must be a function`),`nextSteps`in t&&e(typeof t.nextSteps==`function`,`'nextSteps' must be a function`),`knip`in t&&(e(typeof t.knip==`object`&&t.knip!==null,`'knip' must be an object`),`entry`in t.knip&&e(Array.isArray(t.knip.entry),`'knip.entry' must be an array`),`ignoreDependencies`in t.knip&&e(Array.isArray(t.knip.ignoreDependencies),`'knip.ignoreDependencies' must be an array`),`ignore`in t.knip&&e(Array.isArray(t.knip.ignore),`'knip.ignore' must be an array`),`vite`in t.knip&&e(typeof t.knip.vite==`boolean`,`'knip.vite' must be a boolean`)),t}export{t as defineConfig};