@batijs/cli 0.0.529 → 0.0.531
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/boilerplates/@batijs/auth0/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +2 -2
- package/dist/boilerplates/@batijs/authjs/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -4
- package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +11 -4
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +2 -2
- package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +0 -1
- package/dist/boilerplates/@batijs/d1/files/global.d.ts +3 -8
- package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -1
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/todos.ts +0 -2
- package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +1 -2
- package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +0 -1
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -1
- package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +2 -0
- package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +2 -2
- package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +7 -5
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +2 -2
- package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +0 -1
- package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -1
- package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +0 -1
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -1
- package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +1 -2
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
- package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +2 -2
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +7 -5
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +4 -1
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +0 -1
- package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +0 -1
- package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +0 -1
- package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
- package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -1
- package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +2 -3
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +0 -1
- package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +2 -2
- package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
- package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
- package/dist/{chunk-F525H6YP.js → chunk-VIDUWABF.js} +6 -6
- package/dist/index.js +71 -15
- package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
- package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
- package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/cloudflare/files/worker-configuration.d.ts +0 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +0 -19
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vercel/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
i1s
|
|
7
|
-
} from "../../../../../chunk-
|
|
7
|
+
} from "../../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../../chunk-
|
|
9
|
+
import "../../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
|
|
12
12
|
async function getViteConfig(props) {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
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;
|
|
6
|
+
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;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
t1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
r1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
i1s,
|
|
7
7
|
iQn
|
|
8
|
-
} from "../../../../chunk-
|
|
8
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/vue/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
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;
|
|
6
|
+
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;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-VIDUWABF.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/vue-sentry/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -17,6 +17,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
17
17
|
var __commonJS = (cb, mod) => function __require2() {
|
|
18
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
19
|
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
20
24
|
var __copyProps = (to, from, except, desc) => {
|
|
21
25
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
26
|
for (let key of __getOwnPropNames(from))
|
|
@@ -37,5 +41,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
41
|
export {
|
|
38
42
|
__require,
|
|
39
43
|
__commonJS,
|
|
44
|
+
__export,
|
|
40
45
|
__toESM
|
|
41
46
|
};
|
|
@@ -41282,7 +41282,7 @@ var S_t = o((hAs, TAr) => {
|
|
|
41282
41282
|
return c;
|
|
41283
41283
|
}
|
|
41284
41284
|
static async loadJiti() {
|
|
41285
|
-
let { createJiti: e } = await import("./jiti-ZW3ADF2F-
|
|
41285
|
+
let { createJiti: e } = await import("./jiti-ZW3ADF2F-2SLKRUEN.js"), n2 = gAr().version;
|
|
41286
41286
|
return { createJiti: e, version: n2 };
|
|
41287
41287
|
}
|
|
41288
41288
|
static async locateConfigFileToUse({ useConfigFile: e, cwd: n2, fromDirectory: i = n2 }) {
|
|
@@ -41368,7 +41368,7 @@ var IAr = o((yAs, NAr) => {
|
|
|
41368
41368
|
return iTi(BT.sep === "\\" ? oge(t2) : t2);
|
|
41369
41369
|
}
|
|
41370
41370
|
async function hTi({ basePath: t2, pattern: e }) {
|
|
41371
|
-
let n2 = false, { hfs: i } = await import("./src-5HGZFBZ3-
|
|
41371
|
+
let n2 = false, { hfs: i } = await import("./src-5HGZFBZ3-CGUDMVWF.js"), a = oge(BT.relative(t2, e)), c = new xAr(a, CAr), p2 = { directoryFilter(f) {
|
|
41372
41372
|
return !n2 && c.match(f.path, true);
|
|
41373
41373
|
}, entryFilter(f) {
|
|
41374
41374
|
return n2 || f.isDirectory ? false : c.match(f.path) ? (n2 = true, true) : false;
|
|
@@ -41380,7 +41380,7 @@ var IAr = o((yAs, NAr) => {
|
|
|
41380
41380
|
let c = /* @__PURE__ */ new Map(), p2 = e.map((T, b) => {
|
|
41381
41381
|
let E = oge(BT.relative(t2, T));
|
|
41382
41382
|
return c.set(E, e[b]), new xAr(E, CAr);
|
|
41383
|
-
}), f = /* @__PURE__ */ new Set([...c.keys()]), { hfs: _ } = await import("./src-5HGZFBZ3-
|
|
41383
|
+
}), f = /* @__PURE__ */ new Set([...c.keys()]), { hfs: _ } = await import("./src-5HGZFBZ3-CGUDMVWF.js"), g = _.walk(t2, { async directoryFilter(T) {
|
|
41384
41384
|
if (!p2.some((C) => C.match(T.path, true))) return false;
|
|
41385
41385
|
let b = BT.resolve(t2, T.path);
|
|
41386
41386
|
return !(await i.loadConfigArrayForDirectory(b)).isDirectoryIgnored(b);
|
|
@@ -208790,7 +208790,7 @@ function d0t(t2, e, n2, i, a, c) {
|
|
|
208790
208790
|
t2.report({ node: n2, message: "bati/as-expression-if", *fix(g) {
|
|
208791
208791
|
let y, T = false;
|
|
208792
208792
|
for (let b of _) {
|
|
208793
|
-
if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw
|
|
208793
|
+
if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw new Error("Linter: Malformed BATI.If members type");
|
|
208794
208794
|
let E = "value" in b.key ? b.key.value : b.key.name, C = e.text.slice(b.typeAnnotation.typeAnnotation.range[0], b.typeAnnotation.typeAnnotation.range[1]);
|
|
208795
208795
|
if (E === "_") {
|
|
208796
208796
|
y = C;
|
|
@@ -208801,7 +208801,7 @@ function d0t(t2, e, n2, i, a, c) {
|
|
|
208801
208801
|
break;
|
|
208802
208802
|
}
|
|
208803
208803
|
}
|
|
208804
|
-
T || (y ? yield g.replaceTextRange(f, c(y, p2)) : yield g.removeRange(f));
|
|
208804
|
+
T || (y ? yield g.replaceTextRange(f, c(y, p2)) : n2.parent?.parent?.type === "Identifier" ? yield g.removeRange([f[0] - 2, f[1]]) : yield g.removeRange(f));
|
|
208805
208805
|
} });
|
|
208806
208806
|
} else throw new Error("Linter: Malformed BATI.If type");
|
|
208807
208807
|
break;
|
|
@@ -209320,7 +209320,7 @@ async function Sas(t2, e, n2) {
|
|
|
209320
209320
|
}
|
|
209321
209321
|
return !e.BATI.has("eslint") && qzr.test(c) && (c = c.replace(qzr, ""), f = true), !e.BATI.has("biome") && Vzr.test(c) && (c = c.replace(Vzr, ""), f = true), { code: f ? await Unt(c, n2) : c, context: p2 };
|
|
209322
209322
|
}
|
|
209323
|
-
var SSt = { name: "@batijs/core", version: "0.0.
|
|
209323
|
+
var SSt = { name: "@batijs/core", version: "0.0.531", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.0", "@typescript-eslint/utils": "^8.48.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.13", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
|
|
209324
209324
|
function xas() {
|
|
209325
209325
|
return process.env.npm_config_user_agent ? Cas(process.env.npm_config_user_agent) : { name: "npm", run: "npm run" };
|
|
209326
209326
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,13 +10,14 @@ import {
|
|
|
10
10
|
jMs,
|
|
11
11
|
prr,
|
|
12
12
|
xas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VIDUWABF.js";
|
|
14
14
|
import "./chunk-IAWYWZSL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
|
+
__export,
|
|
17
18
|
__require,
|
|
18
19
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IHX3I5SM.js";
|
|
20
21
|
|
|
21
22
|
// ../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js
|
|
22
23
|
var require_cli_width = __commonJS({
|
|
@@ -4061,7 +4062,7 @@ function createConsola2(options = {}) {
|
|
|
4061
4062
|
defaults: { level },
|
|
4062
4063
|
stdout: process.stdout,
|
|
4063
4064
|
stderr: process.stderr,
|
|
4064
|
-
prompt: (...args) => import("./prompt-
|
|
4065
|
+
prompt: (...args) => import("./prompt-YBELZKBA.js").then((m) => m.prompt(...args)),
|
|
4065
4066
|
reporters: options.reporters || [
|
|
4066
4067
|
options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
|
|
4067
4068
|
],
|
|
@@ -4535,6 +4536,52 @@ async function runMain(cmd, opts = {}) {
|
|
|
4535
4536
|
}
|
|
4536
4537
|
|
|
4537
4538
|
// ../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.js
|
|
4539
|
+
var colorette_exports = {};
|
|
4540
|
+
__export(colorette_exports, {
|
|
4541
|
+
bgBlack: () => bgBlack,
|
|
4542
|
+
bgBlackBright: () => bgBlackBright,
|
|
4543
|
+
bgBlue: () => bgBlue,
|
|
4544
|
+
bgBlueBright: () => bgBlueBright,
|
|
4545
|
+
bgCyan: () => bgCyan,
|
|
4546
|
+
bgCyanBright: () => bgCyanBright,
|
|
4547
|
+
bgGreen: () => bgGreen,
|
|
4548
|
+
bgGreenBright: () => bgGreenBright,
|
|
4549
|
+
bgMagenta: () => bgMagenta,
|
|
4550
|
+
bgMagentaBright: () => bgMagentaBright,
|
|
4551
|
+
bgRed: () => bgRed,
|
|
4552
|
+
bgRedBright: () => bgRedBright,
|
|
4553
|
+
bgWhite: () => bgWhite,
|
|
4554
|
+
bgWhiteBright: () => bgWhiteBright,
|
|
4555
|
+
bgYellow: () => bgYellow,
|
|
4556
|
+
bgYellowBright: () => bgYellowBright,
|
|
4557
|
+
black: () => black,
|
|
4558
|
+
blackBright: () => blackBright,
|
|
4559
|
+
blue: () => blue,
|
|
4560
|
+
blueBright: () => blueBright,
|
|
4561
|
+
bold: () => bold,
|
|
4562
|
+
createColors: () => createColors2,
|
|
4563
|
+
cyan: () => cyan,
|
|
4564
|
+
cyanBright: () => cyanBright,
|
|
4565
|
+
dim: () => dim,
|
|
4566
|
+
gray: () => gray,
|
|
4567
|
+
green: () => green,
|
|
4568
|
+
greenBright: () => greenBright,
|
|
4569
|
+
hidden: () => hidden,
|
|
4570
|
+
inverse: () => inverse,
|
|
4571
|
+
isColorSupported: () => isColorSupported2,
|
|
4572
|
+
italic: () => italic,
|
|
4573
|
+
magenta: () => magenta,
|
|
4574
|
+
magentaBright: () => magentaBright,
|
|
4575
|
+
red: () => red,
|
|
4576
|
+
redBright: () => redBright,
|
|
4577
|
+
reset: () => reset,
|
|
4578
|
+
strikethrough: () => strikethrough,
|
|
4579
|
+
underline: () => underline,
|
|
4580
|
+
white: () => white,
|
|
4581
|
+
whiteBright: () => whiteBright,
|
|
4582
|
+
yellow: () => yellow,
|
|
4583
|
+
yellowBright: () => yellowBright
|
|
4584
|
+
});
|
|
4538
4585
|
import * as tty2 from "tty";
|
|
4539
4586
|
var {
|
|
4540
4587
|
env: env2 = {},
|
|
@@ -4652,7 +4699,7 @@ var {
|
|
|
4652
4699
|
// package.json
|
|
4653
4700
|
var package_default = {
|
|
4654
4701
|
name: "@batijs/cli",
|
|
4655
|
-
version: "0.0.
|
|
4702
|
+
version: "0.0.531",
|
|
4656
4703
|
type: "module",
|
|
4657
4704
|
scripts: {
|
|
4658
4705
|
"check-types": "tsc --noEmit",
|
|
@@ -4806,7 +4853,7 @@ function printInit() {
|
|
|
4806
4853
|
\u{1F528} ${cyan("Vike Scaffolder")} \u{1F528} ${gray(`v${version}`)}
|
|
4807
4854
|
`);
|
|
4808
4855
|
}
|
|
4809
|
-
async function printOK(dist, flags2) {
|
|
4856
|
+
async function printOK(dist, flags2, nextSteps) {
|
|
4810
4857
|
const indent = 1;
|
|
4811
4858
|
const list = prr("-", gray, indent);
|
|
4812
4859
|
const cmd = prr("$", gray, indent);
|
|
@@ -4822,7 +4869,15 @@ async function printOK(dist, flags2) {
|
|
|
4822
4869
|
${bold("Next steps:")}`);
|
|
4823
4870
|
console.log(cmd(`cd ${distPretty}`));
|
|
4824
4871
|
console.log(cmd(`${pm.name} install`));
|
|
4825
|
-
if (
|
|
4872
|
+
if (nextSteps.length > 0) {
|
|
4873
|
+
for (const step of nextSteps) {
|
|
4874
|
+
if (step.type === "command") {
|
|
4875
|
+
console.log(cmd(step.step));
|
|
4876
|
+
} else {
|
|
4877
|
+
console.log(prr("\u2022\uFE0F", gray, indent)(step.step));
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
} else if (await hasRemainingSteps(dist)) {
|
|
4826
4881
|
console.log(prr("\u2022\uFE0F", gray, indent)(`Check ${bold("TODO.md")} for remaining steps`));
|
|
4827
4882
|
}
|
|
4828
4883
|
console.log(cmd(`${pm.run} dev`));
|
|
@@ -5091,14 +5146,13 @@ async function run() {
|
|
|
5091
5146
|
if (b2.config.enforce === "post") return -1;
|
|
5092
5147
|
return 0;
|
|
5093
5148
|
});
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
}
|
|
5149
|
+
const filteredBoilerplates = boilerplates.filter((bl) => testFlags(meta, bl));
|
|
5150
|
+
for (const bl of filteredBoilerplates) {
|
|
5151
|
+
if (bl.subfolders.includes("files")) {
|
|
5152
|
+
sources.push(join(dir, bl.folder, "files"));
|
|
5153
|
+
}
|
|
5154
|
+
if (bl.subfolders.includes("hooks")) {
|
|
5155
|
+
hooks.push(join(dir, bl.folder, "hooks"));
|
|
5102
5156
|
}
|
|
5103
5157
|
}
|
|
5104
5158
|
const hooksMap = await retrieveHooks(hooks);
|
|
@@ -5115,7 +5169,9 @@ async function run() {
|
|
|
5115
5169
|
if (!args["skip-git"]) {
|
|
5116
5170
|
gitInit(args.project);
|
|
5117
5171
|
}
|
|
5118
|
-
|
|
5172
|
+
const nextSteps = filteredBoilerplates.flatMap((b2) => b2.config.nextSteps?.(meta, pm.run, colorette_exports)).filter(Boolean);
|
|
5173
|
+
nextSteps.sort((s2) => s2.order ?? 0);
|
|
5174
|
+
await printOK(args.project, flags2, nextSteps);
|
|
5119
5175
|
}
|
|
5120
5176
|
});
|
|
5121
5177
|
await runMain(main2);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-IHX3I5SM.js";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
8
8
|
import "util";
|
|
@@ -5,7 +5,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
n
|
|
7
7
|
} from "./chunk-IAWYWZSL.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-IHX3I5SM.js";
|
|
9
9
|
|
|
10
10
|
// ../core/dist/src-5HGZFBZ3.js
|
|
11
11
|
import { createRequire as BATI_core_createRequire } from "module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.531",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"typescript": "^5.9.3",
|
|
20
20
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
21
21
|
"vite": "^7.2.4",
|
|
22
|
-
"@batijs/
|
|
23
|
-
"@batijs/
|
|
22
|
+
"@batijs/build": "0.0.531",
|
|
23
|
+
"@batijs/compile": "0.0.531"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/
|
|
27
|
-
"@batijs/
|
|
26
|
+
"@batijs/features": "0.0.531",
|
|
27
|
+
"@batijs/core": "0.0.531"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./cli.js",
|
|
30
30
|
"exports": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// TODO: generate this file by running `$ wranger types` — see TODO.md
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
-
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
r1s
|
|
7
|
-
} from "../../../../chunk-F525H6YP.js";
|
|
8
|
-
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
|
-
|
|
11
|
-
// ../../boilerplates/d1/dist/files/$tsconfig.json.js
|
|
12
|
-
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await r1s(props);
|
|
14
|
-
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "@cloudflare/workers-types"];
|
|
15
|
-
return tsConfig;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
getTsConfig as default
|
|
19
|
-
};
|