From b1abf66e3e33da0a2e4e2c96e7cef7c664c2ecd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aykut=20Sara=C3=A7?= Date: Mon, 2 Oct 2023 11:54:30 +0300 Subject: [PATCH] chore(react): revert typescript changes --- package-lock.json | 62 +++++++++++++++++++++++++++---- package.json | 2 +- scripts/generate-react-exports.js | 3 +- 3 files changed, 57 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8f0e0396..8e910f4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -75,7 +75,7 @@ "stylelint": "^15.10.2", "stylelint-config-standard": "^34.0.0", "ts-lit-plugin": "^1.2.1", - "typescript": "5.2.2", + "typescript": "4.6.3", "wait-on": "^5.3.0" }, "engines": { @@ -8341,6 +8341,21 @@ } } }, + "node_modules/@web/test-runner-chrome/node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/@web/test-runner-chrome/node_modules/ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -21172,6 +21187,21 @@ } } }, + "node_modules/puppeteer/node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/puppeteer/node_modules/ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -24608,16 +24638,16 @@ "dev": true }, "node_modules/typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=14.17" + "node": ">=4.2.0" } }, "node_modules/typical": { @@ -31799,6 +31829,14 @@ "ws": "8.13.0" } }, + "typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "dev": true, + "optional": true, + "peer": true + }, "ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -40855,6 +40893,14 @@ "ws": "8.13.0" } }, + "typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "dev": true, + "optional": true, + "peer": true + }, "ws": { "version": "8.13.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", @@ -43425,9 +43471,9 @@ "dev": true }, "typescript": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", - "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", "dev": true }, "typical": { diff --git a/package.json b/package.json index fac3be04..5ab4802f 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "stylelint": "^15.10.2", "stylelint-config-standard": "^34.0.0", "ts-lit-plugin": "^1.2.1", - "typescript": "5.2.2", + "typescript": "4.6.3", "wait-on": "^5.3.0" }, "customElements": "dist/custom-elements.json" diff --git a/scripts/generate-react-exports.js b/scripts/generate-react-exports.js index 7e935db3..3ab13cd3 100644 --- a/scripts/generate-react-exports.js +++ b/scripts/generate-react-exports.js @@ -81,8 +81,9 @@ function getReactEventName(baklavaEventName) { function writeBaklavaReactFile(fileContentParts) { const constructorType = `type Constructor = { new (): T };`; - const content = [ + `/* eslint-disable @typescript-eslint/ban-ts-comment */`, + `// @ts-nocheck`, ...importStatements, ...eventStatements, constructorType,