refactor: consume Commonlib as a package

This commit is contained in:
vorotamoroz
2026-07-17 11:13:16 +00:00
parent 6475d32769
commit a721d3b602
665 changed files with 3438 additions and 31592 deletions
+5 -12
View File
@@ -130,20 +130,13 @@ describe("release notes", () => {
});
describe("release workflow", () => {
it("regenerates and stages fallback type definitions", () => {
it("uses the locked Commonlib package instead of generated fallback declarations", () => {
const workflow = readFileSync(prepareReleaseWorkflow, "utf8");
expect(workflow).toContain("npm run build:lib:types");
expect(workflow).toMatch(/git add[^\n]*_types/);
});
it("installs Deno before post-processing fallback type definitions", () => {
const workflow = readFileSync(prepareReleaseWorkflow, "utf8");
const setupDeno = workflow.indexOf("denoland/setup-deno@v2");
const buildTypes = workflow.indexOf("npm run build:lib:types");
expect(setupDeno).toBeGreaterThan(-1);
expect(setupDeno).toBeLessThan(buildTypes);
expect(workflow).not.toContain("npm run build:lib:types");
expect(workflow).not.toMatch(/git add[^\n]*_types/);
expect(workflow).toMatch(/git add[^\n]*package-lock\.json/);
expect(workflow).toContain("locked Commonlib package version");
});
it("keeps the release PR in draft until BRAT validation", () => {