@batijs/cli 0.0.118 → 0.0.119
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/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
- package/dist/index.js +13 -10
- package/package.json +10 -10
|
@@ -42,8 +42,8 @@ var require_package = __commonJS({
|
|
|
42
42
|
},
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:^",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
46
|
-
"@typescript-eslint/parser": "^6.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
46
|
+
"@typescript-eslint/parser": "^6.12.0",
|
|
47
47
|
eslint: "^8.54.0"
|
|
48
48
|
},
|
|
49
49
|
dependencies: {
|
|
@@ -41,11 +41,11 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.18.
|
|
44
|
+
"@auth/core": "^0.18.3",
|
|
45
45
|
"@batijs/trpc": "workspace:*",
|
|
46
46
|
"@batijs/compile": "workspace:*",
|
|
47
47
|
"@hattip/adapter-node": "^0.0.35",
|
|
48
|
-
"@trpc/server": "^10.
|
|
48
|
+
"@trpc/server": "^10.44.1",
|
|
49
49
|
"@types/express": "^4.17.21",
|
|
50
50
|
"@types/node": "^18.18.9",
|
|
51
51
|
esno: "^4.0.0",
|
|
@@ -41,15 +41,15 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.18.
|
|
44
|
+
"@auth/core": "^0.18.3",
|
|
45
45
|
"@batijs/trpc": "workspace:^",
|
|
46
46
|
"@batijs/compile": "workspace:*",
|
|
47
47
|
"@hattip/polyfills": "^0.0.35",
|
|
48
|
-
"@trpc/server": "^10.
|
|
48
|
+
"@trpc/server": "^10.44.1",
|
|
49
49
|
"@types/node": "^18.18.9",
|
|
50
50
|
"@types/serve-static": "^1.15.5",
|
|
51
51
|
esno: "^4.0.0",
|
|
52
|
-
h3: "^1.
|
|
52
|
+
h3: "^1.9.0",
|
|
53
53
|
"serve-static": "^1.15.0",
|
|
54
54
|
telefunc: "^0.1.64",
|
|
55
55
|
vike: "^0.4.147",
|
|
@@ -41,14 +41,14 @@ var require_package = __commonJS({
|
|
|
41
41
|
author: "",
|
|
42
42
|
license: "MIT",
|
|
43
43
|
devDependencies: {
|
|
44
|
-
"@auth/core": "^0.18.
|
|
44
|
+
"@auth/core": "^0.18.3",
|
|
45
45
|
"@batijs/trpc": "workspace:^",
|
|
46
46
|
"@batijs/compile": "workspace:*",
|
|
47
47
|
"@hattip/adapter-node": "^0.0.35",
|
|
48
48
|
"@hattip/core": "^0.0.35",
|
|
49
49
|
"@hattip/router": "^0.0.35",
|
|
50
50
|
"@hattip/vite": "^0.0.35",
|
|
51
|
-
"@trpc/server": "^10.
|
|
51
|
+
"@trpc/server": "^10.44.1",
|
|
52
52
|
"@types/node": "^18.18.9",
|
|
53
53
|
hattip: "^0.0.33",
|
|
54
54
|
telefunc: "^0.1.64",
|
|
@@ -43,18 +43,18 @@ var require_package = __commonJS({
|
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@babel/core": "^7.23.3",
|
|
45
45
|
"@babel/plugin-syntax-flow": "^7.23.3",
|
|
46
|
-
"@babel/plugin-transform-react-jsx": "^7.
|
|
46
|
+
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
47
47
|
"@batijs/compile": "workspace:*",
|
|
48
48
|
"@types/node": "^18.18.9",
|
|
49
|
-
"@types/react": "^18.2.
|
|
50
|
-
"@types/react-dom": "^18.2.
|
|
49
|
+
"@types/react": "^18.2.38",
|
|
50
|
+
"@types/react-dom": "^18.2.17",
|
|
51
51
|
"@vitejs/plugin-react": "^4.2.0",
|
|
52
52
|
"cross-fetch": "^4.0.0",
|
|
53
53
|
"eslint-config-react-app": "^7.0.1",
|
|
54
54
|
react: "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
56
|
tailwindcss: "^3.3.5",
|
|
57
|
-
typescript: "^5.
|
|
57
|
+
typescript: "^5.3.2",
|
|
58
58
|
vike: "^0.4.147",
|
|
59
59
|
"vike-react": "^0.3.4",
|
|
60
60
|
vite: "^4.5.0"
|
|
@@ -45,9 +45,9 @@ var require_package = __commonJS({
|
|
|
45
45
|
"@types/node": "^18.18.9",
|
|
46
46
|
"cross-fetch": "^4.0.0",
|
|
47
47
|
"eslint-plugin-solid": "^0.13.0",
|
|
48
|
-
"solid-js": "^1.8.
|
|
48
|
+
"solid-js": "^1.8.6",
|
|
49
49
|
tailwindcss: "^3.3.5",
|
|
50
|
-
typescript: "^5.
|
|
50
|
+
typescript: "^5.3.2",
|
|
51
51
|
vike: "^0.4.147",
|
|
52
52
|
"vike-solid": "^0.2.5",
|
|
53
53
|
vite: "^4.5.0",
|
|
@@ -43,8 +43,8 @@ var require_package = __commonJS({
|
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@batijs/shared-db": "workspace:*",
|
|
46
|
-
"@trpc/client": "^10.
|
|
47
|
-
"@trpc/server": "^10.
|
|
46
|
+
"@trpc/client": "^10.44.1",
|
|
47
|
+
"@trpc/server": "^10.44.1",
|
|
48
48
|
"@types/node": "^18.18.9",
|
|
49
49
|
vite: "^4.5.0"
|
|
50
50
|
},
|
|
@@ -44,17 +44,17 @@ var require_package = __commonJS({
|
|
|
44
44
|
"@batijs/compile": "workspace:*",
|
|
45
45
|
"@types/node": "^18.18.9",
|
|
46
46
|
"@vitejs/plugin-vue": "^4.5.0",
|
|
47
|
-
"@vue/compiler-sfc": "^3.3.
|
|
48
|
-
"@vue/server-renderer": "^3.3.
|
|
47
|
+
"@vue/compiler-sfc": "^3.3.9",
|
|
48
|
+
"@vue/server-renderer": "^3.3.9",
|
|
49
49
|
"cross-fetch": "^4.0.0",
|
|
50
50
|
"eslint-plugin-vue": "^9.18.1",
|
|
51
51
|
tailwindcss: "^3.3.5",
|
|
52
|
-
typescript: "^5.
|
|
52
|
+
typescript: "^5.3.2",
|
|
53
53
|
"unplugin-vue-markdown": "^0.25.2",
|
|
54
54
|
vike: "^0.4.147",
|
|
55
55
|
"vike-vue": "^0.5.0",
|
|
56
56
|
vite: "^4.5.0",
|
|
57
|
-
vue: "^3.3.
|
|
57
|
+
vue: "^3.3.9"
|
|
58
58
|
},
|
|
59
59
|
dependencies: {
|
|
60
60
|
"@batijs/core": "workspace:*"
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
consola
|
|
5
5
|
} from "./chunk-P3F3WO2D.js";
|
|
6
6
|
|
|
7
|
-
// ../../node_modules/.pnpm/citty@0.1.
|
|
7
|
+
// ../../node_modules/.pnpm/citty@0.1.5/node_modules/citty/dist/index.mjs
|
|
8
8
|
function toArray(val) {
|
|
9
9
|
if (Array.isArray(val)) {
|
|
10
10
|
return val;
|
|
@@ -287,6 +287,7 @@ async function runCommand(cmd, opts) {
|
|
|
287
287
|
if (typeof cmd.setup === "function") {
|
|
288
288
|
await cmd.setup(context);
|
|
289
289
|
}
|
|
290
|
+
let result;
|
|
290
291
|
try {
|
|
291
292
|
const subCommands = await resolveValue(cmd.subCommands);
|
|
292
293
|
if (subCommands && Object.keys(subCommands).length > 0) {
|
|
@@ -312,13 +313,14 @@ async function runCommand(cmd, opts) {
|
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
if (typeof cmd.run === "function") {
|
|
315
|
-
await cmd.run(context);
|
|
316
|
+
result = await cmd.run(context);
|
|
316
317
|
}
|
|
317
318
|
} finally {
|
|
318
319
|
if (typeof cmd.cleanup === "function") {
|
|
319
320
|
await cmd.cleanup(context);
|
|
320
321
|
}
|
|
321
322
|
}
|
|
323
|
+
return { result };
|
|
322
324
|
}
|
|
323
325
|
async function resolveSubCommand(cmd, rawArgs, parent) {
|
|
324
326
|
const subCommands = await resolveValue(cmd.subCommands);
|
|
@@ -422,9 +424,10 @@ async function renderUsage(cmd, parent) {
|
|
|
422
424
|
}
|
|
423
425
|
async function runMain(cmd, opts = {}) {
|
|
424
426
|
const rawArgs = opts.rawArgs || process.argv.slice(2);
|
|
427
|
+
const showUsage$1 = opts.showUsage || showUsage;
|
|
425
428
|
try {
|
|
426
429
|
if (rawArgs.includes("--help") || rawArgs.includes("-h")) {
|
|
427
|
-
await showUsage(...await resolveSubCommand(cmd, rawArgs));
|
|
430
|
+
await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
|
|
428
431
|
process.exit(0);
|
|
429
432
|
} else if (rawArgs.length === 1 && rawArgs[0] === "--version") {
|
|
430
433
|
const meta = typeof cmd.meta === "function" ? await cmd.meta() : await cmd.meta;
|
|
@@ -441,7 +444,7 @@ async function runMain(cmd, opts = {}) {
|
|
|
441
444
|
consola.error(error2, "\n");
|
|
442
445
|
}
|
|
443
446
|
if (isCLIError) {
|
|
444
|
-
await showUsage(...await resolveSubCommand(cmd, rawArgs));
|
|
447
|
+
await showUsage$1(...await resolveSubCommand(cmd, rawArgs));
|
|
445
448
|
}
|
|
446
449
|
consola.error(error2.message);
|
|
447
450
|
process.exit(1);
|
|
@@ -573,7 +576,7 @@ Please report this issue to https://github.com/magne4000/bati`
|
|
|
573
576
|
// package.json
|
|
574
577
|
var package_default = {
|
|
575
578
|
name: "@batijs/cli",
|
|
576
|
-
version: "0.0.
|
|
579
|
+
version: "0.0.119",
|
|
577
580
|
type: "module",
|
|
578
581
|
scripts: {
|
|
579
582
|
"check-types": "tsc --noEmit",
|
|
@@ -590,15 +593,15 @@ var package_default = {
|
|
|
590
593
|
"@batijs/build": "workspace:*",
|
|
591
594
|
"@batijs/compile": "workspace:*",
|
|
592
595
|
"@types/node": "^18.18.9",
|
|
593
|
-
"@types/which": "^3.0.
|
|
594
|
-
citty: "^0.1.
|
|
596
|
+
"@types/which": "^3.0.3",
|
|
597
|
+
citty: "^0.1.5",
|
|
595
598
|
colorette: "^2.0.20",
|
|
596
|
-
esbuild: "^0.19.
|
|
599
|
+
esbuild: "^0.19.8",
|
|
597
600
|
execa: "^8.0.1",
|
|
598
601
|
rimraf: "^5.0.5",
|
|
599
602
|
sift: "^17.0.1",
|
|
600
|
-
tsup: "^8.0.
|
|
601
|
-
typescript: "^5.
|
|
603
|
+
tsup: "^8.0.1",
|
|
604
|
+
typescript: "^5.3.2",
|
|
602
605
|
vite: "^4.5.0"
|
|
603
606
|
},
|
|
604
607
|
dependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.119",
|
|
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",
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "^18.18.9",
|
|
12
|
-
"@types/which": "^3.0.
|
|
13
|
-
"citty": "^0.1.
|
|
12
|
+
"@types/which": "^3.0.3",
|
|
13
|
+
"citty": "^0.1.5",
|
|
14
14
|
"colorette": "^2.0.20",
|
|
15
|
-
"esbuild": "^0.19.
|
|
15
|
+
"esbuild": "^0.19.8",
|
|
16
16
|
"execa": "^8.0.1",
|
|
17
17
|
"rimraf": "^5.0.5",
|
|
18
18
|
"sift": "^17.0.1",
|
|
19
|
-
"tsup": "^8.0.
|
|
20
|
-
"typescript": "^5.
|
|
19
|
+
"tsup": "^8.0.1",
|
|
20
|
+
"typescript": "^5.3.2",
|
|
21
21
|
"vite": "^4.5.0",
|
|
22
|
-
"@batijs/
|
|
23
|
-
"@batijs/
|
|
22
|
+
"@batijs/compile": "0.0.119",
|
|
23
|
+
"@batijs/build": "0.0.119"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@batijs/core": "0.0.
|
|
27
|
-
"@batijs/features": "0.0.
|
|
26
|
+
"@batijs/core": "0.0.119",
|
|
27
|
+
"@batijs/features": "0.0.119"
|
|
28
28
|
},
|
|
29
29
|
"bin": "./dist/index.js",
|
|
30
30
|
"exports": {
|