@batijs/core 0.0.599 → 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.
- package/dist/chunk-BjEoQXZ0.js +1 -0
- package/dist/config.d.ts +22 -20
- package/dist/config.js +1 -1
- package/dist/index.d.ts +1214 -121
- package/dist/index.js +761 -871
- package/dist/jiti-Btatpty8.js +9 -0
- package/dist/src-N2vfvWjd.js +1 -0
- package/package.json +10 -10
- package/dist/chunk-C2T5VISX.js +0 -9
- package/dist/jiti-PKZMRTZN.js +0 -22
- package/dist/src-5HGZFBZ3.js +0 -9
|
@@ -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
|
|
2
|
-
import { BatiSet } from
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
order?: number;
|
|
15
|
+
step: string;
|
|
16
|
+
type: "command" | "text";
|
|
15
17
|
}
|
|
16
18
|
interface BatiKnipConfig {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
entry?: string[];
|
|
20
|
+
ignoreDependencies?: string[];
|
|
21
|
+
ignore?: string[];
|
|
22
|
+
vite?: boolean;
|
|
21
23
|
}
|
|
22
24
|
interface BatiConfig {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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 {
|
|
31
|
+
//#endregion
|
|
32
|
+
export { BatiConfig, BatiConfigStep, BatiKnipConfig, type VikeMeta, defineConfig };
|
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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};
|