@batijs/cli 0.0.580 → 0.0.583
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 -1
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -1
- 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 +11 -0
- 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 +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -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 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +1 -1
- package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- 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/eslint/files/$package.json.js +1 -1
- 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 -1
- package/dist/boilerplates/@batijs/kysely/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/kysely/files/$package.json.js +1 -1
- 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/oxlint/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/prettier/files/.prettierrc +3 -0
- 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 +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +1 -0
- 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 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +1 -0
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -0
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +1 -0
- 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-O3FMMPWU.js → chunk-WIRXYZ5Z.js} +1 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
|
@@ -65,7 +65,7 @@ export async function getSession(req: Request, config: Omit<AuthConfig, "raw">):
|
|
|
65
65
|
throw new Error(typeof data === "object" && "message" in data ? (data.message as string) : undefined);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Note: You can also directly use your server
|
|
68
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
69
69
|
/**
|
|
70
70
|
* Add Auth.js session to the context.
|
|
71
71
|
* @link {@see https://authjs.dev/getting-started/session-management/get-session}
|
|
@@ -93,6 +93,7 @@ export const authjsSessionMiddleware: UniversalMiddleware = enhance(
|
|
|
93
93
|
},
|
|
94
94
|
);
|
|
95
95
|
|
|
96
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
96
97
|
/**
|
|
97
98
|
* Auth.js route
|
|
98
99
|
* @link {@see https://authjs.dev/getting-started/installation}
|
|
@@ -27,6 +27,17 @@ async function getBiomeJson(props) {
|
|
|
27
27
|
additionalLinter.domains = {
|
|
28
28
|
react: "recommended"
|
|
29
29
|
};
|
|
30
|
+
additionalConfig.overrides ??= [];
|
|
31
|
+
additionalConfig.overrides.push({
|
|
32
|
+
includes: ["**/+data.ts", "**/+data.js"],
|
|
33
|
+
linter: {
|
|
34
|
+
rules: {
|
|
35
|
+
correctness: {
|
|
36
|
+
useHookAtTopLevel: "off"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
30
41
|
}
|
|
31
42
|
if (props.meta.BATI.has("solid")) {
|
|
32
43
|
additionalLinter.domains = {
|
|
@@ -22,7 +22,7 @@ declare global {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// Note: You can also directly use your server
|
|
25
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
26
26
|
/**
|
|
27
27
|
* Add the `db` object to the context.
|
|
28
28
|
*/
|
|
@@ -9,6 +9,7 @@ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
|
9
9
|
import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
|
|
10
10
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
11
11
|
|
|
12
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
12
13
|
export const createTodoHandler: UniversalHandler<
|
|
13
14
|
Universal.Context &
|
|
14
15
|
BATI.If<{
|
|
@@ -4,6 +4,7 @@ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
|
|
|
4
4
|
import { enhance, type UniversalHandler } from "@universal-middleware/core";
|
|
5
5
|
import { telefunc } from "telefunc";
|
|
6
6
|
|
|
7
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
7
8
|
export const telefuncHandler: UniversalHandler = enhance(
|
|
8
9
|
async (request, context, runtime) => {
|
|
9
10
|
const httpResponse = await telefunc({
|
|
@@ -4,6 +4,7 @@ import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
|
|
|
4
4
|
import { enhance, type Get, type UniversalHandler } from "@universal-middleware/core";
|
|
5
5
|
import { appRouter } from "../trpc/server";
|
|
6
6
|
|
|
7
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
7
8
|
export const trpcHandler = ((endpoint) =>
|
|
8
9
|
enhance(
|
|
9
10
|
(request, context, runtime) => {
|
|
@@ -58,6 +58,7 @@ const router = tsr
|
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
// Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
|
|
61
62
|
export const tsRestHandler: UniversalHandler = enhance(
|
|
62
63
|
async (request, ctx, runtime) =>
|
|
63
64
|
fetchRequestHandler({
|
|
@@ -207783,7 +207783,7 @@ async function s_s(e2, t, r2) {
|
|
|
207783
207783
|
}
|
|
207784
207784
|
return !t.BATI.has("eslint") && mJr.test(l) && (l = l.replace(mJr, ""), f = true), !t.BATI.has("biome") && hJr.test(l) && (l = l.replace(hJr, ""), f = true), { code: f ? await Cst(l, r2) : l, context: u };
|
|
207785
207785
|
}
|
|
207786
|
-
var oxt = { name: "@batijs/core", version: "0.0.
|
|
207786
|
+
var oxt = { name: "@batijs/core", version: "0.0.583", 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.30", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.55.0", "@typescript-eslint/utils": "^8.55.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.3", eslint: "^9.39.2", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.1.0", magicast: "^0.5.2", "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.8.1", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.21.0", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.18", "vue-eslint-parser": "^10.4.0", which: "^6.0.1", yaml: "^2.8.2" }, 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/"] };
|
|
207787
207787
|
function o_s() {
|
|
207788
207788
|
return process.env.npm_config_user_agent ? c_s(process.env.npm_config_user_agent) : { name: "npm", run: "npm run", exec: "npx" };
|
|
207789
207789
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
fhe,
|
|
11
11
|
o_s,
|
|
12
12
|
s_s
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WIRXYZ5Z.js";
|
|
14
14
|
import "./chunk-IAWYWZSL.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
@@ -3482,7 +3482,7 @@ function kebabCase2(str, joiner) {
|
|
|
3482
3482
|
// package.json
|
|
3483
3483
|
var package_default = {
|
|
3484
3484
|
name: "@batijs/cli",
|
|
3485
|
-
version: "0.0.
|
|
3485
|
+
version: "0.0.583",
|
|
3486
3486
|
type: "module",
|
|
3487
3487
|
scripts: {
|
|
3488
3488
|
"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.583",
|
|
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",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"typescript": "^5.9.3",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
22
22
|
"vite": "^7.3.1",
|
|
23
|
-
"@batijs/build": "0.0.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
23
|
+
"@batijs/build": "0.0.583",
|
|
24
|
+
"@batijs/compile": "0.0.583"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.583",
|
|
28
|
+
"@batijs/features": "0.0.583"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./cli.js",
|
|
31
31
|
"exports": {
|