chore: unify zip installs around dist

This commit is contained in:
2026-05-25 16:48:59 +08:00
parent 1a7b025aee
commit 3a80ef9859
6 changed files with 11 additions and 13 deletions
+2 -4
View File
@@ -6,7 +6,7 @@ import { describe, expect, test } from "vitest";
import { createReleaseArchive } from "../scripts/package-release-archive.mjs";
describe("package-release-archive", () => {
test("creates a zip archive with a top-level release folder", async () => {
test("creates a zip archive with a top-level dist folder", async () => {
const tempDir = await mkdtemp(path.join(os.tmpdir(), "release-archive-"));
const sourceDir = path.join(tempDir, "source");
const archivePath = path.join(tempDir, "archive.zip");
@@ -21,8 +21,6 @@ describe("package-release-archive", () => {
const archive = await readFile(archivePath);
expect(archive.byteLength).toBeGreaterThan(0);
expect(archive.toString("utf8")).toContain(
"star-chart-search-enhancer-internal/hello.txt"
);
expect(archive.toString("utf8")).toContain("dist/hello.txt");
});
});