]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: add `@types/node` to ts projects
authorHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 26 Nov 2021 08:42:17 +0000 (16:42 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Fri, 26 Nov 2021 08:42:17 +0000 (16:42 +0800)
To avoid warnings on missing type declarations for the `url` module.

Ideally the version of `@types/node` should be based on the user's
node version. But the latest is accepatble for now.

18 files changed:
playground/typescript-jsx-router-vuex-with-tests/package.json
playground/typescript-jsx-router-vuex/package.json
playground/typescript-jsx-router-with-tests/package.json
playground/typescript-jsx-router/package.json
playground/typescript-jsx-vuex-with-tests/package.json
playground/typescript-jsx-vuex/package.json
playground/typescript-jsx-with-tests/package.json
playground/typescript-jsx/package.json
playground/typescript-router-vuex-with-tests/package.json
playground/typescript-router-vuex/package.json
playground/typescript-router-with-tests/package.json
playground/typescript-router/package.json
playground/typescript-vuex-with-tests/package.json
playground/typescript-vuex/package.json
playground/typescript-with-tests/package.json
playground/typescript/package.json
pnpm-lock.yaml
template/config/typescript/package.json

index 1fb734821916da84c2c969e533b5f4aeff3e71b9..3bec0c0ce14a162541795d2b6c693e4fd91da195 100644 (file)
@@ -19,6 +19,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "cypress": "^8.7.0",
index f40309638f6909ad523c723a4a52082d56b7fea6..03815111795733e3020753d2c2a1efd341835ae3 100644 (file)
@@ -13,6 +13,7 @@
     "vuex": "^4.0.2"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "typescript": "~4.4.4",
index 8412d23c4135da10f9eff59cc29a512d6afa1cc1..cc74af24d25612e071c50aa7fd0e98950dd1ad38 100644 (file)
@@ -18,6 +18,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "cypress": "^8.7.0",
index f9616b673966dac1b072e6ca2c5eb01291c29e93..d54b04ca14c9c44278c042b1c1bfe420b990f7ad 100644 (file)
@@ -12,6 +12,7 @@
     "vue-router": "^4.0.12"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "typescript": "~4.4.4",
index ee9590145f3b9944e61f307b1a8b4c939b63bd49..ae6b6ec7ca9099368b20191df8bd9148e786d8c8 100644 (file)
@@ -18,6 +18,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "cypress": "^8.7.0",
index 5e98c4ab6ac29b77ec753a37b907df5761b09bf4..fa6cb14762d7c4ce20e06f7a4f7e16a1da2377ff 100644 (file)
@@ -12,6 +12,7 @@
     "vuex": "^4.0.2"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "typescript": "~4.4.4",
index 94e29334e6b43b34a3b702e60e6f0f87852664b6..7c397df0ebae09f6cb3e3539a0fba457a4d2013e 100644 (file)
@@ -17,6 +17,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "cypress": "^8.7.0",
index 76fdc4475c6e3b88194feb7cfab2328352fa3d67..54f115c4e6740b00752d78477b46c0c60bb36733 100644 (file)
@@ -11,6 +11,7 @@
     "vue": "^3.2.22"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "@vitejs/plugin-vue-jsx": "^1.3.0",
     "typescript": "~4.4.4",
index 454b92d485d6a775988c526c1d77d9193676e188..12e461d3d0ed04f4728aa00cee3c35860d3c5dea 100644 (file)
@@ -19,6 +19,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "cypress": "^8.7.0",
     "start-server-and-test": "^1.14.0",
index 441b6eb077d9f9fb4f218e95619a25b737988fbd..f28127da54fb688e8f1b69a355fdd7809c70fb65 100644 (file)
@@ -13,6 +13,7 @@
     "vuex": "^4.0.2"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "typescript": "~4.4.4",
     "vite": "^2.6.14",
index d84402afc2106140219d7535c2c6f27b13381372..a310df69b051e94fbfc98e004a6037e76ed6a37d 100644 (file)
@@ -18,6 +18,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "cypress": "^8.7.0",
     "start-server-and-test": "^1.14.0",
index 61a4d6eedab1f72b3832ec97f1b6c18273b42eba..5d5ea1614f431f5b07722f1d70b25d54d4a85acd 100644 (file)
@@ -12,6 +12,7 @@
     "vue-router": "^4.0.12"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "typescript": "~4.4.4",
     "vite": "^2.6.14",
index 4080179c232434f134ef9309c154e4ae1eb30b5f..0327c12bf5fb9ef2905021ca1a34d1f961ebad22 100644 (file)
@@ -18,6 +18,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "cypress": "^8.7.0",
     "start-server-and-test": "^1.14.0",
index 97d665857db65847155bee046becd420e454a81f..a3d591c1c78a4c8d6a5ecf57e1cb70a86388b072 100644 (file)
@@ -12,6 +12,7 @@
     "vuex": "^4.0.2"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "typescript": "~4.4.4",
     "vite": "^2.6.14",
index 059df355617d6cae482a62f8ab34a59f2d4697ad..e9d23e6734ff1fd091d4934aa43ed96e4112e440 100644 (file)
@@ -17,6 +17,7 @@
   "devDependencies": {
     "@cypress/vite-dev-server": "^2.2.1",
     "@cypress/vue": "^3.0.5",
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "cypress": "^8.7.0",
     "start-server-and-test": "^1.14.0",
index c11c89a69ec480924e2e124758474210c7de0e3f..f70d3e791e613758eb6fe1914c42ea886cfaf4c3 100644 (file)
@@ -11,6 +11,7 @@
     "vue": "^3.2.22"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "@vitejs/plugin-vue": "^1.10.0",
     "typescript": "~4.4.4",
     "vite": "^2.6.14",
index 3c9cbbf82bf3e70ca391ac6dcff1c49fec7504db..0d44d008069e72961d259e5d869c7fe9c73b4213 100644 (file)
@@ -259,6 +259,7 @@ importers:
 
   playground/typescript:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       typescript: ~4.4.4
       vite: ^2.6.14
@@ -267,6 +268,7 @@ importers:
     dependencies:
       vue: 3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       typescript: 4.4.4
       vite: 2.6.14
@@ -274,6 +276,7 @@ importers:
 
   playground/typescript-jsx:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       typescript: ~4.4.4
@@ -283,6 +286,7 @@ importers:
     dependencies:
       vue: 3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       typescript: 4.4.4
@@ -291,6 +295,7 @@ importers:
 
   playground/typescript-jsx-router:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       typescript: ~4.4.4
@@ -302,6 +307,7 @@ importers:
       vue: 3.2.22
       vue-router: 4.0.12_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       typescript: 4.4.4
@@ -310,6 +316,7 @@ importers:
 
   playground/typescript-jsx-router-vuex:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       typescript: ~4.4.4
@@ -323,6 +330,7 @@ importers:
       vue-router: 4.0.12_vue@3.2.22
       vuex: 4.0.2_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       typescript: 4.4.4
@@ -333,6 +341,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       cypress: ^8.7.0
@@ -350,6 +359,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       cypress: 8.7.0
@@ -362,6 +372,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       cypress: ^8.7.0
@@ -377,6 +388,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       cypress: 8.7.0
@@ -387,6 +399,7 @@ importers:
 
   playground/typescript-jsx-vuex:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       typescript: ~4.4.4
@@ -398,6 +411,7 @@ importers:
       vue: 3.2.22
       vuex: 4.0.2_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       typescript: 4.4.4
@@ -408,6 +422,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       cypress: ^8.7.0
@@ -423,6 +438,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       cypress: 8.7.0
@@ -435,6 +451,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       '@vitejs/plugin-vue-jsx': ^1.3.0
       cypress: ^8.7.0
@@ -448,6 +465,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       '@vitejs/plugin-vue-jsx': 1.3.0
       cypress: 8.7.0
@@ -458,6 +476,7 @@ importers:
 
   playground/typescript-router:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       typescript: ~4.4.4
       vite: ^2.6.14
@@ -468,6 +487,7 @@ importers:
       vue: 3.2.22
       vue-router: 4.0.12_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       typescript: 4.4.4
       vite: 2.6.14
@@ -475,6 +495,7 @@ importers:
 
   playground/typescript-router-vuex:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       typescript: ~4.4.4
       vite: ^2.6.14
@@ -487,6 +508,7 @@ importers:
       vue-router: 4.0.12_vue@3.2.22
       vuex: 4.0.2_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       typescript: 4.4.4
       vite: 2.6.14
@@ -496,6 +518,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       cypress: ^8.7.0
       start-server-and-test: ^1.14.0
@@ -512,6 +535,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       cypress: 8.7.0
       start-server-and-test: 1.14.0
@@ -523,6 +547,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       cypress: ^8.7.0
       start-server-and-test: ^1.14.0
@@ -537,6 +562,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       cypress: 8.7.0
       start-server-and-test: 1.14.0
@@ -546,6 +572,7 @@ importers:
 
   playground/typescript-vuex:
     specifiers:
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       typescript: ~4.4.4
       vite: ^2.6.14
@@ -556,6 +583,7 @@ importers:
       vue: 3.2.22
       vuex: 4.0.2_vue@3.2.22
     devDependencies:
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       typescript: 4.4.4
       vite: 2.6.14
@@ -565,6 +593,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       cypress: ^8.7.0
       start-server-and-test: ^1.14.0
@@ -579,6 +608,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       cypress: 8.7.0
       start-server-and-test: 1.14.0
@@ -590,6 +620,7 @@ importers:
     specifiers:
       '@cypress/vite-dev-server': ^2.2.1
       '@cypress/vue': ^3.0.5
+      '@types/node': ^16.11.10
       '@vitejs/plugin-vue': ^1.10.0
       cypress: ^8.7.0
       start-server-and-test: ^1.14.0
@@ -602,6 +633,7 @@ importers:
     devDependencies:
       '@cypress/vite-dev-server': 2.2.1_vite@2.6.14
       '@cypress/vue': 3.0.5_cypress@8.7.0+vue@3.2.22
+      '@types/node': 16.11.10
       '@vitejs/plugin-vue': 1.10.0_vite@2.6.14
       cypress: 8.7.0
       start-server-and-test: 1.14.0
@@ -1068,6 +1100,10 @@ packages:
     resolution: {integrity: sha512-USUftMYpmuMzeWobskoPfzDi+vkpe0dvcOBRNOscFrGxVp4jomnRxWuVohgqBow2xyIPC0S3gjxV/5079jhmDg==}
     dev: true
 
+  /@types/node/16.11.10:
+    resolution: {integrity: sha512-3aRnHa1KlOEEhJ6+CvyHKK5vE9BcLGjtUpwvqYLRvYNQKMfabu3BwfJaA/SLW8dxe28LsNDjtHwePTuzn3gmOA==}
+    dev: true
+
   /@types/sinonjs__fake-timers/6.0.4:
     resolution: {integrity: sha512-IFQTJARgMUBF+xVd2b+hIgXWrZEjND3vJtRCvIelcFB5SIXfjV4bOHbHJ0eXKh+0COrBRc8MqteKAz/j88rE0A==}
     dev: true
index 1735112be770fdc638de9e5c3c14907879d8ed42..4d0fef9ea404a8fe45b5eff840ec6c928318f03b 100644 (file)
@@ -4,6 +4,7 @@
     "typecheck": "vue-tsc --noEmit"
   },
   "devDependencies": {
+    "@types/node": "^16.11.10",
     "typescript": "~4.4.4",
     "vue-tsc": "^0.29.6"
   }