From 498cee1cc4c1d02c2114a8d7d68592315c60dcae Mon Sep 17 00:00:00 2001 From: qiang Date: Thu, 21 Mar 2019 16:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- generator.js | 5 +++-- template/common-ts/tsconfig.json | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generator.js b/generator.js index 47a0f2d..2ab49a6 100644 --- a/generator.js +++ b/generator.js @@ -41,7 +41,8 @@ module.exports = (api, options, rootOptions) => { }, devDependencies: { '@babel/plugin-syntax-typescript': '^7.2.0', - '@dcloudio/types': '*', + '@types/uni-app': '*', + '@types/html5plus': '*', '@vue/cli-plugin-typescript': '^3.3.0', 'typescript': api.hasPlugin('eslint') ? '~3.1.1' : '^3.0.0' } @@ -105,4 +106,4 @@ module.exports = (api, options, rootOptions) => { await generate(path.resolve(__dirname, './template/common'), files) }) -} +} diff --git a/template/common-ts/tsconfig.json b/template/common-ts/tsconfig.json index 21e6cf5..ece882f 100644 --- a/template/common-ts/tsconfig.json +++ b/template/common-ts/tsconfig.json @@ -12,8 +12,7 @@ "sourceMap": true, "baseUrl": ".", "types": [ - "webpack-env", - "@dcloudio/types/uni-app" + "webpack-env" ], "paths": { "@/*": [