@jsorm/cli 0.1.0 → 0.1.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/dist/index.mjs +7 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath } from "node:url";
|
|
|
8
8
|
//#region src/index.ts
|
|
9
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
const __dirname = dirname(__filename);
|
|
11
|
-
const VERSION = "0.1.
|
|
11
|
+
const VERSION = "0.1.1";
|
|
12
12
|
const ENGINES_DIR = join(homedir(), ".jsorm", "engines");
|
|
13
13
|
const DOWNLOAD_BASE = "https://download.jsorm.dev";
|
|
14
14
|
const STABLE_MANIFEST_URL = `${DOWNLOAD_BASE}/engine/stable/manifest`;
|
|
@@ -260,7 +260,12 @@ async function downloadAndExtractEngine(url, destDir, binaryName, expectedSha256
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
async function extractTarGz(tarPath, destDir) {
|
|
263
|
-
|
|
263
|
+
try {
|
|
264
|
+
execSync(`tar -xzf "${tarPath}" -C "${destDir}"`, { stdio: "pipe" });
|
|
265
|
+
} catch (err) {
|
|
266
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
267
|
+
throw new Error(`tar extraction failed: ${msg}`);
|
|
268
|
+
}
|
|
264
269
|
}
|
|
265
270
|
function executeEngine(enginePath, args) {
|
|
266
271
|
const projectDir = process.cwd();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsorm/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "CLI de JSORM",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@jsorm/core": "1.0.
|
|
38
|
+
"@jsorm/core": "1.0.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^26.1.1",
|