Skip to content

Commit 3fb39ca

Browse files
committed
build: run check-dts-emitted at the end of every tsup-built package's build
#11907 established that tsup 8.5.1 can report build success having emitted zero declarations: DTS generation runs in a `worker_threads.Worker` whose promise is settled only from that worker's `message` events (no `error`, no `exit` handler), so a worker that dies without posting one settles neither branch, node exits 0, and esbuild has already written `dist/`. turbo caches only successful tasks — so the declaration-less `dist/**` is cached under the hash of an ordinary full build and replays until `--force`. PR #12076 landed the package-agnostic guard and wired it into `@objectstack/plugin-auth` only. This rolls it across the whole population: every workspace package whose `build` script invokes tsup — 67 in total, 66 newly wired — now ends its build with `node <root>/scripts/check-dts-emitted.mjs`, joined with `&&` so the guard's status is the build's status. The diff is confined to `build` script lines (66 files, 66 insertions, 66 deletions) so it stays trivially resolvable against the open PR population. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UjM2ia8Av1v5NqfqQEQmC6
1 parent a11c1a5 commit 3fb39ca

66 files changed

Lines changed: 66 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/adapters/hono/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"build": "tsup --config ../../../tsup.config.ts",
15+
"build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs",
1616
"test": "vitest run",
1717
"test:watch": "vitest"
1818
},

packages/apps/account/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup",
16+
"build": "tsup && node ../../../scripts/check-dts-emitted.mjs",
1717
"typecheck": "tsc --noEmit"
1818
},
1919
"dependencies": {

packages/apps/setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup",
16+
"build": "tsup && node ../../../scripts/check-dts-emitted.mjs",
1717
"typecheck": "tsc --noEmit"
1818
},
1919
"dependencies": {

packages/apps/studio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup",
16+
"build": "tsup && node ../../../scripts/check-dts-emitted.mjs",
1717
"typecheck": "tsc --noEmit"
1818
},
1919
"dependencies": {

packages/client-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup src/index.tsx --config ../../tsup.config.ts",
16+
"build": "tsup src/index.tsx --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs",
1717
"test": "vitest run",
1818
"test:watch": "vitest",
1919
"typecheck": "tsc --noEmit"

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup --config ../../tsup.config.ts",
16+
"build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs",
1717
"test": "vitest run",
1818
"test:integration": "vitest run --config vitest.integration.config.ts",
1919
"check:exported-any-returns": "tsx ../../scripts/check-exported-any-returns.mts --self-test && tsx ../../scripts/check-exported-any-returns.mts --package packages/client",

packages/cloud-connection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"scripts": {
17-
"build": "tsup --config ../../tsup.config.ts",
17+
"build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs",
1818
"test": "vitest run"
1919
},
2020
"dependencies": {

packages/connectors/connector-mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup --config ../../../tsup.config.ts",
16+
"build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs",
1717
"test": "vitest run --passWithNoTests",
1818
"typecheck": "tsc --noEmit"
1919
},

packages/connectors/connector-openapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup --config ../../../tsup.config.ts",
16+
"build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs",
1717
"test": "vitest run --passWithNoTests",
1818
"typecheck": "tsc --noEmit"
1919
},

packages/connectors/connector-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
"scripts": {
16-
"build": "tsup --config ../../../tsup.config.ts",
16+
"build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs",
1717
"test": "vitest run --passWithNoTests",
1818
"typecheck": "tsc --noEmit"
1919
},

0 commit comments

Comments
 (0)