build: resolve build issues

This commit is contained in:
EnixCoda 2020-05-01 15:38:01 +08:00
parent 992046ec8d
commit 95edc70f4e
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 3 additions and 3 deletions

View file

@ -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({

View file

@ -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"]
}