From d560f7a725e82242962b7c4cbfdde3e3a61d0c34 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Fri, 1 Nov 2019 08:47:57 -0400 Subject: [PATCH] Fix project references of local @types/express.d.ts The `comments-server` package requires the `server` package, but previously it did not load the updates of global Express.Request definitions correctly. By adding the triple slash comment: /// to the top to the top of packages/server/src/index.ts, the issue is now resolved --- .eslintrc.yaml | 3 +++ packages/server/src/index.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 4bd0fa0..3bb2c82 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -48,6 +48,9 @@ rules: '@typescript-eslint/no-explicit-any': - warn - ignoreRestArgs: true + '@typescript-eslint/triple-slash-reference': + - warn + - path: always overrides: - files: - '*.test.ts' diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index 33582cb..3949aeb 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -1,3 +1,5 @@ +/// +/// if (require.main === module) { if (!process.env.LOG) { process.env.LOG = 'api,sql:warn'