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": { "@/*": [