test(repo): include market workspace in root typecheck

This commit is contained in:
Qiuner
2026-08-18 13:55:43 +08:00
committed by Qiu
parent f6e81c0240
commit 08a892f0f5
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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({
+1 -1
View File
@@ -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",