@batijs/cli 0.0.528 → 0.0.530
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/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -2
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -4
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +10 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -5
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -2
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +1 -1
- 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/files/$package.json.js +1 -2
- 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/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- 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/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +2 -0
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -2
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.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/files/$package.json.js +1 -2
- 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/files/global.d.ts +1 -2
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -2
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- 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/files/$package.json.js +1 -2
- 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/files/$package.json.js +1 -2
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +0 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/{chunk-G46CNRAD.js → chunk-L2AHUKWS.js} +3 -3
- package/dist/index.js +9 -2
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +0 -19
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { getDbFromRuntime } from "@batijs/d1/database/d1/helpers";
|
|
4
4
|
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
5
5
|
import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
6
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
7
6
|
import { enhance, type UniversalMiddleware } from "@universal-middleware/core";
|
|
8
7
|
|
|
9
8
|
//# BATI.hasDatabase
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
import { type UniversalMiddleware } from "@universal-middleware/core";
|
|
5
4
|
declare global {
|
|
6
5
|
namespace Universal {
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-L2AHUKWS.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -52,7 +52,6 @@ var require_package = __commonJS({
|
|
|
52
52
|
license: "MIT",
|
|
53
53
|
devDependencies: {
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@cloudflare/workers-types": "^4.20251125.0",
|
|
56
55
|
"@types/node": "^20.19.25",
|
|
57
56
|
"@universal-middleware/core": "^0.4.13",
|
|
58
57
|
vike: "^0.4.247",
|
|
@@ -5,7 +5,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
|
5
5
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
6
6
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
7
7
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
8
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
9
8
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
10
9
|
|
|
11
10
|
export const createTodoHandler: UniversalHandler<
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
import { type UniversalHandler } from "@universal-middleware/core";
|
|
5
4
|
export declare const createTodoHandler: UniversalHandler<Universal.Context & BATI.If<{
|
|
6
5
|
'BATI.has("sqlite") && !BATI.hasD1': {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
|
|
5
4
|
//# BATI.hasDatabase
|
|
6
5
|
declare global {
|
|
7
6
|
namespace Vike {
|
|
8
|
-
interface
|
|
7
|
+
interface PageContextServer {
|
|
9
8
|
db: BATI.If<{
|
|
10
9
|
'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
|
|
11
10
|
'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-L2AHUKWS.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,7 +51,6 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@cloudflare/workers-types": "^4.20251125.0",
|
|
55
54
|
"@types/node": "^20.19.25",
|
|
56
55
|
"@universal-middleware/core": "^0.4.13",
|
|
57
56
|
telefunc: "^0.2.17",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
|
|
5
4
|
//# BATI.hasDatabase
|
|
6
5
|
declare module "telefunc" {
|
|
@@ -16,3 +15,7 @@ declare module "telefunc" {
|
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
}
|
|
18
|
+
|
|
19
|
+
//# BATI.has("REMOVE-COMMENT") || "remove-comments-only"
|
|
20
|
+
// biome-ignore lint/complexity/noUselessEmptyExport: ensure that the file is considered as a module
|
|
21
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
5
4
|
import { telefunc } from "telefunc";
|
|
6
5
|
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-L2AHUKWS.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,7 +51,6 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@cloudflare/workers-types": "^4.20251125.0",
|
|
55
54
|
"@trpc/client": "^11.7.2",
|
|
56
55
|
"@trpc/server": "^11.7.2",
|
|
57
56
|
"@types/node": "^20.19.25",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
|
5
4
|
import { enhance, type Get, type UniversalHandler } from "@universal-middleware/core";
|
|
6
5
|
import { appRouter } from "../trpc/server";
|
|
@@ -3,7 +3,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
|
3
3
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
4
4
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
5
5
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
6
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
7
6
|
import { initTRPC } from "@trpc/server";
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const trpcHandler: (endpoint: string) => ((request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
|
|
1
|
+
export declare const trpcHandler: (endpoint: string) => ((request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
|
|
2
2
|
name: string;
|
|
3
3
|
path: string;
|
|
4
4
|
method: ("GET" | "POST")[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
|
|
2
2
|
ctx: object & {
|
|
3
|
-
db: ReturnType<
|
|
3
|
+
db: ReturnType<any>;
|
|
4
4
|
} & {
|
|
5
|
-
db: ReturnType<
|
|
5
|
+
db: ReturnType<any>;
|
|
6
6
|
} & {
|
|
7
|
-
db: ReturnType<
|
|
7
|
+
db: ReturnType<any>;
|
|
8
8
|
} & {
|
|
9
|
-
db:
|
|
9
|
+
db: D1Database;
|
|
10
10
|
};
|
|
11
11
|
meta: object;
|
|
12
12
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
2
2
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
3
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
4
3
|
/**
|
|
5
4
|
* Export reusable router and procedure helpers
|
|
6
5
|
* that can be used throughout the router
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
n1s
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-L2AHUKWS.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -51,7 +51,6 @@ var require_package = __commonJS({
|
|
|
51
51
|
license: "MIT",
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
|
-
"@cloudflare/workers-types": "^4.20251125.0",
|
|
55
54
|
"@ts-rest/core": "^3.52.1",
|
|
56
55
|
"@ts-rest/serverless": "^3.52.1",
|
|
57
56
|
"@types/node": "^20.19.25",
|
|
@@ -4,7 +4,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
|
|
|
4
4
|
import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
|
|
5
5
|
import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
6
6
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
7
|
-
import type { D1Database } from "@cloudflare/workers-types";
|
|
8
7
|
import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
|
|
9
8
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
10
9
|
import { contract } from "../ts-rest/contract";
|
|
@@ -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.530", 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,7 +10,7 @@ import {
|
|
|
10
10
|
jMs,
|
|
11
11
|
prr,
|
|
12
12
|
xas
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-L2AHUKWS.js";
|
|
14
14
|
import "./chunk-IAWYWZSL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
@@ -226,6 +226,13 @@ async function mergeDts({
|
|
|
226
226
|
const res = await Sas(currentAst.generate().code, meta, {
|
|
227
227
|
filepath
|
|
228
228
|
});
|
|
229
|
+
console.log({
|
|
230
|
+
filepath,
|
|
231
|
+
code: currentAst.generate().code,
|
|
232
|
+
clean: res.code,
|
|
233
|
+
previousContent,
|
|
234
|
+
fileContent
|
|
235
|
+
});
|
|
229
236
|
return clearExports(res.code, meta);
|
|
230
237
|
}
|
|
231
238
|
function clearExports(code, meta) {
|
|
@@ -4652,7 +4659,7 @@ var {
|
|
|
4652
4659
|
// package.json
|
|
4653
4660
|
var package_default = {
|
|
4654
4661
|
name: "@batijs/cli",
|
|
4655
|
-
version: "0.0.
|
|
4662
|
+
version: "0.0.530",
|
|
4656
4663
|
type: "module",
|
|
4657
4664
|
scripts: {
|
|
4658
4665
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.530",
|
|
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/compile": "0.0.530",
|
|
23
|
+
"@batijs/build": "0.0.530"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/core": "0.0.
|
|
27
|
-
"@batijs/features": "0.0.
|
|
26
|
+
"@batijs/core": "0.0.530",
|
|
27
|
+
"@batijs/features": "0.0.530"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./cli.js",
|
|
30
30
|
"exports": {
|
|
@@ -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-G46CNRAD.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
|
-
};
|