From 08a892f0f5680753287c18551f79057bee7cd79e Mon Sep 17 00:00:00 2001 From: Qiuner Date: Tue, 18 Aug 2026 13:15:25 +0800 Subject: [PATCH] test(repo): include market workspace in root typecheck --- dsh-plugin-desktop/tests/package.spec.ts | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dsh-plugin-desktop/tests/package.spec.ts b/dsh-plugin-desktop/tests/package.spec.ts index f61d8ed1a0..ff12ae42ee 100644 --- a/dsh-plugin-desktop/tests/package.spec.ts +++ b/dsh-plugin-desktop/tests/package.spec.ts @@ -47,6 +47,11 @@ const workspaceManifest = JSON.parse(readFileSync(new URL('package.json', worksp const ciWorkflow = readFileSync(new URL('.github/workflows/ci.yml', workspaceRoot), 'utf8') describe('published package surface', () => { + it('runs desktop and community market typechecks from the root command', () => { + expect(workspaceManifest.scripts?.typecheck) + .toBe('yarn workspace dsh-plugin-desktop typecheck && yarn workspace dsh-community-market typecheck') + }) + it('registers both npm launcher names', () => { expect(manifest.name).toBe('dsh-plugin-desktop') expect(manifest.bin).toEqual({ diff --git a/package.json b/package.json index 2675793536..7e527ffa73 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "scripts": { "build": "yarn workspace dsh-community-market build && yarn workspace dsh-plugin-desktop build", - "typecheck": "yarn workspace dsh-plugin-desktop typecheck", + "typecheck": "yarn workspace dsh-plugin-desktop typecheck && yarn workspace dsh-community-market typecheck", "test": "yarn workspace dsh-plugin-desktop test", "check:layout": "node scripts/verify-layout.mjs", "check": "yarn check:layout && yarn workspace dsh-community-fabric check && yarn workspace dsh-community-market check && yarn workspace dsh-plugin-desktop check",