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",