@batijs/cli 0.0.257 → 0.0.259

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.5",
46
- "@prisma/client": "^5.18.0",
46
+ "@prisma/client": "^5.19.0",
47
47
  "@types/node": "^18.19.14",
48
48
  colorette: "^2.0.20",
49
49
  edgedb: "^1.5.10"
@@ -50,7 +50,7 @@ var require_package = __commonJS({
50
50
  "eslint-plugin-solid": "^0.14.2",
51
51
  "eslint-plugin-vue": "^9.27.0",
52
52
  globals: "^15.9.0",
53
- "typescript-eslint": "^8.2.0",
53
+ "typescript-eslint": "^8.3.0",
54
54
  "vue-eslint-parser": "^9.4.3"
55
55
  },
56
56
  dependencies: {
@@ -51,8 +51,8 @@ var require_package = __commonJS({
51
51
  "@batijs/telefunc": "workspace:^",
52
52
  "@batijs/trpc": "workspace:^",
53
53
  "@batijs/ts-rest": "workspace:*",
54
- "@hono/node-server": "^1.12.1",
55
- "@hono/vite-dev-server": "^0.14.0",
54
+ "@hono/node-server": "^1.12.2",
55
+ "@hono/vite-dev-server": "^0.15.0",
56
56
  "@trpc/server": "^10.45.2",
57
57
  "@types/node": "^18.19.14",
58
58
  "@universal-middleware/hono": "^0.2.3",
@@ -42,10 +42,10 @@ var require_package = __commonJS({
42
42
  license: "MIT",
43
43
  devDependencies: {
44
44
  "@batijs/compile": "workspace:*",
45
- "@prisma/client": "^5.18.0",
45
+ "@prisma/client": "^5.19.0",
46
46
  "@types/node": "^18.19.14",
47
47
  colorette: "^2.0.20",
48
- prisma: "^5.18.0"
48
+ prisma: "^5.19.0"
49
49
  },
50
50
  dependencies: {
51
51
  "@batijs/core": "workspace:*"
@@ -49,7 +49,7 @@ var require_package = __commonJS({
49
49
  "@batijs/ts-rest": "workspace:*",
50
50
  "@types/node": "^18.19.14",
51
51
  "cross-fetch": "^4.0.0",
52
- "solid-js": "^1.8.21",
52
+ "solid-js": "^1.8.22",
53
53
  tailwindcss: "^3.4.10",
54
54
  typescript: "^5.5.4",
55
55
  vike: "^0.4.193",
package/dist/index.js CHANGED
@@ -1676,7 +1676,7 @@ var createDefaultQueryTester = function(query, options) {
1676
1676
  // package.json
1677
1677
  var package_default = {
1678
1678
  name: "@batijs/cli",
1679
- version: "0.0.257",
1679
+ version: "0.0.259",
1680
1680
  type: "module",
1681
1681
  scripts: {
1682
1682
  "check-types": "tsc --noEmit",
@@ -1923,6 +1923,21 @@ async function checkArguments(args) {
1923
1923
  }
1924
1924
  }
1925
1925
  }
1926
+ function checkFlagsExist(flags) {
1927
+ const inValidOptions = flags.reduce((acc, flag) => {
1928
+ if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((f) => f.flag === flag)) {
1929
+ acc.push(flag);
1930
+ }
1931
+ return acc;
1932
+ }, []);
1933
+ const count = inValidOptions.length;
1934
+ if (count) {
1935
+ console.error(
1936
+ `${red("\u26A0")} Unknown option${count > 1 ? "s" : ""} ${bold(inValidOptions.join(", "))}. Use \`--help\` to list all available options.`
1937
+ );
1938
+ process.exit(5);
1939
+ }
1940
+ }
1926
1941
  function checkRules(flags) {
1927
1942
  const potentialRulesMessages = execRules(flags, rulesMessages);
1928
1943
  const infos = potentialRulesMessages.filter((m) => m?.type === "info");
@@ -2024,6 +2039,7 @@ async function run() {
2024
2039
  }
2025
2040
  return flag;
2026
2041
  }).flat(1);
2042
+ checkFlagsExist(flags);
2027
2043
  checkRules(flags);
2028
2044
  boilerplates.sort((b1, b2) => {
2029
2045
  if (b1.config.enforce === "pre") return -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.257",
3
+ "version": "0.0.259",
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",
@@ -20,12 +20,12 @@
20
20
  "typescript": "^5.5.4",
21
21
  "unplugin-purge-polyfills": "^0.0.5",
22
22
  "vite": "^5.4.2",
23
- "@batijs/build": "0.0.257",
24
- "@batijs/compile": "0.0.257"
23
+ "@batijs/build": "0.0.259",
24
+ "@batijs/compile": "0.0.259"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.257",
28
- "@batijs/features": "0.0.257"
27
+ "@batijs/features": "0.0.259",
28
+ "@batijs/core": "0.0.259"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {