diff --git a/package.json b/package.json index 671ce1e6e..16502512e 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,10 @@ "sass": "^1.22.10", "terser": "^5.3.8", "typescript": "^4.0.5", - "vue": "^2.6.10", + "vue": "^2.6.12", "vuex": "^3.1.2" }, "scripts": { - "postinstall": "node postinstall.js", "serve": "node script/server.js" }, "repository": { diff --git a/postinstall.js b/postinstall.js deleted file mode 100644 index 1ebc24099..000000000 --- a/postinstall.js +++ /dev/null @@ -1,5 +0,0 @@ -const fs = require('fs') -const path = './node_modules/vue/types/umd.d.ts' -if (fs.existsSync(path)) { - fs.unlinkSync(path) -} diff --git a/src/global.d.ts b/src/global.d.ts index 0f467116a..d5a88a848 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,10 +1,9 @@ import { LoDashStatic } from 'lodash' -import { VueConstructor } from 'vue' import { Store } from 'vuex' declare global { const _: LoDashStatic - const Vue: VueConstructor + const Vue: typeof import('vue/types/umd') const Vuex: typeof import('vuex') const JSZip: typeof import('jszip') const store: Store<{ diff --git a/yarn.lock b/yarn.lock index 47ca7f7c6..805743aa0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1873,10 +1873,10 @@ vary@^1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= -vue@^2.6.10: - version "2.6.11" - resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5" - integrity sha1-dllNh31LEiNEBuhONSdcbVFBJcU= +vue@^2.6.12: + version "2.6.12" + resolved "https://registry.nlark.com/vue/download/vue-2.6.12.tgz?cache=0&sync_timestamp=1622060354904&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fvue%2Fdownload%2Fvue-2.6.12.tgz#f5ebd4fa6bd2869403e29a896aed4904456c9123" + integrity sha1-9evU+mvShpQD4pqJau1JBEVskSM= vuex@^3.1.2: version "3.4.0"