fix: preserve zsh prompt in packaged desktop (#544)

This commit is contained in:
Mohamed Boudra
2026-04-24 13:54:20 +07:00
parent ef418d5292
commit 231ebdcfb1
4 changed files with 108 additions and 3 deletions
@@ -0,0 +1,19 @@
import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
const packageRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
describe("desktop packaging", () => {
it("unpacks server zsh shell integration files for external shells", () => {
const config = readFileSync(join(packageRoot, "electron-builder.yml"), "utf8");
expect(config).toContain(
"node_modules/@getpaseo/server/dist/server/terminal/shell-integration/**/*",
);
expect(config).not.toContain(
"node_modules/@getpaseo/server/dist/src/terminal/shell-integration/**/*",
);
});
});