@batijs/cli 0.0.317 → 0.0.319
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/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.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/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +5 -5
- 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 +4 -4
- 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/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +6 -6
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- 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/package.json +2 -2
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
- 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 +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$vite.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 +4 -4
- 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 +3 -3
- package/dist/{chunk-KMASDDPZ.js → chunk-LXR4HCZK.js} +24749 -24742
- package/dist/index.js +31 -17
- 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
|
-
T5e,
|
|
9
8
|
export_which,
|
|
10
9
|
lTs,
|
|
10
|
+
rit,
|
|
11
11
|
rps,
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
v5e
|
|
13
|
+
} from "./chunk-LXR4HCZK.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 = v5e(previousContent);
|
|
38
|
+
const currentAst = v5e(fileContent);
|
|
39
39
|
for (const imp of previousAst.imports.$items) {
|
|
40
40
|
currentAst.imports[imp.local] = imp;
|
|
41
41
|
}
|
|
@@ -55,7 +55,17 @@ async function mergeDts({
|
|
|
55
55
|
const res = await rps(currentAst.generate().code, meta, {
|
|
56
56
|
filepath
|
|
57
57
|
});
|
|
58
|
-
return res.code;
|
|
58
|
+
return clearExports(res.code, meta);
|
|
59
|
+
}
|
|
60
|
+
function clearExports(code, meta) {
|
|
61
|
+
if (code.trim() === "export {};") {
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
if (meta.BATI.has("biome")) {
|
|
65
|
+
const index = code.indexOf("\nexport {};");
|
|
66
|
+
return code.slice(0, index) + "\n// biome-ignore lint/complexity/noUselessEmptyExport: ensure that the file is considered as a module" + code.slice(index);
|
|
67
|
+
}
|
|
68
|
+
return code;
|
|
59
69
|
}
|
|
60
70
|
async function executeOperationFile(op, {
|
|
61
71
|
meta,
|
|
@@ -67,13 +77,17 @@ async function executeOperationFile(op, {
|
|
|
67
77
|
filepath
|
|
68
78
|
});
|
|
69
79
|
let fileContent = result.code;
|
|
70
|
-
if (op.sourceAbsolute.endsWith(".d.ts")
|
|
71
|
-
|
|
72
|
-
fileContent
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
if (op.sourceAbsolute.endsWith(".d.ts")) {
|
|
81
|
+
if (previousOperationSameDestination?.content) {
|
|
82
|
+
fileContent = await mergeDts({
|
|
83
|
+
fileContent,
|
|
84
|
+
previousContent: previousOperationSameDestination.content,
|
|
85
|
+
meta,
|
|
86
|
+
filepath
|
|
87
|
+
});
|
|
88
|
+
} else {
|
|
89
|
+
fileContent = clearExports(fileContent, meta);
|
|
90
|
+
}
|
|
77
91
|
}
|
|
78
92
|
return {
|
|
79
93
|
context: result.context,
|
|
@@ -97,7 +111,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
97
111
|
case ".js":
|
|
98
112
|
case ".tsx":
|
|
99
113
|
case ".jsx":
|
|
100
|
-
return
|
|
114
|
+
return rit(fileContent, {
|
|
101
115
|
filepath
|
|
102
116
|
});
|
|
103
117
|
case ".env":
|
|
@@ -2483,7 +2497,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
2483
2497
|
// package.json
|
|
2484
2498
|
var package_default = {
|
|
2485
2499
|
name: "@batijs/cli",
|
|
2486
|
-
version: "0.0.
|
|
2500
|
+
version: "0.0.319",
|
|
2487
2501
|
type: "module",
|
|
2488
2502
|
scripts: {
|
|
2489
2503
|
"check-types": "tsc --noEmit",
|
|
@@ -2503,14 +2517,14 @@ var package_default = {
|
|
|
2503
2517
|
"@types/which": "^3.0.4",
|
|
2504
2518
|
citty: "^0.1.6",
|
|
2505
2519
|
colorette: "^2.0.20",
|
|
2506
|
-
esbuild: "^0.24.
|
|
2520
|
+
esbuild: "^0.24.2",
|
|
2507
2521
|
execa: "^9.5.2",
|
|
2508
2522
|
rimraf: "^6.0.1",
|
|
2509
2523
|
sift: "^17.1.3",
|
|
2510
2524
|
tsup: "^8.3.5",
|
|
2511
2525
|
typescript: "^5.7.2",
|
|
2512
2526
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
2513
|
-
vite: "^6.0.
|
|
2527
|
+
vite: "^6.0.5"
|
|
2514
2528
|
},
|
|
2515
2529
|
dependencies: {
|
|
2516
2530
|
"@batijs/core": "workspace:*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.319",
|
|
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.24.
|
|
15
|
+
"esbuild": "^0.24.2",
|
|
16
16
|
"execa": "^9.5.2",
|
|
17
17
|
"rimraf": "^6.0.1",
|
|
18
18
|
"sift": "^17.1.3",
|
|
19
19
|
"tsup": "^8.3.5",
|
|
20
20
|
"typescript": "^5.7.2",
|
|
21
21
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
22
|
-
"vite": "^6.0.
|
|
23
|
-
"@batijs/
|
|
24
|
-
"@batijs/
|
|
22
|
+
"vite": "^6.0.5",
|
|
23
|
+
"@batijs/build": "0.0.319",
|
|
24
|
+
"@batijs/compile": "0.0.319"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@batijs/core": "0.0.
|
|
28
|
-
"@batijs/features": "0.0.
|
|
27
|
+
"@batijs/core": "0.0.319",
|
|
28
|
+
"@batijs/features": "0.0.319"
|
|
29
29
|
},
|
|
30
30
|
"bin": "./dist/index.js",
|
|
31
31
|
"exports": {
|