codev-code 1.17.18-1 → 1.17.18-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/package.json +14 -14
- package/postinstall.mjs +6 -6
- /package/bin/{opencode.exe → codev.exe} +0 -0
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "git+https://github.com/quickbeard/codev-code.git"
|
|
7
7
|
},
|
|
8
8
|
"bin": {
|
|
9
|
-
"codev": "./bin/
|
|
9
|
+
"codev": "./bin/codev.exe"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"postinstall": "node ./postinstall.mjs"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.17.18-
|
|
14
|
+
"version": "1.17.18-2",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"os": [
|
|
17
17
|
"darwin",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"x64"
|
|
24
24
|
],
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"codev-code-
|
|
27
|
-
"codev-code-
|
|
28
|
-
"codev-code-
|
|
29
|
-
"codev-code-linux-
|
|
30
|
-
"codev-code-
|
|
31
|
-
"codev-code-
|
|
32
|
-
"codev-code-
|
|
33
|
-
"codev-code-
|
|
34
|
-
"codev-code-
|
|
35
|
-
"codev-code-
|
|
36
|
-
"codev-code-
|
|
37
|
-
"codev-code-
|
|
26
|
+
"codev-code-linux-x64": "1.17.18-2",
|
|
27
|
+
"codev-code-linux-x64-baseline-musl": "1.17.18-2",
|
|
28
|
+
"codev-code-linux-arm64": "1.17.18-2",
|
|
29
|
+
"codev-code-linux-x64-musl": "1.17.18-2",
|
|
30
|
+
"codev-code-linux-x64-baseline": "1.17.18-2",
|
|
31
|
+
"codev-code-windows-x64-baseline": "1.17.18-2",
|
|
32
|
+
"codev-code-darwin-arm64": "1.17.18-2",
|
|
33
|
+
"codev-code-windows-x64": "1.17.18-2",
|
|
34
|
+
"codev-code-windows-arm64": "1.17.18-2",
|
|
35
|
+
"codev-code-linux-arm64-musl": "1.17.18-2",
|
|
36
|
+
"codev-code-darwin-x64-baseline": "1.17.18-2",
|
|
37
|
+
"codev-code-darwin-x64": "1.17.18-2"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -24,11 +24,11 @@ const archMap = {
|
|
|
24
24
|
|
|
25
25
|
const platform = platformMap[os.platform()] ?? os.platform()
|
|
26
26
|
const arch = archMap[os.arch()] ?? os.arch()
|
|
27
|
-
// Fork: platform binary packages are published as codev-code-<platform
|
|
28
|
-
// (must match
|
|
27
|
+
// Fork: platform binary packages are published as codev-code-<platform>,
|
|
28
|
+
// each shipping bin/codev (must match script/build.ts and script/publish.ts).
|
|
29
29
|
const base = `codev-code-${platform}-${arch}`
|
|
30
|
-
const sourceBinary = platform === "windows" ? "
|
|
31
|
-
const targetBinary = path.join(__dirname, "bin", "
|
|
30
|
+
const sourceBinary = platform === "windows" ? "codev.exe" : "codev"
|
|
31
|
+
const targetBinary = path.join(__dirname, "bin", "codev.exe")
|
|
32
32
|
|
|
33
33
|
function supportsAvx2() {
|
|
34
34
|
if (arch !== "x64") return false
|
|
@@ -129,7 +129,7 @@ function installPackage(name) {
|
|
|
129
129
|
const version = packageJson.optionalDependencies?.[name]
|
|
130
130
|
if (!version) return
|
|
131
131
|
|
|
132
|
-
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "
|
|
132
|
+
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "codev-install-"))
|
|
133
133
|
try {
|
|
134
134
|
const result = childProcess.spawnSync(
|
|
135
135
|
"npm",
|
|
@@ -177,7 +177,7 @@ function main() {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
throw new Error(
|
|
180
|
-
`It seems your package manager failed to install the right
|
|
180
|
+
`It seems your package manager failed to install the right codev CLI package. Try manually installing ${packageNames()
|
|
181
181
|
.map((name) => JSON.stringify(name))
|
|
182
182
|
.join(" or ")}.`,
|
|
183
183
|
)
|
|
File without changes
|