Jelajahi Sumber

chore: Update all packages to TypeScript 4.1.5

Michael Bromley 4 tahun lalu
induk
melakukan
1fbefb7e11

+ 1 - 1
package.json

@@ -54,7 +54,7 @@
     "ts-jest": "^26.5.3",
     "ts-node": "^9.1.1",
     "tslint": "^6.1.3",
-    "typescript": "4.2.2"
+    "typescript": "4.1.5"
   },
   "resolutions": {
     "npm-packlist": "1.1.12"

+ 1 - 1
packages/admin-ui-plugin/package.json

@@ -23,7 +23,7 @@
     "@vendure/core": "^0.18.5",
     "express": "^4.17.1",
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   },
   "dependencies": {
     "fs-extra": "^9.0.1"

+ 1 - 1
packages/asset-server-plugin/package.json

@@ -28,7 +28,7 @@
     "express": "^4.17.1",
     "node-fetch": "^2.6.1",
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   },
   "dependencies": {
     "file-type": "^15.0.1",

+ 1 - 1
packages/common/package.json

@@ -18,6 +18,6 @@
   ],
   "devDependencies": {
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/core/package.json

@@ -98,6 +98,6 @@
     "rimraf": "^3.0.2",
     "sql.js": "1.3.2",
     "sqlite3": "^5.0.0",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/core/src/bootstrap.ts

@@ -259,7 +259,7 @@ function disableSynchronize(userConfig: Readonly<RuntimeVendureConfig>): Readonl
  */
 async function validateDbTablesForWorker(worker: INestApplicationContext) {
     const connection: Connection = worker.get(getConnectionToken());
-    await new Promise(async (resolve, reject) => {
+    await new Promise<void>(async (resolve, reject) => {
         const checkForTables = async (): Promise<boolean> => {
             try {
                 const adminCount = await connection.getRepository(Administrator).count();

+ 1 - 1
packages/create/package.json

@@ -29,7 +29,7 @@
     "@vendure/core": "^0.18.5",
     "rimraf": "^3.0.2",
     "ts-node": "^9.0.0",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   },
   "dependencies": {
     "@vendure/common": "^0.18.4",

+ 1 - 1
packages/dev-server/package.json

@@ -20,7 +20,7 @@
     "@vendure/core": "^0.18.5",
     "@vendure/elasticsearch-plugin": "^0.18.5",
     "@vendure/email-plugin": "^0.18.5",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   },
   "devDependencies": {
     "@types/csv-stringify": "^3.1.0",

+ 1 - 1
packages/elasticsearch-plugin/package.json

@@ -25,6 +25,6 @@
     "@vendure/common": "^0.18.4",
     "@vendure/core": "^0.18.5",
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/email-plugin/package.json

@@ -36,6 +36,6 @@
     "@vendure/common": "^0.18.4",
     "@vendure/core": "^0.18.5",
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/job-queue-plugin/package.json

@@ -24,6 +24,6 @@
     "@vendure/core": "^0.18.2",
     "redis": "^3.0.2",
     "rimraf": "^3.0.2",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/testing/package.json

@@ -48,6 +48,6 @@
     "mysql": "^2.18.1",
     "pg": "^8.4.0",
     "rimraf": "^3.0.0",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 1 - 1
packages/ui-devkit/package.json

@@ -57,6 +57,6 @@
     "rollup-plugin-terser": "^7.0.2",
     "rollup-plugin-typescript2": "^0.27.3",
     "tslib": "^1.10.0",
-    "typescript": "4.0.3"
+    "typescript": "4.1.5"
   }
 }

+ 0 - 10
yarn.lock

@@ -19451,21 +19451,11 @@ typescript@4.0.2:
   resolved "https://registry.npmjs.org/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2"
   integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==
 
-typescript@4.0.3:
-  version "4.0.3"
-  resolved "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
-  integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==
-
 typescript@4.1.5, typescript@~4.1.3:
   version "4.1.5"
   resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
   integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==
 
-typescript@4.2.2:
-  version "4.2.2"
-  resolved "https://registry.npmjs.org/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
-  integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
-
 ua-parser-js@^0.7.18, ua-parser-js@^0.7.23:
   version "0.7.24"
   resolved "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.24.tgz#8d3ecea46ed4f1f1d63ec25f17d8568105dc027c"