@camox/cli 0.28.0 → 0.28.2

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
@@ -673,10 +673,29 @@ const parser$5 = command("init", object({ command: constant("init") }));
673
673
  const handler$5 = init;
674
674
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
675
675
  const ownPkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, "..", "package.json"), "utf-8"));
676
+ const PNPM_VERSION = "11.1.3";
677
+ const PNPM_WORKSPACE = `allowBuilds:
678
+ core-js@3.49.0: true
679
+ msw@2.14.6: true
680
+ protobufjs@7.5.9: true
681
+ `;
676
682
  function onCancel() {
677
683
  p.cancel("Cancelled.");
678
684
  process.exit(0);
679
685
  }
686
+ function runCommand(bin, args, cwd) {
687
+ return new Promise((resolve, reject) => {
688
+ const child = spawn(bin, args, {
689
+ cwd,
690
+ stdio: "ignore"
691
+ });
692
+ child.on("close", (code) => {
693
+ if (code === 0) resolve();
694
+ else reject(/* @__PURE__ */ new Error(`Exit code ${code}`));
695
+ });
696
+ child.on("error", reject);
697
+ });
698
+ }
680
699
  const CREATE_NEW_ORG = "__create_new__";
681
700
  async function selectOrCreateOrganization(token) {
682
701
  const orgs = await listOrganizations(token);
@@ -814,7 +833,9 @@ async function init() {
814
833
  pkg.name = project.slug;
815
834
  delete pkg.version;
816
835
  pkg.dependencies.camox = `^${ownPkg.version}`;
836
+ if (pm === "pnpm") pkg.packageManager = `pnpm@${PNPM_VERSION}`;
817
837
  fs.writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
838
+ if (pm === "pnpm") fs.writeFileSync(path.join(targetDir, "pnpm-workspace.yaml"), PNPM_WORKSPACE);
818
839
  fs.writeFileSync(path.join(targetDir, ".env"), `CAMOX_SYNC_SECRET=${project.syncSecret}\n`);
819
840
  fs.writeFileSync(path.join(targetDir, ".gitignore"), `node_modules
820
841
  .DS_Store
@@ -843,17 +864,7 @@ src/routeTree.gen.ts
843
864
  const s2 = p.spinner();
844
865
  s2.start(`Running ${installCmd}...`);
845
866
  try {
846
- await new Promise((resolve, reject) => {
847
- const child = spawn(installBin, installArgs, {
848
- cwd: targetDir,
849
- stdio: "ignore"
850
- });
851
- child.on("close", (code) => {
852
- if (code === 0) resolve();
853
- else reject(/* @__PURE__ */ new Error(`Exit code ${code}`));
854
- });
855
- child.on("error", reject);
856
- });
867
+ await runCommand(installBin, installArgs, targetDir);
857
868
  s2.stop("Dependencies installed!");
858
869
  } catch {
859
870
  s2.stop("Install failed.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.28.0",
3
+ "version": "0.28.2",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -15,18 +15,18 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@clack/prompts": "^0.10.0",
18
- "@optique/core": "*",
19
- "@optique/run": "*",
20
- "@orpc/client": "^1.13.14",
21
- "@orpc/server": "^1.13.14",
18
+ "@optique/core": "^1.0.2",
19
+ "@optique/run": "^1.0.2",
20
+ "@orpc/client": "^1.14.3",
21
+ "@orpc/server": "^1.14.3",
22
22
  "slugify": "^1.6.9",
23
- "zod": "^4.3.6"
23
+ "zod": "^4.4.3"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^24.12.2",
26
+ "@types/node": "^24.12.4",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
28
- "vite-plus": "latest",
29
- "@camox/api-contract": "0.28.0"
28
+ "vite-plus": "^0.1.21",
29
+ "@camox/api-contract": "0.28.2"
30
30
  },
31
31
  "nx": {
32
32
  "tags": [
@@ -12,36 +12,36 @@
12
12
  "check": "vp check"
13
13
  },
14
14
  "dependencies": {
15
- "@base-ui/react": "^1.4.0",
15
+ "@base-ui/react": "^1.4.1",
16
16
  "@fontsource-variable/inter": "^5.2.8",
17
17
  "@fontsource-variable/noto-serif": "^5.2.9",
18
- "@tailwindcss/vite": "^4.2.2",
19
- "@tanstack/react-query": "^5.99.0",
20
- "@tanstack/react-router": "^1.168.18",
21
- "@tanstack/react-router-ssr-query": "^1.166.11",
22
- "@tanstack/react-start": "^1.167.32",
23
- "@tanstack/router-plugin": "^1.167.18",
18
+ "@tailwindcss/vite": "^4.3.0",
19
+ "@tanstack/react-query": "^5.100.11",
20
+ "@tanstack/react-router": "^1.170.4",
21
+ "@tanstack/react-router-ssr-query": "^1.167.0",
22
+ "@tanstack/react-start": "^1.168.6",
23
+ "@tanstack/router-plugin": "^1.168.6",
24
24
  "camox": "workspace:*",
25
25
  "class-variance-authority": "^0.7.1",
26
26
  "clsx": "^2.1.1",
27
27
  "lucide-react": "^0.476.0",
28
28
  "nitro": "3.0.260311-beta",
29
- "react": "^19.2.5",
30
- "react-dom": "^19.2.5",
31
- "shadcn": "^4.6.0",
32
- "tailwind-merge": "^3.5.0",
33
- "tailwindcss": "^4.0.6"
29
+ "react": "^19.2.6",
30
+ "react-dom": "^19.2.6",
31
+ "shadcn": "^4.7.0",
32
+ "tailwind-merge": "^3.6.0",
33
+ "tailwindcss": "^4.3.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.29.0",
37
- "@rolldown/plugin-babel": "^0.2.2",
37
+ "@rolldown/plugin-babel": "^0.2.3",
38
38
  "@types/babel__core": "^7.20.5",
39
39
  "@types/react": "^19.0.8",
40
40
  "@types/react-dom": "^19.2.3",
41
- "@typescript/native-preview": "^7.0.0-dev",
42
- "@vitejs/plugin-react": "^6.0.1",
41
+ "@typescript/native-preview": "7.0.0-dev.20260519.1",
42
+ "@vitejs/plugin-react": "^6.0.2",
43
43
  "babel-plugin-react-compiler": "^1.0.0",
44
44
  "tw-animate-css": "^1.4.0",
45
- "vite-plus": "^0.1.16"
45
+ "vite-plus": "^0.1.21"
46
46
  }
47
47
  }