From 3fb39ca3a14260559468fe7d98dbc1a869219cb3 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 25 Aug 2026 11:12:47 +0000 Subject: [PATCH] build: run check-dts-emitted at the end of every tsup-built package's build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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 /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 Claude-Session: https://claude.ai/code/session_01UjM2ia8Av1v5NqfqQEQmC6 --- packages/adapters/hono/package.json | 2 +- packages/apps/account/package.json | 2 +- packages/apps/setup/package.json | 2 +- packages/apps/studio/package.json | 2 +- packages/client-react/package.json | 2 +- packages/client/package.json | 2 +- packages/cloud-connection/package.json | 2 +- packages/connectors/connector-mcp/package.json | 2 +- packages/connectors/connector-openapi/package.json | 2 +- packages/connectors/connector-rest/package.json | 2 +- packages/connectors/connector-slack/package.json | 2 +- packages/core/package.json | 2 +- packages/create-objectstack/package.json | 2 +- packages/drivers/driver-memory/package.json | 2 +- packages/drivers/driver-mongodb/package.json | 2 +- packages/drivers/driver-sql/package.json | 2 +- packages/drivers/driver-sqlite-wasm/package.json | 2 +- packages/drivers/driver-turso/package.json | 2 +- packages/formula/package.json | 2 +- packages/lint/package.json | 2 +- packages/mcp/package.json | 2 +- packages/metadata-core/package.json | 2 +- packages/metadata-fs/package.json | 2 +- packages/metadata-protocol/package.json | 2 +- packages/metadata/package.json | 2 +- packages/objectql/package.json | 2 +- packages/observability/package.json | 2 +- packages/platform-objects/package.json | 2 +- packages/plugins/embedder-openai/package.json | 2 +- packages/plugins/knowledge-memory/package.json | 2 +- packages/plugins/knowledge-ragflow/package.json | 2 +- packages/plugins/plugin-approvals/package.json | 2 +- packages/plugins/plugin-audit/package.json | 2 +- packages/plugins/plugin-dev/package.json | 2 +- packages/plugins/plugin-email/package.json | 2 +- packages/plugins/plugin-hono-server/package.json | 2 +- packages/plugins/plugin-pinyin-search/package.json | 2 +- packages/plugins/plugin-reports/package.json | 2 +- packages/plugins/plugin-security/package.json | 2 +- packages/plugins/plugin-sharing/package.json | 2 +- packages/plugins/plugin-webhooks/package.json | 2 +- packages/rest/package.json | 2 +- packages/runtime/package.json | 2 +- packages/sdui-parser/package.json | 2 +- packages/services/service-analytics/package.json | 2 +- packages/services/service-automation/package.json | 2 +- packages/services/service-cache/package.json | 2 +- packages/services/service-cluster-redis/package.json | 2 +- packages/services/service-cluster/package.json | 2 +- packages/services/service-datasource/package.json | 2 +- packages/services/service-i18n/package.json | 2 +- packages/services/service-job/package.json | 2 +- packages/services/service-knowledge/package.json | 2 +- packages/services/service-messaging/package.json | 2 +- packages/services/service-package/package.json | 2 +- packages/services/service-queue/package.json | 2 +- packages/services/service-realtime/package.json | 2 +- packages/services/service-settings/package.json | 2 +- packages/services/service-sms/package.json | 2 +- packages/services/service-storage/package.json | 2 +- packages/spec/package.json | 2 +- packages/triggers/trigger-api/package.json | 2 +- packages/triggers/trigger-record-change/package.json | 2 +- packages/triggers/trigger-schedule/package.json | 2 +- packages/types/package.json | 2 +- packages/verify/package.json | 2 +- 66 files changed, 66 insertions(+), 66 deletions(-) diff --git a/packages/adapters/hono/package.json b/packages/adapters/hono/package.json index a3915889a1..2c058107f6 100644 --- a/packages/adapters/hono/package.json +++ b/packages/adapters/hono/package.json @@ -12,7 +12,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/apps/account/package.json b/packages/apps/account/package.json index ea2bc77c7f..4c13c1b396 100644 --- a/packages/apps/account/package.json +++ b/packages/apps/account/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit" }, "dependencies": { diff --git a/packages/apps/setup/package.json b/packages/apps/setup/package.json index 00bdf16fcb..fcf250b258 100644 --- a/packages/apps/setup/package.json +++ b/packages/apps/setup/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit" }, "dependencies": { diff --git a/packages/apps/studio/package.json b/packages/apps/studio/package.json index c8573cbc5c..23f587d4c5 100644 --- a/packages/apps/studio/package.json +++ b/packages/apps/studio/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit" }, "dependencies": { diff --git a/packages/client-react/package.json b/packages/client-react/package.json index 04fe0b30fa..b10d938ef6 100644 --- a/packages/client-react/package.json +++ b/packages/client-react/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup src/index.tsx --config ../../tsup.config.ts", + "build": "tsup src/index.tsx --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "test:watch": "vitest", "typecheck": "tsc --noEmit" diff --git a/packages/client/package.json b/packages/client/package.json index 93e5387ce9..86b6f93a93 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "test:integration": "vitest run --config vitest.integration.config.ts", "check:exported-any-returns": "tsx ../../scripts/check-exported-any-returns.mts --self-test && tsx ../../scripts/check-exported-any-returns.mts --package packages/client", diff --git a/packages/cloud-connection/package.json b/packages/cloud-connection/package.json index 0e69b76768..f7cceac7ec 100644 --- a/packages/cloud-connection/package.json +++ b/packages/cloud-connection/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/connectors/connector-mcp/package.json b/packages/connectors/connector-mcp/package.json index b9a5c77364..e5a3337bca 100644 --- a/packages/connectors/connector-mcp/package.json +++ b/packages/connectors/connector-mcp/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/connectors/connector-openapi/package.json b/packages/connectors/connector-openapi/package.json index 1878199797..1a6ad04609 100644 --- a/packages/connectors/connector-openapi/package.json +++ b/packages/connectors/connector-openapi/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/connectors/connector-rest/package.json b/packages/connectors/connector-rest/package.json index a7980d95bd..4c5153f3f6 100644 --- a/packages/connectors/connector-rest/package.json +++ b/packages/connectors/connector-rest/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/connectors/connector-slack/package.json b/packages/connectors/connector-slack/package.json index 58209d8dac..909f052546 100644 --- a/packages/connectors/connector-slack/package.json +++ b/packages/connectors/connector-slack/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/core/package.json b/packages/core/package.json index d86d114cc7..40e77c21a7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "test:watch": "vitest" }, diff --git a/packages/create-objectstack/package.json b/packages/create-objectstack/package.json index db1f795189..5d1d60eca2 100644 --- a/packages/create-objectstack/package.json +++ b/packages/create-objectstack/package.json @@ -12,7 +12,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "dev": "tsup --watch", "test": "vitest run" diff --git a/packages/drivers/driver-memory/package.json b/packages/drivers/driver-memory/package.json index 52a872a036..88d91bbaf0 100644 --- a/packages/drivers/driver-memory/package.json +++ b/packages/drivers/driver-memory/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/drivers/driver-mongodb/package.json b/packages/drivers/driver-mongodb/package.json index 92cc662e6d..7c6bc7c37b 100644 --- a/packages/drivers/driver-mongodb/package.json +++ b/packages/drivers/driver-mongodb/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/drivers/driver-sql/package.json b/packages/drivers/driver-sql/package.json index bcb6e0498b..a3adffd24d 100644 --- a/packages/drivers/driver-sql/package.json +++ b/packages/drivers/driver-sql/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/drivers/driver-sqlite-wasm/package.json b/packages/drivers/driver-sqlite-wasm/package.json index 594b5bcb40..81d9a6b193 100644 --- a/packages/drivers/driver-sqlite-wasm/package.json +++ b/packages/drivers/driver-sqlite-wasm/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/drivers/driver-turso/package.json b/packages/drivers/driver-turso/package.json index 5321dbb087..353a2902a9 100644 --- a/packages/drivers/driver-turso/package.json +++ b/packages/drivers/driver-turso/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/formula/package.json b/packages/formula/package.json index 76724b47a7..418d169cb0 100644 --- a/packages/formula/package.json +++ b/packages/formula/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/lint/package.json b/packages/lint/package.json index c8b9ce79b5..e8392e7408 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index e6f39d825e..055baaeddb 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/metadata-core/package.json b/packages/metadata-core/package.json index ebd28eaffc..bfa5047705 100644 --- a/packages/metadata-core/package.json +++ b/packages/metadata-core/package.json @@ -24,7 +24,7 @@ "CHANGELOG.md" ], "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "vitest run", diff --git a/packages/metadata-fs/package.json b/packages/metadata-fs/package.json index 388443c44d..2ef7c0d2f1 100644 --- a/packages/metadata-fs/package.json +++ b/packages/metadata-fs/package.json @@ -19,7 +19,7 @@ "CHANGELOG.md" ], "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "vitest run", diff --git a/packages/metadata-protocol/package.json b/packages/metadata-protocol/package.json index 8aa515de3e..205e489483 100644 --- a/packages/metadata-protocol/package.json +++ b/packages/metadata-protocol/package.json @@ -19,7 +19,7 @@ "CHANGELOG.md" ], "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "vitest run", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 683c11f467..b433431d38 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -34,7 +34,7 @@ "CHANGELOG.md" ], "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc --watch", "clean": "rm -rf dist", "test": "vitest run", diff --git a/packages/objectql/package.json b/packages/objectql/package.json index ea79b11be1..23dd18dee2 100644 --- a/packages/objectql/package.json +++ b/packages/objectql/package.json @@ -18,7 +18,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/observability/package.json b/packages/observability/package.json index 3e24b0901e..ae1f5cc9f0 100644 --- a/packages/observability/package.json +++ b/packages/observability/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/platform-objects/package.json b/packages/platform-objects/package.json index 2e14cda695..310676c89f 100644 --- a/packages/platform-objects/package.json +++ b/packages/platform-objects/package.json @@ -63,7 +63,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/plugins/embedder-openai/package.json b/packages/plugins/embedder-openai/package.json index 83aef704fd..231aeb3396 100644 --- a/packages/plugins/embedder-openai/package.json +++ b/packages/plugins/embedder-openai/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/plugins/knowledge-memory/package.json b/packages/plugins/knowledge-memory/package.json index 00c6e9cdae..9dc25205a0 100644 --- a/packages/plugins/knowledge-memory/package.json +++ b/packages/plugins/knowledge-memory/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/plugins/knowledge-ragflow/package.json b/packages/plugins/knowledge-ragflow/package.json index 134b2cb649..2e2df76042 100644 --- a/packages/plugins/knowledge-ragflow/package.json +++ b/packages/plugins/knowledge-ragflow/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run" }, diff --git a/packages/plugins/plugin-approvals/package.json b/packages/plugins/plugin-approvals/package.json index ebc41aa161..a1e68fe728 100644 --- a/packages/plugins/plugin-approvals/package.json +++ b/packages/plugins/plugin-approvals/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json", "test": "vitest run --passWithNoTests" }, diff --git a/packages/plugins/plugin-audit/package.json b/packages/plugins/plugin-audit/package.json index 42a43be874..c186a0fe70 100644 --- a/packages/plugins/plugin-audit/package.json +++ b/packages/plugins/plugin-audit/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/plugins/plugin-dev/package.json b/packages/plugins/plugin-dev/package.json index 687b64a50d..e5157d8395 100644 --- a/packages/plugins/plugin-dev/package.json +++ b/packages/plugins/plugin-dev/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/plugins/plugin-email/package.json b/packages/plugins/plugin-email/package.json index bbc7420e49..01c9a88251 100644 --- a/packages/plugins/plugin-email/package.json +++ b/packages/plugins/plugin-email/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/plugins/plugin-hono-server/package.json b/packages/plugins/plugin-hono-server/package.json index 4295b93756..367e37ef64 100644 --- a/packages/plugins/plugin-hono-server/package.json +++ b/packages/plugins/plugin-hono-server/package.json @@ -6,7 +6,7 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/plugins/plugin-pinyin-search/package.json b/packages/plugins/plugin-pinyin-search/package.json index 7906af828c..a4cec2237e 100644 --- a/packages/plugins/plugin-pinyin-search/package.json +++ b/packages/plugins/plugin-pinyin-search/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/plugins/plugin-reports/package.json b/packages/plugins/plugin-reports/package.json index fbeab87afa..330ebcc98d 100644 --- a/packages/plugins/plugin-reports/package.json +++ b/packages/plugins/plugin-reports/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/plugins/plugin-security/package.json b/packages/plugins/plugin-security/package.json index bf911abc9b..01cc9e0ed4 100644 --- a/packages/plugins/plugin-security/package.json +++ b/packages/plugins/plugin-security/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/plugins/plugin-sharing/package.json b/packages/plugins/plugin-sharing/package.json index 0a66a7af56..8fd0d866f9 100644 --- a/packages/plugins/plugin-sharing/package.json +++ b/packages/plugins/plugin-sharing/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/plugins/plugin-webhooks/package.json b/packages/plugins/plugin-webhooks/package.json index 291a4846f9..ba903777d4 100644 --- a/packages/plugins/plugin-webhooks/package.json +++ b/packages/plugins/plugin-webhooks/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json" }, diff --git a/packages/rest/package.json b/packages/rest/package.json index 7cfe5cf1cd..0a073f510b 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit" diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 253bf53522..48c027a06a 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config tsup.config.ts", + "build": "tsup --config tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "typecheck": "tsc --noEmit", "test": "vitest run" diff --git a/packages/sdui-parser/package.json b/packages/sdui-parser/package.json index 11b301b892..59e6fab6fd 100644 --- a/packages/sdui-parser/package.json +++ b/packages/sdui-parser/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/services/service-analytics/package.json b/packages/services/service-analytics/package.json index c2cf5a3b37..5760448f3c 100644 --- a/packages/services/service-analytics/package.json +++ b/packages/services/service-analytics/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/services/service-automation/package.json b/packages/services/service-automation/package.json index cb77ca907d..848384c314 100644 --- a/packages/services/service-automation/package.json +++ b/packages/services/service-automation/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/services/service-cache/package.json b/packages/services/service-cache/package.json index 5be7d646b4..e82f367a6f 100644 --- a/packages/services/service-cache/package.json +++ b/packages/services/service-cache/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/services/service-cluster-redis/package.json b/packages/services/service-cluster-redis/package.json index 2fded5360b..1a8eeef897 100644 --- a/packages/services/service-cluster-redis/package.json +++ b/packages/services/service-cluster-redis/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run", "typecheck": "tsc --noEmit" }, diff --git a/packages/services/service-cluster/package.json b/packages/services/service-cluster/package.json index af9ba8af13..00b7469ab7 100644 --- a/packages/services/service-cluster/package.json +++ b/packages/services/service-cluster/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/services/service-datasource/package.json b/packages/services/service-datasource/package.json index b80c7a6e19..a2a42d714e 100644 --- a/packages/services/service-datasource/package.json +++ b/packages/services/service-datasource/package.json @@ -19,7 +19,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../../scripts/check-dts-emitted.mjs", "dev": "tsup --watch", "test": "vitest run", "test:watch": "vitest", diff --git a/packages/services/service-i18n/package.json b/packages/services/service-i18n/package.json index 092f4db47a..fe1ff712ad 100644 --- a/packages/services/service-i18n/package.json +++ b/packages/services/service-i18n/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/services/service-job/package.json b/packages/services/service-job/package.json index f4938e76b1..1a2c612871 100644 --- a/packages/services/service-job/package.json +++ b/packages/services/service-job/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/services/service-knowledge/package.json b/packages/services/service-knowledge/package.json index 0b8bc18c9b..2cfa109743 100644 --- a/packages/services/service-knowledge/package.json +++ b/packages/services/service-knowledge/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/services/service-messaging/package.json b/packages/services/service-messaging/package.json index 1642038aa2..31cedc75ce 100644 --- a/packages/services/service-messaging/package.json +++ b/packages/services/service-messaging/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json", "test": "vitest run" }, diff --git a/packages/services/service-package/package.json b/packages/services/service-package/package.json index ffcf73eab4..1d2aa7aa42 100644 --- a/packages/services/service-package/package.json +++ b/packages/services/service-package/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/services/service-queue/package.json b/packages/services/service-queue/package.json index 09d560f8d3..3aa1196fd2 100644 --- a/packages/services/service-queue/package.json +++ b/packages/services/service-queue/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/services/service-realtime/package.json b/packages/services/service-realtime/package.json index d9a5f0e429..672c22a134 100644 --- a/packages/services/service-realtime/package.json +++ b/packages/services/service-realtime/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.scripts.json", "test": "vitest run" }, diff --git a/packages/services/service-settings/package.json b/packages/services/service-settings/package.json index 821a7a0b1a..33383f8b49 100644 --- a/packages/services/service-settings/package.json +++ b/packages/services/service-settings/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/services/service-sms/package.json b/packages/services/service-sms/package.json index 74a98f4a4c..b9fde3e2f0 100644 --- a/packages/services/service-sms/package.json +++ b/packages/services/service-sms/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/services/service-storage/package.json b/packages/services/service-storage/package.json index b6a10e6076..b3ad456897 100644 --- a/packages/services/service-storage/package.json +++ b/packages/services/service-storage/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run" }, "dependencies": { diff --git a/packages/spec/package.json b/packages/spec/package.json index 0f41220382..81a999ff76 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -243,7 +243,7 @@ "spec-changes.json" ], "scripts": { - "build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=12288\" BUILD_DTS=true tsup; fi && node ../../scripts/check-dev-prereqs.mjs --stamp", + "build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=12288\" BUILD_DTS=true tsup; fi && node ../../scripts/check-dts-emitted.mjs && node ../../scripts/check-dev-prereqs.mjs --stamp", "dev": "tsc --watch", "clean": "rm -rf dist", "gen:schema": "OS_EAGER_SCHEMAS=1 tsx scripts/build-schemas.ts", diff --git a/packages/triggers/trigger-api/package.json b/packages/triggers/trigger-api/package.json index 51b7049bea..01f5a0696a 100644 --- a/packages/triggers/trigger-api/package.json +++ b/packages/triggers/trigger-api/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/triggers/trigger-record-change/package.json b/packages/triggers/trigger-record-change/package.json index be43c02531..3e7fc6669b 100644 --- a/packages/triggers/trigger-record-change/package.json +++ b/packages/triggers/trigger-record-change/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.test.json" }, diff --git a/packages/triggers/trigger-schedule/package.json b/packages/triggers/trigger-schedule/package.json index 3909564c30..a91d47bc5e 100644 --- a/packages/triggers/trigger-schedule/package.json +++ b/packages/triggers/trigger-schedule/package.json @@ -13,7 +13,7 @@ } }, "scripts": { - "build": "tsup --config ../../../tsup.config.ts", + "build": "tsup --config ../../../tsup.config.ts && node ../../../scripts/check-dts-emitted.mjs", "test": "vitest run --passWithNoTests", "typecheck": "tsc --noEmit" }, diff --git a/packages/types/package.json b/packages/types/package.json index f5d6168cf5..6b9ee26008 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -18,7 +18,7 @@ } }, "scripts": { - "build": "tsup", + "build": "tsup && node ../../scripts/check-dts-emitted.mjs", "typecheck": "tsc --noEmit", "test": "vitest run" }, diff --git a/packages/verify/package.json b/packages/verify/package.json index 92adc06cde..4604f35f57 100644 --- a/packages/verify/package.json +++ b/packages/verify/package.json @@ -14,7 +14,7 @@ } }, "scripts": { - "build": "tsup --config ../../tsup.config.ts", + "build": "tsup --config ../../tsup.config.ts && node ../../scripts/check-dts-emitted.mjs", "dev": "tsc -w", "test": "vitest run", "typecheck": "tsc --noEmit"