@camox/cli 0.17.6 → 0.18.0

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/index.mjs CHANGED
@@ -7,7 +7,7 @@ import { runSync } from "@optique/run";
7
7
  import { multiple, optional } from "@optique/core/modifiers";
8
8
  import { command, constant, option } from "@optique/core/primitives";
9
9
  import { choice, integer, string } from "@optique/core/valueparser";
10
- import { execSync, spawn, spawnSync } from "node:child_process";
10
+ import { execSync, spawn } from "node:child_process";
11
11
  import fs from "node:fs";
12
12
  import http from "node:http";
13
13
  import os from "node:os";
@@ -749,15 +749,6 @@ src/routes/_camox/
749
749
  src/routeTree.gen.ts
750
750
  `);
751
751
  s.stop("Project scaffolded!");
752
- function dropIntoProject() {
753
- const shell = process.env.SHELL || "/bin/bash";
754
- p.log.info(`Dropping you into ${resolvedPath}`);
755
- spawnSync(shell, [], {
756
- cwd: targetDir,
757
- stdio: "inherit"
758
- });
759
- process.exit(0);
760
- }
761
752
  const { install: installCmd, dev: devCmd } = pmCommands[pm];
762
753
  const [installBin, ...installArgs] = installCmd.split(" ");
763
754
  const s2 = p.spinner();
@@ -777,10 +768,11 @@ src/routeTree.gen.ts
777
768
  s2.stop("Dependencies installed!");
778
769
  } catch {
779
770
  s2.stop("Install failed.");
780
- p.log.error(`Failed to install dependencies. Run "${installCmd}" manually.`);
781
- dropIntoProject();
771
+ p.log.error(`Failed to install dependencies.`);
772
+ p.outro(`To finish setup:\n cd ${resolvedPath}\n ${installCmd}\n ${devCmd}`);
773
+ process.exit(1);
782
774
  }
783
- p.outro(`Starting dev server...`);
775
+ p.log.info(`Starting dev server... (Ctrl+C to stop)`);
784
776
  const [cmd, ...args] = devCmd.split(" ");
785
777
  const child = spawn(cmd, args, {
786
778
  cwd: targetDir,
@@ -797,7 +789,8 @@ src/routeTree.gen.ts
797
789
  child.on("close", () => {
798
790
  process.removeListener("SIGINT", sigintHandler);
799
791
  process.removeListener("exit", sigintHandler);
800
- dropIntoProject();
792
+ p.outro(`To restart the dev server:\n cd ${resolvedPath}\n ${devCmd}`);
793
+ process.exit(0);
801
794
  });
802
795
  }
803
796
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.17.6",
3
+ "version": "0.18.0",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^24.12.2",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
28
28
  "vite-plus": "latest",
29
- "@camox/api-contract": "0.17.6"
29
+ "@camox/api-contract": "0.18.0"
30
30
  },
31
31
  "nx": {
32
32
  "tags": [
@@ -75,7 +75,6 @@ function NavbarComponent(): ReactElement {
75
75
  <Button
76
76
  size="sm"
77
77
  variant="outline"
78
- className="text-foreground"
79
78
  nativeButton={false}
80
79
  render={<Link {...props} />}
81
80
  />
@@ -10,7 +10,7 @@ const buttonVariants = cva(
10
10
  variant: {
11
11
  default: "bg-primary text-primary-foreground hover:bg-primary/80",
12
12
  outline:
13
- "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
13
+ "border-border bg-background text-foreground shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
14
14
  secondary:
15
15
  "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
16
16
  ghost: