@batijs/cli 0.0.244 → 0.0.246
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/authjs/files/$package.json.js +92 -0
- package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +14 -13
- package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +4 -2
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -4
- package/dist/boilerplates/@batijs/express/files/express-entry.ts +20 -18
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +5 -6
- package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +22 -54
- package/dist/boilerplates/@batijs/fastify/types/fastify-entry.d.ts +0 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +5 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +16 -18
- package/dist/boilerplates/@batijs/firebase-auth/types/server/firebase-auth-middleware.d.ts +8 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +4 -2
- package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +22 -33
- package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +0 -4
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +4 -3
- package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +22 -33
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -15
- package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +19 -17
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +4 -2
- package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +41 -45
- package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +22 -10
- package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +103 -0
- package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +3 -5
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +3 -5
- package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/shared-server/types/server/vike-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -3
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -5
- package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -3
- package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +3 -6
- package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +2 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +6 -0
- package/dist/{chunk-MFJ4ET44.js → chunk-FWD3UPBV.js} +5 -5
- package/dist/index.js +14 -14
- package/dist/{prompt-SUR66HP4.js → prompt-EYFUFJSI.js} +4 -4
- package/package.json +8 -8
|
@@ -4,43 +4,55 @@ import type { Session, User } from "lucia";
|
|
|
4
4
|
*
|
|
5
5
|
* @link {@see https://lucia-auth.com/guides/validate-session-cookies/}
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const luciaCsrfMiddleware: () => (request: Request) => Promise<Response | undefined>;
|
|
8
8
|
/**
|
|
9
|
-
* Validate session cookies middleware
|
|
9
|
+
* Validate session cookies middleware and set context
|
|
10
10
|
*
|
|
11
11
|
* @link {@see https://lucia-auth.com/guides/validate-session-cookies/}
|
|
12
12
|
*/
|
|
13
|
-
export declare
|
|
13
|
+
export declare const luciaAuthContextMiddleware: () => (request: Request, context: Universal.Context) => Promise<{
|
|
14
|
+
session: null;
|
|
15
|
+
user: null;
|
|
16
|
+
} | {
|
|
17
|
+
sessionId: string;
|
|
18
|
+
session: Session | null;
|
|
19
|
+
user: User | null;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Set Set-Cookie headers if in context
|
|
23
|
+
*/
|
|
24
|
+
export declare const luciaAuthCookieMiddleware: () => (_request: Request, context: {
|
|
14
25
|
session?: Session | null;
|
|
15
26
|
user?: User | null;
|
|
16
|
-
|
|
27
|
+
sessionId?: string | null;
|
|
28
|
+
}) => (response: Response) => Response;
|
|
17
29
|
/**
|
|
18
30
|
* Register user handler
|
|
19
31
|
*
|
|
20
32
|
* @link {@see https://lucia-auth.com/guides/email-and-password/basics#register-user}
|
|
21
33
|
*/
|
|
22
|
-
export declare
|
|
34
|
+
export declare const luciaAuthSignupHandler: () => (request: Request) => Promise<Response>;
|
|
23
35
|
/**
|
|
24
36
|
* Sign in user handler
|
|
25
37
|
*
|
|
26
38
|
* @link {@see https://lucia-auth.com/guides/email-and-password/basics#sign-in-user}
|
|
27
39
|
*/
|
|
28
|
-
export declare
|
|
40
|
+
export declare const luciaAuthLoginHandler: () => (request: Request) => Promise<Response>;
|
|
29
41
|
/**
|
|
30
42
|
* Log out user handler
|
|
31
43
|
*/
|
|
32
|
-
export declare
|
|
44
|
+
export declare const luciaAuthLogoutHandler: () => (_request: Request, context: {
|
|
33
45
|
session?: Session | null;
|
|
34
|
-
})
|
|
46
|
+
}) => Promise<Response>;
|
|
35
47
|
/**
|
|
36
48
|
* Github OAuth authorization handler
|
|
37
49
|
*
|
|
38
50
|
* @link {@see https://lucia-auth.com/guides/oauth/basics#creating-authorization-url}
|
|
39
51
|
*/
|
|
40
|
-
export declare
|
|
52
|
+
export declare const luciaGithubLoginHandler: () => () => Promise<Response>;
|
|
41
53
|
/**
|
|
42
54
|
* Github OAuth validate callback handler
|
|
43
55
|
*
|
|
44
56
|
* @link {@see https://lucia-auth.com/guides/oauth/basics#validate-callback}
|
|
45
57
|
*/
|
|
46
|
-
export declare
|
|
58
|
+
export declare const luciaGithubCallbackHandler: () => (request: Request) => Promise<Response>;
|
|
@@ -57,11 +57,11 @@ var require_package = __commonJS({
|
|
|
57
57
|
"cross-fetch": "^4.0.0",
|
|
58
58
|
react: "^18.3.1",
|
|
59
59
|
"react-dom": "^18.3.1",
|
|
60
|
-
tailwindcss: "^3.4.
|
|
60
|
+
tailwindcss: "^3.4.10",
|
|
61
61
|
typescript: "^5.5.4",
|
|
62
|
-
vike: "^0.4.
|
|
63
|
-
"vike-react": "^0.5.
|
|
64
|
-
vite: "^5.4.
|
|
62
|
+
vike: "^0.4.191",
|
|
63
|
+
"vike-react": "^0.5.3",
|
|
64
|
+
vite: "^5.4.2",
|
|
65
65
|
"vite-plugin-compiled-react": "^1.1.3"
|
|
66
66
|
},
|
|
67
67
|
dependencies: {
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
+
mod
|
|
25
|
+
));
|
|
26
|
+
|
|
27
|
+
// package.json
|
|
28
|
+
var require_package = __commonJS({
|
|
29
|
+
"package.json"(exports, module) {
|
|
30
|
+
module.exports = {
|
|
31
|
+
name: "@batijs/shared-server",
|
|
32
|
+
private: true,
|
|
33
|
+
version: "0.0.1",
|
|
34
|
+
description: "",
|
|
35
|
+
type: "module",
|
|
36
|
+
types: "./dist/index.d.ts",
|
|
37
|
+
scripts: {
|
|
38
|
+
"check-types": "tsc --noEmit",
|
|
39
|
+
build: "bati-compile-boilerplate"
|
|
40
|
+
},
|
|
41
|
+
keywords: [],
|
|
42
|
+
author: "",
|
|
43
|
+
license: "MIT",
|
|
44
|
+
devDependencies: {
|
|
45
|
+
"@batijs/compile": "workspace:*",
|
|
46
|
+
"@batijs/core": "workspace:*",
|
|
47
|
+
"@batijs/drizzle": "workspace:*",
|
|
48
|
+
"@batijs/features": "workspace:*",
|
|
49
|
+
"@batijs/shared-no-db": "workspace:*",
|
|
50
|
+
"@types/node": "^18.19.14",
|
|
51
|
+
"@universal-middleware/core": "^0.2.3",
|
|
52
|
+
vike: "^0.4.191",
|
|
53
|
+
vite: "^5.4.2"
|
|
54
|
+
},
|
|
55
|
+
files: [
|
|
56
|
+
"dist/"
|
|
57
|
+
],
|
|
58
|
+
bati: {
|
|
59
|
+
if: {
|
|
60
|
+
flag: {
|
|
61
|
+
$in: [
|
|
62
|
+
"h3",
|
|
63
|
+
"hattip",
|
|
64
|
+
"hono",
|
|
65
|
+
"express",
|
|
66
|
+
"fastify"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
exports: {
|
|
72
|
+
"./server/create-todo-handler": {
|
|
73
|
+
types: "./dist/types/server/create-todo-handler.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./server/vike-handler": {
|
|
76
|
+
types: "./dist/types/server/vike-handler.d.ts"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
typesVersions: {
|
|
80
|
+
"*": {
|
|
81
|
+
"server/create-todo-handler": [
|
|
82
|
+
"./dist/types/server/create-todo-handler.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"server/vike-handler": [
|
|
85
|
+
"./dist/types/server/vike-handler.d.ts"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// files/$package.json.ts
|
|
94
|
+
import { addDependency, loadAsJson } from "@batijs/core";
|
|
95
|
+
async function getPackageJson(props) {
|
|
96
|
+
const packageJson = await loadAsJson(props);
|
|
97
|
+
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
98
|
+
dependencies: ["@universal-middleware/core"]
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
getPackageJson as default
|
|
103
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
2
2
|
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
-
request: Request,
|
|
6
|
-
_context?: Context,
|
|
7
|
-
): Promise<Response> {
|
|
5
|
+
export const createTodoHandler: Get<[], UniversalHandler> = () => async (request) => {
|
|
8
6
|
// In a real case, user-provided data should ALWAYS be validated with tools like zod
|
|
9
7
|
const newTodo = (await request.json()) as { text: string };
|
|
10
8
|
|
|
@@ -21,4 +19,4 @@ export async function createTodoHandler<Context extends Record<string | number |
|
|
|
21
19
|
"content-type": "application/json",
|
|
22
20
|
},
|
|
23
21
|
});
|
|
24
|
-
}
|
|
22
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/*# BATI include-if-imported #*/
|
|
2
2
|
/// <reference lib="webworker" />
|
|
3
3
|
import { renderPage } from "vike/server";
|
|
4
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
-
request: Request,
|
|
7
|
-
context?: Context,
|
|
8
|
-
): Promise<Response> {
|
|
6
|
+
export const vikeHandler: Get<[], UniversalHandler> = () => async (request, context) => {
|
|
9
7
|
const pageContextInit = { ...context, urlOriginal: request.url, headersOriginal: request.headers };
|
|
10
8
|
const pageContext = await renderPage(pageContextInit);
|
|
11
9
|
const response = pageContext.httpResponse;
|
|
@@ -18,4 +16,4 @@ export async function vikeHandler<Context extends Record<string | number | symbo
|
|
|
18
16
|
status: response?.statusCode,
|
|
19
17
|
headers: response?.headers,
|
|
20
18
|
});
|
|
21
|
-
}
|
|
19
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const createTodoHandler: Get<[], UniversalHandler>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const vikeHandler: Get<[], UniversalHandler>;
|
|
@@ -49,12 +49,12 @@ var require_package = __commonJS({
|
|
|
49
49
|
"@batijs/ts-rest": "workspace:*",
|
|
50
50
|
"@types/node": "^18.19.14",
|
|
51
51
|
"cross-fetch": "^4.0.0",
|
|
52
|
-
"solid-js": "^1.8.
|
|
53
|
-
tailwindcss: "^3.4.
|
|
52
|
+
"solid-js": "^1.8.21",
|
|
53
|
+
tailwindcss: "^3.4.10",
|
|
54
54
|
typescript: "^5.5.4",
|
|
55
|
-
vike: "^0.4.
|
|
56
|
-
"vike-solid": "^0.7.
|
|
57
|
-
vite: "^5.4.
|
|
55
|
+
vike: "^0.4.191",
|
|
56
|
+
"vike-solid": "^0.7.2",
|
|
57
|
+
vite: "^5.4.2",
|
|
58
58
|
"vite-plugin-solid": "^2.10.2"
|
|
59
59
|
},
|
|
60
60
|
dependencies: {
|
|
@@ -46,9 +46,9 @@ var require_package = __commonJS({
|
|
|
46
46
|
autoprefixer: "^10.4.20",
|
|
47
47
|
daisyui: "^4.12.10",
|
|
48
48
|
postcss: "^8.4.41",
|
|
49
|
-
tailwindcss: "^3.4.
|
|
50
|
-
vike: "^0.4.
|
|
51
|
-
vite: "^5.4.
|
|
49
|
+
tailwindcss: "^3.4.10",
|
|
50
|
+
vike: "^0.4.191",
|
|
51
|
+
vite: "^5.4.2"
|
|
52
52
|
},
|
|
53
53
|
dependencies: {
|
|
54
54
|
"@batijs/core": "workspace:*"
|
|
@@ -46,9 +46,10 @@ var require_package = __commonJS({
|
|
|
46
46
|
"@batijs/shared-no-db": "workspace:*",
|
|
47
47
|
"@batijs/shared-todo": "workspace:*",
|
|
48
48
|
"@types/node": "^18.19.14",
|
|
49
|
+
"@universal-middleware/core": "^0.2.3",
|
|
49
50
|
telefunc: "^0.1.76",
|
|
50
|
-
vike: "^0.4.
|
|
51
|
-
vite: "^5.4.
|
|
51
|
+
vike: "^0.4.191",
|
|
52
|
+
vite: "^5.4.2"
|
|
52
53
|
},
|
|
53
54
|
dependencies: {
|
|
54
55
|
"@batijs/core": "workspace:*"
|
|
@@ -88,7 +89,7 @@ import { addDependency, loadAsJson } from "@batijs/core";
|
|
|
88
89
|
async function getPackageJson(props) {
|
|
89
90
|
const packageJson = await loadAsJson(props);
|
|
90
91
|
return addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
91
|
-
dependencies: ["telefunc"]
|
|
92
|
+
dependencies: ["telefunc", "@universal-middleware/core"]
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
export {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { telefunc } from "telefunc";
|
|
2
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
request: Request,
|
|
5
|
-
context?: Context,
|
|
6
|
-
): Promise<Response> {
|
|
4
|
+
export const telefuncHandler: Get<[], UniversalHandler> = () => async (request, context) => {
|
|
7
5
|
const httpResponse = await telefunc({
|
|
8
6
|
url: request.url.toString(),
|
|
9
7
|
method: request.method,
|
|
@@ -17,4 +15,4 @@ export async function telefuncHandler<Context extends Record<string | number | s
|
|
|
17
15
|
"content-type": contentType,
|
|
18
16
|
},
|
|
19
17
|
});
|
|
20
|
-
}
|
|
18
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const telefuncHandler: Get<[], UniversalHandler>;
|
|
@@ -44,9 +44,10 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@batijs/drizzle": "workspace:*",
|
|
46
46
|
"@batijs/shared-no-db": "workspace:*",
|
|
47
|
-
"@ts-rest/core": "^3.
|
|
48
|
-
"@ts-rest/serverless": "^3.
|
|
47
|
+
"@ts-rest/core": "^3.50.0",
|
|
48
|
+
"@ts-rest/serverless": "^3.50.0",
|
|
49
49
|
"@types/node": "^18.19.14",
|
|
50
|
+
"@universal-middleware/core": "^0.2.3",
|
|
50
51
|
zod: "^3.23.8"
|
|
51
52
|
},
|
|
52
53
|
dependencies: {
|
|
@@ -93,7 +94,7 @@ import { addDependency, loadAsJson } from "@batijs/core";
|
|
|
93
94
|
async function getPackageJson(props) {
|
|
94
95
|
const packageJson = await loadAsJson(props);
|
|
95
96
|
addDependency(packageJson, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default), {
|
|
96
|
-
dependencies: ["@ts-rest/core", "@ts-rest/serverless"],
|
|
97
|
+
dependencies: ["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"],
|
|
97
98
|
devDependencies: ["zod"]
|
|
98
99
|
});
|
|
99
100
|
packageJson.devDependencies.typescript = "~5.4.5";
|
|
@@ -2,6 +2,7 @@ import { drizzleDb } from "@batijs/drizzle/database/drizzleDb";
|
|
|
2
2
|
import { todoTable } from "@batijs/drizzle/database/schema/todos";
|
|
3
3
|
import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
|
|
4
4
|
import { contract } from "../ts-rest/contract";
|
|
5
|
+
import { Get, UniversalHandler } from "@universal-middleware/core";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* ts-rest route
|
|
@@ -33,14 +34,10 @@ const router = tsr.router(contract, {
|
|
|
33
34
|
},
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
_context?: Context,
|
|
39
|
-
): Promise<Response> {
|
|
40
|
-
return fetchRequestHandler({
|
|
37
|
+
export const tsRestHandler: Get<[], UniversalHandler> = () => async (request) =>
|
|
38
|
+
fetchRequestHandler({
|
|
41
39
|
request: new Request(request.url, request),
|
|
42
40
|
contract,
|
|
43
41
|
router,
|
|
44
42
|
options: {},
|
|
45
43
|
});
|
|
46
|
-
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Get, UniversalHandler } from "@universal-middleware/core";
|
|
2
|
+
export declare const tsRestHandler: Get<[], UniversalHandler>;
|
|
@@ -43,10 +43,10 @@ var require_package = __commonJS({
|
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.19.14",
|
|
46
|
-
"@vite-plugin-vercel/vike": "^
|
|
47
|
-
vike: "^0.4.
|
|
48
|
-
vite: "^5.4.
|
|
49
|
-
"vite-plugin-vercel": "^
|
|
46
|
+
"@vite-plugin-vercel/vike": "^9.0.1",
|
|
47
|
+
vike: "^0.4.191",
|
|
48
|
+
vite: "^5.4.2",
|
|
49
|
+
"vite-plugin-vercel": "^9.0.1"
|
|
50
50
|
},
|
|
51
51
|
dependencies: {
|
|
52
52
|
"@batijs/core": "workspace:*"
|
|
@@ -49,16 +49,16 @@ var require_package = __commonJS({
|
|
|
49
49
|
"@batijs/ts-rest": "workspace:*",
|
|
50
50
|
"@types/node": "^18.19.14",
|
|
51
51
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
52
|
-
"@vue/compiler-sfc": "^3.4.
|
|
53
|
-
"@vue/server-renderer": "^3.4.
|
|
52
|
+
"@vue/compiler-sfc": "^3.4.38",
|
|
53
|
+
"@vue/server-renderer": "^3.4.38",
|
|
54
54
|
"cross-fetch": "^4.0.0",
|
|
55
|
-
tailwindcss: "^3.4.
|
|
55
|
+
tailwindcss: "^3.4.10",
|
|
56
56
|
typescript: "^5.5.4",
|
|
57
57
|
"unplugin-vue-markdown": "^0.26.2",
|
|
58
|
-
vike: "^0.4.
|
|
59
|
-
"vike-vue": "^0.8.
|
|
60
|
-
vite: "^5.4.
|
|
61
|
-
vue: "^3.4.
|
|
58
|
+
vike: "^0.4.191",
|
|
59
|
+
"vike-vue": "^0.8.2",
|
|
60
|
+
vite: "^5.4.2",
|
|
61
|
+
vue: "^3.4.38",
|
|
62
62
|
"vue-gtag": "^2.0.1"
|
|
63
63
|
},
|
|
64
64
|
dependencies: {
|
|
@@ -408,8 +408,8 @@ function createConsola(options = {}) {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
// ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.06ad8a64.mjs
|
|
411
|
-
import { formatWithOptions } from "util";
|
|
412
|
-
import { sep } from "path";
|
|
411
|
+
import { formatWithOptions } from "node:util";
|
|
412
|
+
import { sep } from "node:path";
|
|
413
413
|
function parseStack(stack) {
|
|
414
414
|
const cwd = process.cwd() + sep;
|
|
415
415
|
const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
|
|
@@ -467,7 +467,7 @@ var BasicReporter = class {
|
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
// ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/utils.mjs
|
|
470
|
-
import * as tty from "tty";
|
|
470
|
+
import * as tty from "node:tty";
|
|
471
471
|
var {
|
|
472
472
|
env = {},
|
|
473
473
|
argv = [],
|
|
@@ -699,7 +699,7 @@ function box(text, _opts = {}) {
|
|
|
699
699
|
}
|
|
700
700
|
|
|
701
701
|
// ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.36c0034f.mjs
|
|
702
|
-
import process$1 from "process";
|
|
702
|
+
import process$1 from "node:process";
|
|
703
703
|
var providers = [
|
|
704
704
|
["APPVEYOR"],
|
|
705
705
|
["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
|
|
@@ -1037,7 +1037,7 @@ function createConsola2(options = {}) {
|
|
|
1037
1037
|
defaults: { level },
|
|
1038
1038
|
stdout: process.stdout,
|
|
1039
1039
|
stderr: process.stderr,
|
|
1040
|
-
prompt: (...args) => import("./prompt-
|
|
1040
|
+
prompt: (...args) => import("./prompt-EYFUFJSI.js").then((m) => m.prompt(...args)),
|
|
1041
1041
|
reporters: options.reporters || [
|
|
1042
1042
|
options.fancy ?? !(isCI2 || isTest) ? new FancyReporter() : new BasicReporter()
|
|
1043
1043
|
],
|
package/dist/index.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
colors,
|
|
4
4
|
consola
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FWD3UPBV.js";
|
|
6
6
|
|
|
7
7
|
// index.ts
|
|
8
|
-
import { existsSync as existsSync2, rmSync } from "fs";
|
|
9
|
-
import { execSync } from "child_process";
|
|
10
|
-
import { access, constants, lstat, readdir, readFile as readFile3 } from "fs/promises";
|
|
11
|
-
import { dirname, join, parse } from "path";
|
|
12
|
-
import { fileURLToPath } from "url";
|
|
8
|
+
import { existsSync as existsSync2, rmSync } from "node:fs";
|
|
9
|
+
import { execSync } from "node:child_process";
|
|
10
|
+
import { access, constants, lstat, readdir, readFile as readFile3 } from "node:fs/promises";
|
|
11
|
+
import { dirname, join, parse } from "node:path";
|
|
12
|
+
import { fileURLToPath } from "node:url";
|
|
13
13
|
|
|
14
14
|
// ../build/dist/index.js
|
|
15
|
-
import { existsSync } from "fs";
|
|
16
|
-
import { mkdir, opendir, readFile as readFile2, writeFile } from "fs/promises";
|
|
17
|
-
import path from "path";
|
|
15
|
+
import { existsSync } from "node:fs";
|
|
16
|
+
import { mkdir, opendir, readFile as readFile2, writeFile } from "node:fs/promises";
|
|
17
|
+
import path from "node:path";
|
|
18
18
|
import { formatCode, transformAndFormat as transformAndFormat2 } from "@batijs/core";
|
|
19
|
-
import { readFile } from "fs/promises";
|
|
19
|
+
import { readFile } from "node:fs/promises";
|
|
20
20
|
import { parseModule, transformAndFormat } from "@batijs/core";
|
|
21
21
|
async function mergeDts({
|
|
22
22
|
target,
|
|
@@ -1591,7 +1591,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
1591
1591
|
// package.json
|
|
1592
1592
|
var package_default = {
|
|
1593
1593
|
name: "@batijs/cli",
|
|
1594
|
-
version: "0.0.
|
|
1594
|
+
version: "0.0.246",
|
|
1595
1595
|
type: "module",
|
|
1596
1596
|
scripts: {
|
|
1597
1597
|
"check-types": "tsc --noEmit",
|
|
@@ -1611,14 +1611,14 @@ var package_default = {
|
|
|
1611
1611
|
"@types/which": "^3.0.4",
|
|
1612
1612
|
citty: "^0.1.6",
|
|
1613
1613
|
colorette: "^2.0.20",
|
|
1614
|
-
esbuild: "^0.23.
|
|
1615
|
-
execa: "^9.3.
|
|
1614
|
+
esbuild: "^0.23.1",
|
|
1615
|
+
execa: "^9.3.1",
|
|
1616
1616
|
rimraf: "^6.0.1",
|
|
1617
1617
|
sift: "^17.1.3",
|
|
1618
1618
|
tsup: "^8.2.4",
|
|
1619
1619
|
typescript: "^5.5.4",
|
|
1620
1620
|
"unplugin-purge-polyfills": "^0.0.4",
|
|
1621
|
-
vite: "^5.4.
|
|
1621
|
+
vite: "^5.4.2"
|
|
1622
1622
|
},
|
|
1623
1623
|
dependencies: {
|
|
1624
1624
|
"@batijs/core": "workspace:*",
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
colors,
|
|
4
4
|
getDefaultExportFromCjs,
|
|
5
5
|
isUnicodeSupported
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FWD3UPBV.js";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs
|
|
9
|
-
import { stdin, stdout } from "process";
|
|
10
|
-
import f from "readline";
|
|
11
|
-
import { WriteStream } from "tty";
|
|
9
|
+
import { stdin, stdout } from "node:process";
|
|
10
|
+
import f from "node:readline";
|
|
11
|
+
import { WriteStream } from "node:tty";
|
|
12
12
|
import require$$0 from "tty";
|
|
13
13
|
var ESC = "\x1B";
|
|
14
14
|
var CSI = `${ESC}[`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.246",
|
|
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",
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
"@types/which": "^3.0.4",
|
|
13
13
|
"citty": "^0.1.6",
|
|
14
14
|
"colorette": "^2.0.20",
|
|
15
|
-
"esbuild": "^0.23.
|
|
16
|
-
"execa": "^9.3.
|
|
15
|
+
"esbuild": "^0.23.1",
|
|
16
|
+
"execa": "^9.3.1",
|
|
17
17
|
"rimraf": "^6.0.1",
|
|
18
18
|
"sift": "^17.1.3",
|
|
19
19
|
"tsup": "^8.2.4",
|
|
20
20
|
"typescript": "^5.5.4",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.0.4",
|
|
22
|
-
"vite": "^5.4.
|
|
23
|
-
"@batijs/build": "0.0.
|
|
24
|
-
"@batijs/compile": "0.0.
|
|
22
|
+
"vite": "^5.4.2",
|
|
23
|
+
"@batijs/build": "0.0.246",
|
|
24
|
+
"@batijs/compile": "0.0.246"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/
|
|
28
|
-
"@batijs/
|
|
27
|
+
"@batijs/core": "0.0.246",
|
|
28
|
+
"@batijs/features": "0.0.246"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|