@camox/cli 0.28.5 → 0.28.6

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -37
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -638,8 +638,7 @@ async function handler$6(args) {
638
638
  const packageManagerVersions = {
639
639
  pnpm: "pnpm@11.1.3",
640
640
  bun: "bun@1.2.23",
641
- npm: "npm@11.6.2",
642
- yarn: "yarn@4.9.2"
641
+ npm: "npm@11.6.2"
643
642
  };
644
643
  const pmCommands = {
645
644
  pnpm: {
@@ -685,26 +684,6 @@ const pmCommands = {
685
684
  args: ["run", "dev"],
686
685
  display: "npm run dev"
687
686
  }
688
- },
689
- yarn: {
690
- install: {
691
- bin: "corepack",
692
- args: ["yarn", "install"],
693
- display: "yarn install",
694
- fallback: {
695
- bin: "yarn",
696
- args: ["install"]
697
- }
698
- },
699
- dev: {
700
- bin: "corepack",
701
- args: ["yarn", "dev"],
702
- display: "yarn dev",
703
- fallback: {
704
- bin: "yarn",
705
- args: ["dev"]
706
- }
707
- }
708
687
  }
709
688
  };
710
689
  function copyDir(src, dest, replacements) {
@@ -742,12 +721,6 @@ function onCancel() {
742
721
  p.cancel("Cancelled.");
743
722
  process.exit(0);
744
723
  }
745
- function versionFromSpecifier(specifier, dependency) {
746
- if (typeof specifier !== "string") throw new Error(`Expected ${dependency} to use a string version specifier.`);
747
- const match = specifier.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?/);
748
- if (match) return match[0];
749
- throw new Error(`Could not infer a concrete version from ${dependency}@${specifier}.`);
750
- }
751
724
  function runCommand(bin, args, cwd) {
752
725
  return new Promise((resolve, reject) => {
753
726
  const child = spawn(bin, args, {
@@ -801,7 +774,6 @@ function startPackageManagerCommand(command, cwd) {
801
774
  function getCommandFailureMessage(pm, err) {
802
775
  if (!isMissingCommandError(err)) return "Failed to install dependencies.";
803
776
  if (pm === "pnpm") return "Corepack or pnpm is required to install dependencies with the selected package manager. Enable Corepack with `corepack enable` or install pnpm, then run the setup commands below.";
804
- if (pm === "yarn") return "Corepack or Yarn is required to install dependencies with the selected package manager. Enable Corepack with `corepack enable` or install Yarn, then run the setup commands below.";
805
777
  if (pm === "bun") return "Bun is required to install dependencies with the selected package manager. Install Bun, then run the setup commands below.";
806
778
  return "npm is required to install dependencies. Install npm, then run the setup commands below.";
807
779
  }
@@ -920,10 +892,6 @@ async function init() {
920
892
  {
921
893
  value: "npm",
922
894
  label: "npm"
923
- },
924
- {
925
- value: "yarn",
926
- label: "yarn"
927
895
  }
928
896
  ]
929
897
  });
@@ -943,10 +911,6 @@ async function init() {
943
911
  delete pkg.version;
944
912
  pkg.dependencies.camox = `^${ownPkg.version}`;
945
913
  pkg.packageManager = packageManagerVersions[pm];
946
- if (pm === "yarn") {
947
- const vitePlusVersion = versionFromSpecifier(pkg.devDependencies["vite-plus"], "vite-plus");
948
- pkg.devDependencies.vite = `npm:@voidzero-dev/vite-plus-core@${vitePlusVersion}`;
949
- }
950
914
  fs.writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
951
915
  if (pm === "pnpm") fs.writeFileSync(path.join(targetDir, "pnpm-workspace.yaml"), PNPM_WORKSPACE);
952
916
  fs.writeFileSync(path.join(targetDir, ".env"), `CAMOX_SYNC_SECRET=${project.syncSecret}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/cli",
3
- "version": "0.28.5",
3
+ "version": "0.28.6",
4
4
  "bin": {
5
5
  "camox": "./dist/index.mjs"
6
6
  },
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^24.12.4",
27
27
  "@typescript/native-preview": "7.0.0-dev.20260412.1",
28
28
  "vite-plus": "^0.1.21",
29
- "@camox/api-contract": "0.28.5"
29
+ "@camox/api-contract": "0.28.6"
30
30
  },
31
31
  "nx": {
32
32
  "tags": [