From 10c41d6630de36b5ee113cbba88091444bda359b Mon Sep 17 00:00:00 2001 From: iapyang Date: Wed, 8 Jan 2020 10:21:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=BE=93=E5=87=BAtypings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + package.json | 2 +- tsconfig.json | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2740c9f4b..de588e785 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules/ coverage unit.test.statistic.json package-lock.json +dist/lib \ No newline at end of file diff --git a/package.json b/package.json index 285b08f85..c136149d3 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "webpack:prod": "webpack -p --progress --config=webpack/webpack.prod.js --mode production", "webpack:prod:ie8": "cross-env BROWSER_VERSION=ie8 webpack -p --progress --config=webpack/webpack.prod.js --mode production", "start": "node server.js", - "build": "npm run webpack:prod && npm run webpack:prod:ie8 && grunt build", + "build": "npm run webpack:prod && npm run webpack:prod:ie8 && grunt build && tsc", "postbuild": "node ./lib/postbuild/postbuild.js", "compile": "grunt compile", "fake": "grunt fake-build", diff --git a/tsconfig.json b/tsconfig.json index e5fe6fc61..55432b902 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ ], "declaration": true, "experimentalDecorators": true, - "outDir": "./bin", + "outDir": "./dist/lib", "baseUrl": ".", // "strict": true, "strictNullChecks": true, @@ -19,7 +19,8 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + "emitDeclarationOnly": true }, "include": [ "typescript/*.ts",