@batijs/cli 0.0.315 → 0.0.317
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 +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +4 -2
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/lucia-auth.d.ts +23 -9
- package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.ts +4 -2
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/express/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +3 -3
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -8
- package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
- package/dist/boilerplates/@batijs/shared/files/vite.config.ts +4 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +7 -7
- package/dist/{chunk-4W4HYQ4C.js → chunk-KMASDDPZ.js} +64484 -64346
- package/dist/index.js +14 -14
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
} from "./chunk-FWD3UPBV.js";
|
|
6
6
|
import {
|
|
7
7
|
SXr,
|
|
8
|
-
|
|
9
|
-
cTs,
|
|
10
|
-
eit,
|
|
8
|
+
T5e,
|
|
11
9
|
export_which,
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
lTs,
|
|
11
|
+
rps,
|
|
12
|
+
tit
|
|
13
|
+
} from "./chunk-KMASDDPZ.js";
|
|
14
14
|
import "./chunk-LU7IBQI7.js";
|
|
15
15
|
|
|
16
16
|
// index.ts
|
|
@@ -34,8 +34,8 @@ async function mergeDts({
|
|
|
34
34
|
filepath,
|
|
35
35
|
meta
|
|
36
36
|
}) {
|
|
37
|
-
const previousAst =
|
|
38
|
-
const currentAst =
|
|
37
|
+
const previousAst = T5e(previousContent);
|
|
38
|
+
const currentAst = T5e(fileContent);
|
|
39
39
|
for (const imp of previousAst.imports.$items) {
|
|
40
40
|
currentAst.imports[imp.local] = imp;
|
|
41
41
|
}
|
|
@@ -52,7 +52,7 @@ async function mergeDts({
|
|
|
52
52
|
currentAst.$ast.body.splice(index, 0, node);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
const res = await
|
|
55
|
+
const res = await rps(currentAst.generate().code, meta, {
|
|
56
56
|
filepath
|
|
57
57
|
});
|
|
58
58
|
return res.code;
|
|
@@ -63,7 +63,7 @@ async function executeOperationFile(op, {
|
|
|
63
63
|
}) {
|
|
64
64
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
65
65
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
66
|
-
const result = await
|
|
66
|
+
const result = await rps(code, meta, {
|
|
67
67
|
filepath
|
|
68
68
|
});
|
|
69
69
|
let fileContent = result.code;
|
|
@@ -97,7 +97,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
97
97
|
case ".js":
|
|
98
98
|
case ".tsx":
|
|
99
99
|
case ".jsx":
|
|
100
|
-
return
|
|
100
|
+
return tit(fileContent, {
|
|
101
101
|
filepath
|
|
102
102
|
});
|
|
103
103
|
case ".env":
|
|
@@ -2483,7 +2483,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
2483
2483
|
// package.json
|
|
2484
2484
|
var package_default = {
|
|
2485
2485
|
name: "@batijs/cli",
|
|
2486
|
-
version: "0.0.
|
|
2486
|
+
version: "0.0.317",
|
|
2487
2487
|
type: "module",
|
|
2488
2488
|
scripts: {
|
|
2489
2489
|
"check-types": "tsc --noEmit",
|
|
@@ -2499,7 +2499,7 @@ var package_default = {
|
|
|
2499
2499
|
devDependencies: {
|
|
2500
2500
|
"@batijs/build": "workspace:*",
|
|
2501
2501
|
"@batijs/compile": "workspace:*",
|
|
2502
|
-
"@types/node": "^18.19.
|
|
2502
|
+
"@types/node": "^18.19.68",
|
|
2503
2503
|
"@types/which": "^3.0.4",
|
|
2504
2504
|
citty: "^0.1.6",
|
|
2505
2505
|
colorette: "^2.0.20",
|
|
@@ -2510,7 +2510,7 @@ var package_default = {
|
|
|
2510
2510
|
tsup: "^8.3.5",
|
|
2511
2511
|
typescript: "^5.7.2",
|
|
2512
2512
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
2513
|
-
vite: "^
|
|
2513
|
+
vite: "^6.0.3"
|
|
2514
2514
|
},
|
|
2515
2515
|
dependencies: {
|
|
2516
2516
|
"@batijs/core": "workspace:*",
|
|
@@ -2587,7 +2587,7 @@ Choose one of them, or simply remove selected Server`
|
|
|
2587
2587
|
var __filename = fileURLToPath(import.meta.url);
|
|
2588
2588
|
var __dirname = dirname(__filename);
|
|
2589
2589
|
var isWin2 = process.platform === "win32";
|
|
2590
|
-
var pm =
|
|
2590
|
+
var pm = lTs();
|
|
2591
2591
|
function boilerplatesDir() {
|
|
2592
2592
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
2593
2593
|
return join(__dirname, "boilerplates");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.317",
|
|
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",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/vikejs/bati",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@types/node": "^18.19.
|
|
11
|
+
"@types/node": "^18.19.68",
|
|
12
12
|
"@types/which": "^3.0.4",
|
|
13
13
|
"citty": "^0.1.6",
|
|
14
14
|
"colorette": "^2.0.20",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"tsup": "^8.3.5",
|
|
20
20
|
"typescript": "^5.7.2",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
22
|
-
"vite": "^
|
|
23
|
-
"@batijs/compile": "0.0.
|
|
24
|
-
"@batijs/build": "0.0.
|
|
22
|
+
"vite": "^6.0.3",
|
|
23
|
+
"@batijs/compile": "0.0.317",
|
|
24
|
+
"@batijs/build": "0.0.317"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.317",
|
|
28
|
+
"@batijs/features": "0.0.317"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|