@batijs/cli 0.0.435 → 0.0.436
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 +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +42 -0
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -8
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- 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/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
- 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 +3 -3
- package/dist/boilerplates/boilerplates.json +12 -0
- package/dist/{chunk-VSQM6ILT.js → chunk-4IS3SI2N.js} +27690 -27685
- package/dist/index.js +34 -21
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
$Qr,
|
|
7
|
+
Dfs,
|
|
8
|
+
Yit,
|
|
8
9
|
export_which,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./chunk-VSQM6ILT.js";
|
|
10
|
+
iRe,
|
|
11
|
+
jvs
|
|
12
|
+
} from "./chunk-4IS3SI2N.js";
|
|
13
13
|
import "./chunk-V7W2TXCE.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -13425,8 +13425,8 @@ async function mergeDts({
|
|
|
13425
13425
|
filepath,
|
|
13426
13426
|
meta
|
|
13427
13427
|
}) {
|
|
13428
|
-
const previousAst =
|
|
13429
|
-
const currentAst =
|
|
13428
|
+
const previousAst = iRe(previousContent);
|
|
13429
|
+
const currentAst = iRe(fileContent);
|
|
13430
13430
|
for (const imp of previousAst.imports.$items) {
|
|
13431
13431
|
currentAst.imports[imp.local] = imp;
|
|
13432
13432
|
}
|
|
@@ -13443,7 +13443,7 @@ async function mergeDts({
|
|
|
13443
13443
|
currentAst.$ast.body.splice(index, 0, node);
|
|
13444
13444
|
}
|
|
13445
13445
|
}
|
|
13446
|
-
const res = await
|
|
13446
|
+
const res = await Dfs(currentAst.generate().code, meta, {
|
|
13447
13447
|
filepath
|
|
13448
13448
|
});
|
|
13449
13449
|
return clearExports(res.code, meta);
|
|
@@ -13464,7 +13464,7 @@ async function executeOperationFile(op, {
|
|
|
13464
13464
|
}) {
|
|
13465
13465
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
13466
13466
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
13467
|
-
const result = await
|
|
13467
|
+
const result = await Dfs(code, meta, {
|
|
13468
13468
|
filepath
|
|
13469
13469
|
});
|
|
13470
13470
|
let fileContent = result.code;
|
|
@@ -13502,7 +13502,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
13502
13502
|
case ".js":
|
|
13503
13503
|
case ".tsx":
|
|
13504
13504
|
case ".jsx":
|
|
13505
|
-
return
|
|
13505
|
+
return Yit(fileContent, {
|
|
13506
13506
|
filepath
|
|
13507
13507
|
});
|
|
13508
13508
|
case ".env":
|
|
@@ -13535,7 +13535,8 @@ async function importTransformer(p) {
|
|
|
13535
13535
|
}
|
|
13536
13536
|
async function executeOperationTransform(op, {
|
|
13537
13537
|
meta,
|
|
13538
|
-
previousOperationSameDestination
|
|
13538
|
+
previousOperationSameDestination,
|
|
13539
|
+
packageJson
|
|
13539
13540
|
}) {
|
|
13540
13541
|
const transformer = await importTransformer(op.sourceAbsolute);
|
|
13541
13542
|
const previousContent = previousOperationSameDestination?.content;
|
|
@@ -13545,7 +13546,8 @@ async function executeOperationTransform(op, {
|
|
|
13545
13546
|
readfile: previousContent ? () => previousContent : void 0,
|
|
13546
13547
|
meta,
|
|
13547
13548
|
source: op.source,
|
|
13548
|
-
target: op.destination
|
|
13549
|
+
target: op.destination,
|
|
13550
|
+
packageJson
|
|
13549
13551
|
})
|
|
13550
13552
|
);
|
|
13551
13553
|
return {
|
|
@@ -13760,6 +13762,11 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13760
13762
|
}
|
|
13761
13763
|
let previousOp = void 0;
|
|
13762
13764
|
let previousOpContent = void 0;
|
|
13765
|
+
let packageJson = {};
|
|
13766
|
+
const packageJsonDistAbsolute = path.join(
|
|
13767
|
+
path.isAbsolute(options.dist) ? options.dist : path.resolve(options.dist),
|
|
13768
|
+
"package.json"
|
|
13769
|
+
);
|
|
13763
13770
|
for (const op of rearranger.compute()) {
|
|
13764
13771
|
if (previousOp?.destination !== op.destination) {
|
|
13765
13772
|
previousOp = void 0;
|
|
@@ -13779,11 +13786,15 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13779
13786
|
} else if (op.kind === "transform") {
|
|
13780
13787
|
report = await executeOperationTransform(op, {
|
|
13781
13788
|
meta,
|
|
13782
|
-
previousOperationSameDestination: previousOp
|
|
13789
|
+
previousOperationSameDestination: previousOp,
|
|
13790
|
+
packageJson
|
|
13783
13791
|
});
|
|
13784
13792
|
}
|
|
13785
13793
|
if (report.content) {
|
|
13786
13794
|
await safeWriteFile(op.destination, report.content.trimStart());
|
|
13795
|
+
if (op.destinationAbsolute === packageJsonDistAbsolute) {
|
|
13796
|
+
packageJson = JSON.parse(report.content);
|
|
13797
|
+
}
|
|
13787
13798
|
}
|
|
13788
13799
|
previousOpContent = report.content ?? previousOpContent;
|
|
13789
13800
|
previousOp = {
|
|
@@ -16976,7 +16987,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16976
16987
|
// package.json
|
|
16977
16988
|
var package_default = {
|
|
16978
16989
|
name: "@batijs/cli",
|
|
16979
|
-
version: "0.0.
|
|
16990
|
+
version: "0.0.436",
|
|
16980
16991
|
type: "module",
|
|
16981
16992
|
scripts: {
|
|
16982
16993
|
"check-types": "tsc --noEmit",
|
|
@@ -17081,7 +17092,7 @@ Choose one of them, or simply remove selected Server`
|
|
|
17081
17092
|
var __filename = fileURLToPath(import.meta.url);
|
|
17082
17093
|
var __dirname = dirname(__filename);
|
|
17083
17094
|
var isWin2 = process.platform === "win32";
|
|
17084
|
-
var pm =
|
|
17095
|
+
var pm = jvs();
|
|
17085
17096
|
function boilerplatesDir() {
|
|
17086
17097
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
17087
17098
|
return join(__dirname, "boilerplates");
|
|
@@ -17115,10 +17126,10 @@ function findDescription(key) {
|
|
|
17115
17126
|
}
|
|
17116
17127
|
}
|
|
17117
17128
|
function printOK(dist, flags2) {
|
|
17118
|
-
const arrow0 =
|
|
17119
|
-
const book0 =
|
|
17120
|
-
const list3 =
|
|
17121
|
-
const cmd3 =
|
|
17129
|
+
const arrow0 = $Qr("\u2192", blueBright);
|
|
17130
|
+
const book0 = $Qr("\u{1F4DA}", blueBright);
|
|
17131
|
+
const list3 = $Qr("-", void 0, 3);
|
|
17132
|
+
const cmd3 = $Qr("$", gray, 3);
|
|
17122
17133
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
17123
17134
|
console.log(list3(green("Vike")));
|
|
17124
17135
|
for (const key of flags2) {
|
|
@@ -17346,7 +17357,9 @@ async function retrieveHooks(hooks) {
|
|
|
17346
17357
|
}
|
|
17347
17358
|
function testFlags(flags2, bl) {
|
|
17348
17359
|
if (bl.config.if) {
|
|
17349
|
-
return createDefaultQueryTester(bl.config.if)(
|
|
17360
|
+
return createDefaultQueryTester(bl.config.if)(
|
|
17361
|
+
flags2.map((f2) => ({ flag: f2, packageManager: pm?.name }))
|
|
17362
|
+
);
|
|
17350
17363
|
}
|
|
17351
17364
|
return true;
|
|
17352
17365
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.436",
|
|
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",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"typescript": "^5.8.3",
|
|
22
22
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
23
23
|
"vite": "^6.3.5",
|
|
24
|
-
"@batijs/
|
|
25
|
-
"@batijs/
|
|
24
|
+
"@batijs/compile": "0.0.436",
|
|
25
|
+
"@batijs/build": "0.0.436"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@batijs/core": "0.0.
|
|
29
|
-
"@batijs/features": "0.0.
|
|
28
|
+
"@batijs/core": "0.0.436",
|
|
29
|
+
"@batijs/features": "0.0.436"
|
|
30
30
|
},
|
|
31
31
|
"bin": "./dist/index.js",
|
|
32
32
|
"exports": {
|