From 7347e58b8fe1a1efc0d47e289ded3d4ad92b222c Mon Sep 17 00:00:00 2001 From: Xiaofan Wu Date: Fri, 12 May 2023 13:32:58 +1000 Subject: [PATCH] fix: install ts --- package-lock.json | 15 ++++++++------- package.json | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a759ec8d..522f2460d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -95,6 +95,7 @@ "svg4everybody": "^2.1.9", "svgo": "^3.0.2", "terser-webpack-plugin": "^5.3.7", + "typescript": "^5.0.4", "url-search-params-polyfill": "^8.1.1", "wcag-contrast": "^3.0.0", "webpack": "^5.78.0", @@ -23876,16 +23877,16 @@ "dev": true }, "node_modules/typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=12.20" } }, "node_modules/ua-parser-js": { @@ -42733,9 +42734,9 @@ "dev": true }, "typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "dev": true }, "ua-parser-js": { diff --git a/package.json b/package.json index 31a9017cf..c208abe63 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "clean": "rimraf dist/* docs/* lib/* es/*", "generate-types": "node ./scripts/generate-types/generateTypes.js", "copy-types": "npm run generate-types -- -c", - "type-check": "npx -p typescript tsc --allowSyntheticDefaultImports", + "type-check": "tsc --allowSyntheticDefaultImports", "deps": "ADBLOCK=true DISABLE_OPENCOLLECTIVE=true npm ci", "dist:prod": "cross-env NODE_ENV=dist node ./scripts/build.js", "dist:lib": "cross-env NODE_ENV=cjs node ./scripts/babel-build.js", @@ -147,6 +147,7 @@ "svg4everybody": "^2.1.9", "svgo": "^3.0.2", "terser-webpack-plugin": "^5.3.7", + "typescript": "^5.0.4", "url-search-params-polyfill": "^8.1.1", "wcag-contrast": "^3.0.0", "webpack": "^5.78.0",