Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

ci(release): check the dialect with node's types

Maurice030918cfa919
diff --git a/.github/workflows/registration-dialect.yml b/.github/workflows/registration-dialect.yml
index 0b9f91f94..40d657619 100644
--- a/.github/workflows/registration-dialect.yml
+++ b/.github/workflows/registration-dialect.yml
@@ -120,7 +120,9 @@ jobs:
run: |
set -uo pipefail
cp "$FILE" src/nest/service-identity/registration-dialect.ts
- printf '%s\n' '{"extends": "./tsconfig.strict.json", "include": [],' \
+ # TypeScript 6 includes no @types by default and the dialect imports nothing
+ # from node, so checked on its own it would not know Buffer: name node here.
+ printf '%s\n' '{"extends": "./tsconfig.strict.json", "compilerOptions": {"types": ["node"]}, "include": [],' \
'"files": ["src/nest/service-identity/registration-dialect.ts"]}' > tsconfig.dialect-check.json
if ! npx tsc -p tsconfig.dialect-check.json --noEmit --pretty false; then
echo "::warning::The issuer's registration dialect for $VERSION does not type-check under the strict config."