diff --git a/package-lock.json b/package-lock.json index 6628306..458019b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@coderbuzz/dsh", - "version": "0.1.5", + "version": "0.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@coderbuzz/dsh", - "version": "0.1.5", + "version": "0.1.6", "license": "MIT", "dependencies": { "chalk": "^5.6.2", diff --git a/package.json b/package.json index 3f88770..bd1f06c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coderbuzz/dsh", - "version": "0.1.5", + "version": "0.1.6", "description": "DeepSeek harness for orchestrators: structured JSON SDK and CLI on top of the deepcode-cli engine", "license": "MIT", "repository": { diff --git a/test/install.test.mjs b/test/install.test.mjs index 76e0305..7048faa 100644 --- a/test/install.test.mjs +++ b/test/install.test.mjs @@ -15,8 +15,10 @@ const version = JSON.parse(fs.readFileSync("package.json", "utf8")).version; test("install.sh: install, rerun, refuse to overwrite, uninstall", async () => { const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "dsh-inst-")); - const packed = (await run("npm", ["pack", "--pack-destination", tmp, "--ignore-scripts", "--json"], { env: cleanEnv })).stdout; - const tarball = path.join(tmp, JSON.parse(packed)[0].filename); + const packed = await run("npm", ["pack", "--pack-destination", tmp, "--ignore-scripts"], { env: cleanEnv }); + const name = fs.readdirSync(tmp).find((f) => f.endsWith(".tgz")); + assert.ok(name, `npm pack made no tarball:\n${packed.stdout}\n${packed.stderr}`); + const tarball = path.join(tmp, name); const prefix = path.join(tmp, "prefix"); const bin = path.join(tmp, "bin"); const env = { ...cleanEnv, DSH_PACKAGE: tarball, HOME: tmp };