@just-every/code 0.1.5 → 0.1.7
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/bin/coder.js +5 -1
- package/package.json +1 -1
- package/postinstall.js +6 -5
package/bin/coder.js
CHANGED
|
@@ -56,7 +56,11 @@ if (!targetTriple) {
|
|
|
56
56
|
throw new Error(`Unsupported platform: ${platform} (${arch})`);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
// Prefer new 'code-*' binary names; fall back to legacy 'coder-*' if missing.
|
|
60
|
+
let binaryPath = path.join(__dirname, "..", "bin", `code-${targetTriple}`);
|
|
61
|
+
if (!existsSync(binaryPath)) {
|
|
62
|
+
binaryPath = path.join(__dirname, "..", "bin", `coder-${targetTriple}`);
|
|
63
|
+
}
|
|
60
64
|
|
|
61
65
|
// Check if binary exists and try to fix permissions if needed
|
|
62
66
|
import { existsSync, chmodSync } from "fs";
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// Non-functional change to trigger release workflow
|
|
2
3
|
|
|
3
4
|
import { existsSync, mkdirSync, createWriteStream, chmodSync, readFileSync, readSync, writeFileSync } from 'fs';
|
|
4
5
|
import { join, dirname } from 'path';
|
|
@@ -93,8 +94,8 @@ async function main() {
|
|
|
93
94
|
const packageJson = JSON.parse(readFileSync(join(__dirname, 'package.json'), 'utf8'));
|
|
94
95
|
const version = packageJson.version;
|
|
95
96
|
|
|
96
|
-
// Binary names to download (
|
|
97
|
-
const binaries = ['
|
|
97
|
+
// Binary names to download (new naming is 'code*')
|
|
98
|
+
const binaries = ['code', 'code-tui', 'code-exec'];
|
|
98
99
|
|
|
99
100
|
console.log(`Installing @just-every/code v${version} for ${targetTriple}...`);
|
|
100
101
|
|
|
@@ -138,17 +139,17 @@ async function main() {
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
// Create platform-specific symlink/copy for main binary
|
|
141
|
-
const mainBinary = `
|
|
142
|
+
const mainBinary = `code-${targetTriple}${binaryExt}`;
|
|
142
143
|
const mainBinaryPath = join(binDir, mainBinary);
|
|
143
144
|
|
|
144
145
|
if (existsSync(mainBinaryPath)) {
|
|
145
|
-
console.log('Setting up main
|
|
146
|
+
console.log('Setting up main code binary...');
|
|
146
147
|
|
|
147
148
|
// On Windows, we can't use symlinks easily, so update the JS wrapper
|
|
148
149
|
// On Unix, the JS wrapper will find the correct binary
|
|
149
150
|
console.log('✓ Installation complete!');
|
|
150
151
|
} else {
|
|
151
|
-
console.warn('⚠ Main
|
|
152
|
+
console.warn('⚠ Main code binary not found. You may need to build from source.');
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
// With bin name = 'code', handle collisions with existing 'code' (e.g., VS Code)
|