camox 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.
|
@@ -17,7 +17,6 @@ function injectNoticeAfterFrontmatter(source) {
|
|
|
17
17
|
const sdkRoot = resolve(dirname(fileURLToPath(import.meta.url)), "../../..");
|
|
18
18
|
const camoxCmdByPm = {
|
|
19
19
|
pnpm: "pnpm camox",
|
|
20
|
-
yarn: "yarn camox",
|
|
21
20
|
bun: "bunx camox",
|
|
22
21
|
npm: "npx camox"
|
|
23
22
|
};
|
|
@@ -26,11 +25,10 @@ function detectPackageManagerInDir(dir) {
|
|
|
26
25
|
if (existsSync(packageJsonPath)) try {
|
|
27
26
|
const pkg = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
28
27
|
const name = (typeof pkg.packageManager === "string" ? pkg.packageManager : "").split("@", 1)[0];
|
|
29
|
-
if (name === "pnpm" || name === "
|
|
28
|
+
if (name === "pnpm" || name === "bun" || name === "npm") return name;
|
|
30
29
|
} catch {}
|
|
31
30
|
if (existsSync(resolve(dir, "pnpm-lock.yaml"))) return "pnpm";
|
|
32
31
|
if (existsSync(resolve(dir, "bun.lock")) || existsSync(resolve(dir, "bun.lockb"))) return "bun";
|
|
33
|
-
if (existsSync(resolve(dir, "yarn.lock"))) return "yarn";
|
|
34
32
|
if (existsSync(resolve(dir, "package-lock.json"))) return "npm";
|
|
35
33
|
}
|
|
36
34
|
function detectPackageManager(appRoot) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camox",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.6",
|
|
4
4
|
"bin": {
|
|
5
5
|
"camox": "./bin/camox.mjs"
|
|
6
6
|
},
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"react-og-preview": "^0.2.0",
|
|
127
127
|
"shiki": "^4.1.0",
|
|
128
128
|
"zod": "^4.4.3",
|
|
129
|
-
"@camox/
|
|
130
|
-
"@camox/
|
|
131
|
-
"@camox/cli": "0.28.
|
|
129
|
+
"@camox/ui": "0.28.6",
|
|
130
|
+
"@camox/api-contract": "0.28.6",
|
|
131
|
+
"@camox/cli": "0.28.6"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
134
|
"@babel/core": "^7.29.0",
|