@yousali/codetok 0.2.1-canary.20260219012136 → 0.2.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/README.md +1 -1
- package/bin/codetok.js +3 -1
- package/package.json +1 -1
- package/scripts/install.mjs +2 -2
package/README.md
CHANGED
package/bin/codetok.js
CHANGED
|
@@ -8,7 +8,9 @@ const binName = process.platform === 'win32' ? 'codetok.exe' : 'codetok';
|
|
|
8
8
|
const binPath = path.join(__dirname, '..', 'vendor', binName);
|
|
9
9
|
|
|
10
10
|
if (!fs.existsSync(binPath)) {
|
|
11
|
-
console.error(
|
|
11
|
+
console.error(
|
|
12
|
+
'[codetok] native binary is missing. Reinstall with `npm install -g @yousali/codetok`.'
|
|
13
|
+
);
|
|
12
14
|
process.exit(1);
|
|
13
15
|
}
|
|
14
16
|
|
package/package.json
CHANGED
package/scripts/install.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import path from 'node:path';
|
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
|
|
9
9
|
import extract from 'extract-zip';
|
|
10
|
-
import
|
|
10
|
+
import { x as extractTar } from 'tar';
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
13
|
const __dirname = path.dirname(__filename);
|
|
@@ -62,7 +62,7 @@ async function main() {
|
|
|
62
62
|
await verifySHA256(checksumsPath, archivePath, archiveName);
|
|
63
63
|
|
|
64
64
|
if (ext === 'tar.gz') {
|
|
65
|
-
await
|
|
65
|
+
await extractTar({
|
|
66
66
|
cwd: extractDir,
|
|
67
67
|
file: archivePath,
|
|
68
68
|
strict: true,
|