@batijs/cli 0.0.192 → 0.0.194

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.
@@ -43,7 +43,7 @@ var require_package = __commonJS({
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@edgedb/generate": "^0.5.3",
46
- "@prisma/client": "^5.13.0",
46
+ "@prisma/client": "^5.14.0",
47
47
  "@types/node": "^18.19.14",
48
48
  colorette: "^2.0.20",
49
49
  edgedb: "^1.5.6"
@@ -42,8 +42,8 @@ var require_package = __commonJS({
42
42
  },
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:^",
45
- "@typescript-eslint/eslint-plugin": "^7.8.0",
46
- "@typescript-eslint/parser": "^7.8.0",
45
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
46
+ "@typescript-eslint/parser": "^7.9.0",
47
47
  eslint: "^8.57.0"
48
48
  },
49
49
  dependencies: {
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  "express-openid-connect": "^2.17.1",
57
57
  "firebase-admin": "^12.1.0",
58
58
  telefunc: "^0.1.72",
59
- tsx: "^4.10.2",
59
+ tsx: "^4.10.5",
60
60
  vike: "^0.4.171",
61
61
  "vike-authjs": "^0.1.6",
62
62
  vite: "^5.2.11"
@@ -59,7 +59,7 @@ var require_package = __commonJS({
59
59
  fastify: "^4.27.0",
60
60
  "firebase-admin": "^12.1.0",
61
61
  telefunc: "^0.1.72",
62
- tsx: "^4.10.2",
62
+ tsx: "^4.10.5",
63
63
  vike: "^0.4.171",
64
64
  "vike-authjs": "^0.1.6",
65
65
  vite: "^5.2.11"
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  "@batijs/compile": "workspace:*",
45
45
  "@types/node": "^18.19.14",
46
46
  dotenv: "^16.4.5",
47
- firebase: "^10.11.1",
47
+ firebase: "^10.12.0",
48
48
  "firebase-admin": "^12.1.0",
49
49
  firebaseui: "^6.1.0",
50
50
  vike: "^0.4.171",
@@ -57,7 +57,7 @@ var require_package = __commonJS({
57
57
  h3: "~1.11.1",
58
58
  "serve-static": "^1.15.0",
59
59
  telefunc: "^0.1.72",
60
- tsx: "^4.10.2",
60
+ tsx: "^4.10.5",
61
61
  vike: "^0.4.171",
62
62
  "vike-authjs": "^0.1.6",
63
63
  vite: "^5.2.11"
@@ -50,9 +50,9 @@ var require_package = __commonJS({
50
50
  "@trpc/server": "^10.45.2",
51
51
  "@types/node": "^18.19.14",
52
52
  "firebase-admin": "^12.1.0",
53
- hono: "^4.3.6",
53
+ hono: "^4.3.8",
54
54
  telefunc: "^0.1.72",
55
- tsx: "^4.10.2",
55
+ tsx: "^4.10.5",
56
56
  vike: "^0.4.171",
57
57
  "vike-authjs": "^0.1.6",
58
58
  vite: "^5.2.11"
@@ -42,10 +42,10 @@ var require_package = __commonJS({
42
42
  license: "MIT",
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
- "@prisma/client": "^5.13.0",
45
+ "@prisma/client": "^5.14.0",
46
46
  "@types/node": "^18.19.14",
47
47
  colorette: "^2.0.20",
48
- prisma: "^5.13.0"
48
+ prisma: "^5.14.0"
49
49
  },
50
50
  dependencies: {
51
51
  "@batijs/core": "workspace:*"
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  tailwindcss: "^3.4.3",
57
57
  typescript: "^5.4.5",
58
58
  vike: "^0.4.171",
59
- "vike-react": "^0.4.9",
59
+ "vike-react": "^0.4.10",
60
60
  vite: "^5.2.11"
61
61
  },
62
62
  dependencies: {
@@ -52,7 +52,7 @@ var require_package = __commonJS({
52
52
  typescript: "^5.4.5",
53
53
  "unplugin-vue-markdown": "^0.26.2",
54
54
  vike: "^0.4.171",
55
- "vike-vue": "^0.6.5",
55
+ "vike-vue": "^0.6.6",
56
56
  vite: "^5.2.11",
57
57
  vue: "^3.4.27",
58
58
  "vue-gtag": "^2.0.1"
@@ -1,4 +1,29 @@
1
1
  #!/usr/bin/env node
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
2
27
 
3
28
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/core.mjs
4
29
  var LogLevels = {
@@ -1037,7 +1062,7 @@ function createConsola2(options = {}) {
1037
1062
  defaults: { level },
1038
1063
  stdout: process.stdout,
1039
1064
  stderr: process.stderr,
1040
- prompt: (...args) => import("./prompt-QGA753QE.js").then((m) => m.prompt(...args)),
1065
+ prompt: (...args) => import("./prompt-YMZWKECL.js").then((m) => m.prompt(...args)),
1041
1066
  reporters: options.reporters || [
1042
1067
  options.fancy ?? !(isCI2 || isTest) ? new FancyReporter() : new BasicReporter()
1043
1068
  ],
@@ -1057,6 +1082,8 @@ function _getDefaultLogLevel() {
1057
1082
  var consola = createConsola2();
1058
1083
 
1059
1084
  export {
1085
+ __commonJS,
1086
+ __toESM,
1060
1087
  colors,
1061
1088
  getDefaultExportFromCjs,
1062
1089
  isUnicodeSupported,
package/dist/index.js CHANGED
@@ -1,8 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ __commonJS,
4
+ __toESM,
3
5
  colors,
4
6
  consola
5
- } from "./chunk-P3F3WO2D.js";
7
+ } from "./chunk-5DE3DJHR.js";
8
+
9
+ // ../../node_modules/.pnpm/which-pm-runs@1.1.0/node_modules/which-pm-runs/index.js
10
+ var require_which_pm_runs = __commonJS({
11
+ "../../node_modules/.pnpm/which-pm-runs@1.1.0/node_modules/which-pm-runs/index.js"(exports, module) {
12
+ "use strict";
13
+ module.exports = function() {
14
+ if (!process.env.npm_config_user_agent) {
15
+ return void 0;
16
+ }
17
+ return pmFromUserAgent(process.env.npm_config_user_agent);
18
+ };
19
+ function pmFromUserAgent(userAgent) {
20
+ const pmSpec = userAgent.split(" ")[0];
21
+ const separatorPos = pmSpec.lastIndexOf("/");
22
+ const name = pmSpec.substring(0, separatorPos);
23
+ return {
24
+ name: name === "npminstall" ? "cnpm" : name,
25
+ version: pmSpec.substring(separatorPos + 1)
26
+ };
27
+ }
28
+ }
29
+ });
6
30
 
7
31
  // index.ts
8
32
  import { existsSync as existsSync2 } from "fs";
@@ -1534,10 +1558,13 @@ var createDefaultQueryTester = function(query, options) {
1534
1558
  return createOperationTester(op);
1535
1559
  };
1536
1560
 
1561
+ // index.ts
1562
+ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
1563
+
1537
1564
  // package.json
1538
1565
  var package_default = {
1539
1566
  name: "@batijs/cli",
1540
- version: "0.0.192",
1567
+ version: "0.0.194",
1541
1568
  type: "module",
1542
1569
  scripts: {
1543
1570
  "check-types": "tsc --noEmit",
@@ -1555,15 +1582,17 @@ var package_default = {
1555
1582
  "@batijs/compile": "workspace:*",
1556
1583
  "@types/node": "^18.19.14",
1557
1584
  "@types/which": "^3.0.3",
1585
+ "@types/which-pm-runs": "^1.0.2",
1558
1586
  citty: "^0.1.6",
1559
1587
  colorette: "^2.0.20",
1560
- esbuild: "^0.21.2",
1588
+ esbuild: "^0.21.3",
1561
1589
  execa: "^8.0.1",
1562
1590
  rimraf: "^5.0.7",
1563
1591
  sift: "^17.1.3",
1564
1592
  tsup: "^8.0.2",
1565
1593
  typescript: "^5.4.5",
1566
- vite: "^5.2.11"
1594
+ vite: "^5.2.11",
1595
+ "which-pm-runs": "^1.1.0"
1567
1596
  },
1568
1597
  dependencies: {
1569
1598
  "@batijs/core": "workspace:*",
@@ -1611,6 +1640,7 @@ var rulesMessages = {
1611
1640
  var __filename = fileURLToPath(import.meta.url);
1612
1641
  var __dirname = dirname(__filename);
1613
1642
  var isWin2 = process.platform === "win32";
1643
+ var pm = (0, import_which_pm_runs.default)();
1614
1644
  function boilerplatesDir() {
1615
1645
  if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
1616
1646
  return join(__dirname, "boilerplates");
@@ -1660,8 +1690,28 @@ function printOK(dist, flags) {
1660
1690
  }
1661
1691
  console.log("\n" + bold(arrow0("Ready to start you app:")));
1662
1692
  console.log(cmd3(`cd ${dist}`));
1663
- console.log(cmd3("pnpm install"));
1664
- console.log(cmd3("pnpm run dev"));
1693
+ switch (pm?.name) {
1694
+ case "bun": {
1695
+ console.log(cmd3("bun install"));
1696
+ console.log(cmd3("bun run dev"));
1697
+ break;
1698
+ }
1699
+ case "yarn": {
1700
+ console.log(cmd3("yarn install"));
1701
+ console.log(cmd3("yarn run dev"));
1702
+ break;
1703
+ }
1704
+ case "npm": {
1705
+ console.log(cmd3("npm install"));
1706
+ console.log(cmd3("npm run dev"));
1707
+ break;
1708
+ }
1709
+ default: {
1710
+ console.log(cmd3("pnpm install"));
1711
+ console.log(cmd3("pnpm run dev"));
1712
+ break;
1713
+ }
1714
+ }
1665
1715
  console.log(
1666
1716
  "\n" + bold(book0("Be sure to check the ") + cyan("README.md") + " file for remaining steps and documentation.")
1667
1717
  );
@@ -3,7 +3,7 @@ import {
3
3
  colors,
4
4
  getDefaultExportFromCjs,
5
5
  isUnicodeSupported
6
- } from "./chunk-P3F3WO2D.js";
6
+ } from "./chunk-5DE3DJHR.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs
9
9
  import { stdin, stdout } from "process";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.192",
3
+ "version": "0.0.194",
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",
@@ -10,21 +10,23 @@
10
10
  "devDependencies": {
11
11
  "@types/node": "^18.19.14",
12
12
  "@types/which": "^3.0.3",
13
+ "@types/which-pm-runs": "^1.0.2",
13
14
  "citty": "^0.1.6",
14
15
  "colorette": "^2.0.20",
15
- "esbuild": "^0.21.2",
16
+ "esbuild": "^0.21.3",
16
17
  "execa": "^8.0.1",
17
18
  "rimraf": "^5.0.7",
18
19
  "sift": "^17.1.3",
19
20
  "tsup": "^8.0.2",
20
21
  "typescript": "^5.4.5",
21
22
  "vite": "^5.2.11",
22
- "@batijs/build": "0.0.192",
23
- "@batijs/compile": "0.0.192"
23
+ "which-pm-runs": "^1.1.0",
24
+ "@batijs/compile": "0.0.194",
25
+ "@batijs/build": "0.0.194"
24
26
  },
25
27
  "dependencies": {
26
- "@batijs/core": "0.0.192",
27
- "@batijs/features": "0.0.192"
28
+ "@batijs/core": "0.0.194",
29
+ "@batijs/features": "0.0.194"
28
30
  },
29
31
  "bin": "./dist/index.js",
30
32
  "exports": {