@teamcode-ai/teamcode 1.0.0 → 1.0.1
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 +13 -13
- package/postinstall.mjs +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamcode-ai/teamcode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"teamcode": "./bin/teamcode.exe"
|
|
6
6
|
},
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"os": ["darwin", "linux", "win32"],
|
|
12
12
|
"cpu": ["arm64", "x64"],
|
|
13
13
|
"optionalDependencies": {
|
|
14
|
-
"@teamcode-ai/linux-arm64-musl": "1.0.
|
|
15
|
-
"@teamcode-ai/windows-x64": "1.0.
|
|
16
|
-
"@teamcode-ai/darwin-x64-baseline": "1.0.
|
|
17
|
-
"@teamcode-ai/linux-x64-baseline-musl": "1.0.
|
|
18
|
-
"@teamcode-ai/linux-arm64": "1.0.
|
|
19
|
-
"@teamcode-ai/linux-x64-baseline": "1.0.
|
|
20
|
-
"@teamcode-ai/linux-x64-musl": "1.0.
|
|
21
|
-
"@teamcode-ai/windows-x64-baseline": "1.0.
|
|
22
|
-
"@teamcode-ai/windows-arm64": "1.0.
|
|
23
|
-
"@teamcode-ai/darwin-arm64": "1.0.
|
|
24
|
-
"@teamcode-ai/linux-x64": "1.0.
|
|
25
|
-
"@teamcode-ai/darwin-x64": "1.0.
|
|
14
|
+
"@teamcode-ai/linux-arm64-musl": "1.0.1",
|
|
15
|
+
"@teamcode-ai/windows-x64": "1.0.1",
|
|
16
|
+
"@teamcode-ai/darwin-x64-baseline": "1.0.1",
|
|
17
|
+
"@teamcode-ai/linux-x64-baseline-musl": "1.0.1",
|
|
18
|
+
"@teamcode-ai/linux-arm64": "1.0.1",
|
|
19
|
+
"@teamcode-ai/linux-x64-baseline": "1.0.1",
|
|
20
|
+
"@teamcode-ai/linux-x64-musl": "1.0.1",
|
|
21
|
+
"@teamcode-ai/windows-x64-baseline": "1.0.1",
|
|
22
|
+
"@teamcode-ai/windows-arm64": "1.0.1",
|
|
23
|
+
"@teamcode-ai/darwin-arm64": "1.0.1",
|
|
24
|
+
"@teamcode-ai/linux-x64": "1.0.1",
|
|
25
|
+
"@teamcode-ai/darwin-x64": "1.0.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -24,9 +24,9 @@ const archMap = {
|
|
|
24
24
|
|
|
25
25
|
const platform = platformMap[os.platform()] ?? os.platform()
|
|
26
26
|
const arch = archMap[os.arch()] ?? os.arch()
|
|
27
|
-
const base =
|
|
28
|
-
const sourceBinary = platform === "windows" ? "
|
|
29
|
-
const targetBinary = path.join(__dirname, "bin", "
|
|
27
|
+
const base = `@teamcode-ai/${platform}-${arch}`
|
|
28
|
+
const sourceBinary = platform === "windows" ? "teamcode.exe" : "teamcode"
|
|
29
|
+
const targetBinary = path.join(__dirname, "bin", "teamcode.exe")
|
|
30
30
|
|
|
31
31
|
function supportsAvx2() {
|
|
32
32
|
if (arch !== "x64") return false
|
|
@@ -175,7 +175,7 @@ function main() {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
throw new Error(
|
|
178
|
-
`It seems your package manager failed to install the right
|
|
178
|
+
`It seems your package manager failed to install the right teamcode CLI package. Try manually installing ${packageNames()
|
|
179
179
|
.map((name) => JSON.stringify(name))
|
|
180
180
|
.join(" or ")}.`,
|
|
181
181
|
)
|