From 95edc70f4e3d5af92209fe36ff98afee79c6b322 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Fri, 1 May 2020 15:38:01 +0800 Subject: [PATCH] build: resolve build issues --- server/api/gitee.ts | 2 +- server/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/api/gitee.ts b/server/api/gitee.ts index 034c094..c271eec 100644 --- a/server/api/gitee.ts +++ b/server/api/gitee.ts @@ -1,7 +1,7 @@ import fetch from 'node-fetch' import { createCodeHandler } from '.' -const { GITEE_OAUTH_CLIENT_ID, GITEE_OAUTH_CLIENT_SECRET } = process.env +const { GITEE_OAUTH_CLIENT_ID = '', GITEE_OAUTH_CLIENT_SECRET = '' } = process.env async function oauth(code: string) { const params = new URLSearchParams({ diff --git a/server/tsconfig.json b/server/tsconfig.json index 32fca7f..60f1478 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -17,7 +17,7 @@ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ + "noEmit": true /* Do not emit outputs. */, // "importHelpers": true, /* Import emit helpers from 'tslib'. */ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ @@ -60,5 +60,5 @@ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ }, - "include": ["src"] + "include": ["api"] }