From 1231593315b3eb76c04513dd246b56fb68df5314 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 06:27:41 -0700 Subject: [PATCH 01/15] Use composite build command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 639e726f..9e5114a4 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "clean:language": "del-cli language/*.tmLanguage.json", "clean:out": "del-cli out", "compile-grammar": "js-yaml language/ahk.tmLanguage.yaml > language/ahk.tmLanguage.json && js-yaml language/ahk2.tmLanguage.yaml > language/ahk2.tmLanguage.json", - "compile-ts": "tsc -p ./", + "compile-ts": "tsc -b", "eslint": "npm run eslint:files -- src && echo No ESLint problems", "eslint:files": "eslint --max-warnings=0", "eslint:fix": "npm run eslint:files -- src --fix", From 187d3c65beaad405ee5de1c5839d405bebeb8e05 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:08:31 -0700 Subject: [PATCH 02/15] Remove submodule --- src/ahk2 | 1 - 1 file changed, 1 deletion(-) delete mode 160000 src/ahk2 diff --git a/src/ahk2 b/src/ahk2 deleted file mode 160000 index d936c0a0..00000000 --- a/src/ahk2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d936c0a0798557cbc8bb87d399532c66c89b6e05 From 3a8e9fa47da1c1abf1292ba67df3514277ca3a00 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:24:06 -0700 Subject: [PATCH 03/15] Move submodule to top level --- .gitmodules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index d53e4eda..32c36cca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "src/ahk2"] - path = src/ahk2 - url = https://github.com/mark-wiemer-org/vscode-autohotkey2-lsp +[submodule "ahk2"] + path = ahk2 + url = https://github.com/mark-wiemer-org/vscode-autohotkey2-lsp.git From 510e738d03a75678b8168029c7bd3b978a40eb12 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:24:29 -0700 Subject: [PATCH 04/15] Update tsconfig for submodule --- tsconfig.json | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 90938f09..fbe1e402 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,27 +6,31 @@ "experimentalDecorators": true, "lib": ["es6", "es2017", "es2019"], "sourceMap": true, - "rootDir": "src", + "rootDirs": ["src", "ahk2/client"], - // Type checking - "alwaysStrict": true, - // "exactOptionalPropertyTypes": true, // TODO - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitOverride": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noPropertyAccessFromIndexSignature": true, - "noUncheckedIndexedAccess": true, - // "strict": true // TODO - "strictBindCallApply": true, - "strictFunctionTypes": true, - // "strictNullChecks": true // TODO - // "strictPropertyInitialization": true // TODO - "useUnknownInCatchVariables": true, + // todo move all type checking to ESLint for maintainability + // "alwaysStrict": true, + // // "exactOptionalPropertyTypes": true, // TODO + // "noFallthroughCasesInSwitch": true, + // "noImplicitOverride": true, + // "noImplicitReturns": true, + // "noImplicitThis": true, + // "noPropertyAccessFromIndexSignature": true, + // "noUncheckedIndexedAccess": true, + // // "strict": true // TODO + // "strictBindCallApply": true, + // "strictFunctionTypes": true, + // // "strictNullChecks": true // TODO + // // "strictPropertyInitialization": true // TODO + // "useUnknownInCatchVariables": true, // ESM "esModuleInterop": true }, - "exclude": ["node_modules", "src/ahk2"] + "exclude": ["node_modules"], + "references": [ + { + "path": "./ahk2/client" + } + ] } From e78ff458d07739ee4be6d889ea978a04dd6100fb Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:26:52 -0700 Subject: [PATCH 05/15] Make @types/vscode match submodule version --- package-lock.json | 17 +++++++++-------- package.json | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 25b6b44a..f2755bdd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@types/glob": "^7.1.3", "@types/mocha": "^9.1.1", "@types/node": "^17.0.23", - "@types/vscode": "^1.50.0", + "@types/vscode": "1.90.0", "@types/xml2js": "^0.4.11", "@vscode/test-electron": "^2.3.10", "@vscode/vsce": "^3.0.0", @@ -1200,10 +1200,11 @@ "license": "MIT" }, "node_modules/@types/vscode": { - "version": "1.68.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.68.0.tgz", - "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", - "dev": true + "version": "1.90.0", + "resolved": "https://registry.npmmirror.com/@types/vscode/-/vscode-1.90.0.tgz", + "integrity": "sha512-oT+ZJL7qHS9Z8bs0+WKf/kQ27qWYR3trsXpq46YDjFqBsMLG4ygGGjPaJ2tyrH0wJzjOEmDyg9PDJBBhWg9pkQ==", + "dev": true, + "license": "MIT" }, "node_modules/@types/xml2js": { "version": "0.4.11", @@ -7635,9 +7636,9 @@ "dev": true }, "@types/vscode": { - "version": "1.68.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.68.0.tgz", - "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", + "version": "1.90.0", + "resolved": "https://registry.npmmirror.com/@types/vscode/-/vscode-1.90.0.tgz", + "integrity": "sha512-oT+ZJL7qHS9Z8bs0+WKf/kQ27qWYR3trsXpq46YDjFqBsMLG4ygGGjPaJ2tyrH0wJzjOEmDyg9PDJBBhWg9pkQ==", "dev": true }, "@types/xml2js": { diff --git a/package.json b/package.json index 9e5114a4..451ed23f 100644 --- a/package.json +++ b/package.json @@ -531,7 +531,7 @@ "@types/glob": "^7.1.3", "@types/mocha": "^9.1.1", "@types/node": "^17.0.23", - "@types/vscode": "^1.50.0", + "@types/vscode": "1.90.0", "@types/xml2js": "^0.4.11", "@vscode/test-electron": "^2.3.10", "@vscode/vsce": "^3.0.0", From 2d4085c94a818450ec0f98f26c4a91bd2b3eeca3 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:29:23 -0700 Subject: [PATCH 06/15] Use correct libraries for submodule compatibility --- tsconfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index fbe1e402..1e240fba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2019", + "target": "ES2022", + "lib": ["es6", "es2017", "es2019", "ES2022", "WebWorker"], "outDir": "out", "experimentalDecorators": true, - "lib": ["es6", "es2017", "es2019"], "sourceMap": true, "rootDirs": ["src", "ahk2/client"], @@ -27,7 +27,7 @@ // ESM "esModuleInterop": true }, - "exclude": ["node_modules"], + "exclude": ["node_modules", "./ahk2/node_modules"], "references": [ { "path": "./ahk2/client" From 104a09c5257d2dafa997d4466735b45d1e0322eb Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:40:08 -0700 Subject: [PATCH 07/15] Use Node 20 --- Contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contributing.md b/Contributing.md index ca689108..6d3722e5 100644 --- a/Contributing.md +++ b/Contributing.md @@ -9,7 +9,7 @@ I welcome any issues or PRs :) 1. Clone the repo 1. Install the relevant dependencies - VS Code Insiders (needed to run the tests from CLI, see [using Insiders version for extension development](https://code.visualstudio.com/api/working-with-extensions/testing-extension#using-insiders-version-for-extension-development)) - - [Node 16](https://nodejs.org/en/), which comes automatically bundled with npm 8, another dependency. + - [Node 20](https://nodejs.org/en/), which comes automatically bundled with npm 8, another dependency. 1. `npm i` 1. Use `bash` to run the npm scripts. They use commands that are not compatible with PowerShell. Use this setting: `"terminal.integrated.defaultProfile.windows": "Git Bash"` > If you use Command Prompt or PowerShell, you may see errors like From c7b65870caf66707b89723990e3b61ea2c7180e4 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:40:22 -0700 Subject: [PATCH 08/15] Use Node 20 to build --- .github/workflows/node.js.yml | 2 +- package-lock.json | 38 ++++++++++++++++++++++++++--------- package.json | 2 +- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eaf9e7cd..05750265 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -18,7 +18,7 @@ jobs: # AHK is built for Windows only, so we only build on Windows # As always, if community asks, community shall receive ;) os: [windows-latest] - node-version: [22.x] + node-version: [20.x] runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/package-lock.json b/package-lock.json index f2755bdd..7959679c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@types/fs-extra": "^9.0.7", "@types/glob": "^7.1.3", "@types/mocha": "^9.1.1", - "@types/node": "^17.0.23", + "@types/node": "^20.16.0", "@types/vscode": "1.90.0", "@types/xml2js": "^0.4.11", "@vscode/test-electron": "^2.3.10", @@ -1187,10 +1187,14 @@ "dev": true }, "node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", - "dev": true + "version": "20.16.0", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.16.0.tgz", + "integrity": "sha512-vDxceJcoZhIVh67S568bm1UGZO0DX0hpplJZxzeXMKwIPLn190ec5RRxQ69BKhX44SUGIxxgMdDY557lGLKprQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.4", @@ -6570,6 +6574,13 @@ "dev": true, "license": "MIT" }, + "node_modules/undici-types": { + "version": "6.19.6", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.19.6.tgz", + "integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==", + "dev": true, + "license": "MIT" + }, "node_modules/universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", @@ -7624,10 +7635,13 @@ "dev": true }, "@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", - "dev": true + "version": "20.16.0", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.16.0.tgz", + "integrity": "sha512-vDxceJcoZhIVh67S568bm1UGZO0DX0hpplJZxzeXMKwIPLn190ec5RRxQ69BKhX44SUGIxxgMdDY557lGLKprQ==", + "dev": true, + "requires": { + "undici-types": "~6.19.2" + } }, "@types/normalize-package-data": { "version": "2.4.4", @@ -11353,6 +11367,12 @@ "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==", "dev": true }, + "undici-types": { + "version": "6.19.6", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.19.6.tgz", + "integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==", + "dev": true + }, "universalify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", diff --git a/package.json b/package.json index 451ed23f..3b35269b 100644 --- a/package.json +++ b/package.json @@ -530,7 +530,7 @@ "@types/fs-extra": "^9.0.7", "@types/glob": "^7.1.3", "@types/mocha": "^9.1.1", - "@types/node": "^17.0.23", + "@types/node": "^20.16.0", "@types/vscode": "1.90.0", "@types/xml2js": "^0.4.11", "@vscode/test-electron": "^2.3.10", From 6b4997662d0b370d7bbfcdce2deee15e12d44af4 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 07:58:39 -0700 Subject: [PATCH 09/15] Ignore new submodule location --- .prettierignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index a7a4aeb9..35779b5e 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,7 +5,7 @@ dist node_modules out -src/ahk2 +ahk2 # Files .vscode/settings.json From 7a9bf3226680c0dba629f9b806e18048d6f76cd6 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:14:39 -0700 Subject: [PATCH 10/15] Fixup new submodule location --- .gitmodules | 2 +- ahk2 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 ahk2 diff --git a/.gitmodules b/.gitmodules index 32c36cca..df7e084f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "ahk2"] path = ahk2 - url = https://github.com/mark-wiemer-org/vscode-autohotkey2-lsp.git + url = https://github.com/mark-wiemer-org/vscode-autohotkey2-lsp diff --git a/ahk2 b/ahk2 new file mode 160000 index 00000000..c9589948 --- /dev/null +++ b/ahk2 @@ -0,0 +1 @@ +Subproject commit c9589948db2b7136722e6d425e186696f1a52c92 From db234613cbd79278d350440c059357c9b8e9b529 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:29:06 -0700 Subject: [PATCH 11/15] Validate project with new build strat --- package.json | 16 +++++++--------- src/parser/parser.test.ts | 13 +++++++------ src/providers/format.test.ts | 13 +++++++------ src/providers/formattingProvider.utils.test.ts | 13 +++++++------ 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 3b35269b..437ffc88 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "license": "See license.txt", "publisher": "mark-wiemer", - "main": "./out/extension", + "main": "./out/src/extension", "files": [ "language/ahk.configuration.json", "language/ahk.tmLanguage.json", @@ -36,7 +36,7 @@ "language/autohotkey2.svg", "language/snippetsV1.json", "language/snippetsV2.json", - "out/extension.js", + "out/src/extension.js", "icon.png", "license.txt" ], @@ -53,17 +53,16 @@ "eslint:fix": "npm run eslint:files -- src --fix", "format": "prettier --check .", "format:fix": "prettier --write .", - "lint": "npm run tsc && npm run eslint && npm run format && npm run sort-package-json", + "lint": "npm run eslint && npm run format && npm run sort-package-json", "package": "vsce package", - "prepare": "husky install", + "prepare": "husky install && cd ahk2 && npm install", "sort-package-json": "sort-package-json --check", "sort-package-json:fix": "sort-package-json", "test": "npm run test-grammar && npm run test-unit", "pretest-grammar": "npm run compile-grammar", "test-grammar": "vscode-tmgrammar-snap language/samples/*.{ahk1,ahk2}", "pretest-unit": "npm run clean:out && npm run compile-ts", - "test-unit": "node ./out/test/runTest.js", - "tsc": "tsc --noEmit --skipLibCheck && echo No TSC problems", + "test-unit": "node ./out/src/test/runTest.js", "validate": "npm run lint && npm run test && npm run package", "vscode:prepublish": "npm run build && echo Packaging..." }, @@ -495,8 +494,7 @@ "lint-staged": { "*": "prettier --check", "src/**/*.ts": [ - "npm run eslint:files", - "npm run tsc" + "npm run eslint:files" ], "package.json": "npm run sort-package-json" }, @@ -553,7 +551,7 @@ "vscode-tmgrammar-test": "^0.1.1" }, "engines": { - "vscode": "^1.50.0" + "vscode": "^1.90.0" }, "icon": "icon.png", "galleryBanner": { diff --git a/src/parser/parser.test.ts b/src/parser/parser.test.ts index 6ed3db9a..1435762c 100644 --- a/src/parser/parser.test.ts +++ b/src/parser/parser.test.ts @@ -111,12 +111,13 @@ suite('Parser', () => { suite('buildScript', () => { // Currently in `out` folder, need to get back to main `src` folder const filesParentPath = path.join( - __dirname, - '..', - '..', - 'src', - 'parser', - 'samples', + __dirname, // ./out/src/parser + '..', // ./out/src + '..', // ./out + '..', // . + 'src', // ./src + 'parser', // ./src/parser + 'samples', // ./src/parser/samples ); const myTests: { diff --git a/src/providers/format.test.ts b/src/providers/format.test.ts index 081e5ed0..2f1e3e93 100644 --- a/src/providers/format.test.ts +++ b/src/providers/format.test.ts @@ -108,12 +108,13 @@ const formatTests: FormatTest[] = [ // Currently in `out` folder, need to get back to main `src` folder const filesParentPath = path.join( - __dirname, - '..', - '..', - 'src', - 'providers', - 'samples', + __dirname, // ./out/src/providers + '..', // ./out/src + '..', // ./out + '..', // . + 'src', // ./src + 'providers', // ./src/providers + 'samples', // ./src/providers/samples ); const fileToString = (path: string): string => fs.readFileSync(path).toString(); diff --git a/src/providers/formattingProvider.utils.test.ts b/src/providers/formattingProvider.utils.test.ts index d0fa9573..f3df8524 100644 --- a/src/providers/formattingProvider.utils.test.ts +++ b/src/providers/formattingProvider.utils.test.ts @@ -1060,12 +1060,13 @@ suite('FormattingProvider utils', () => { suite(externalDocumentToString, () => { // Currently in `out` folder, need to get back to main `src` folder const filesParentPath = path.join( - __dirname, - '..', - '..', - 'src', - 'providers', - 'samples', + __dirname, // ./out/src/providers + '..', // ./out/src + '..', // ./out + '..', // . + 'src', // ./src + 'providers', // ./src/providers + 'samples', // ./src/providers/samples ); const myTests = [ From 453c4f80f0d1cc1b977b30c1dad79d949cde8c03 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:35:42 -0700 Subject: [PATCH 12/15] Fix entrypoint --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 437ffc88..2ad130ed 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "license": "See license.txt", "publisher": "mark-wiemer", - "main": "./out/src/extension", + "main": "./dist/extension", "files": [ "language/ahk.configuration.json", "language/ahk.tmLanguage.json", @@ -36,7 +36,7 @@ "language/autohotkey2.svg", "language/snippetsV1.json", "language/snippetsV2.json", - "out/src/extension.js", + "dist/extension.js", "icon.png", "license.txt" ], From 482b5d27eb3913b9cfcd7bc8fd4ef62ade0f8306 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:41:59 -0700 Subject: [PATCH 13/15] Fixup npm prepare --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ad130ed..306a429f 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "format:fix": "prettier --write .", "lint": "npm run eslint && npm run format && npm run sort-package-json", "package": "vsce package", - "prepare": "husky install && cd ahk2 && npm install", + "prepare": "husky install && git submodule update --init --recursive && cd ahk2 && npm install", "sort-package-json": "sort-package-json --check", "sort-package-json:fix": "sort-package-json", "test": "npm run test-grammar && npm run test-unit", From 0964e07db9356dfeed3bc8f532f42886c7902da4 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:43:35 -0700 Subject: [PATCH 14/15] Cleanup tsconfig.json --- tsconfig.json | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1e240fba..46595864 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,24 +7,6 @@ "experimentalDecorators": true, "sourceMap": true, "rootDirs": ["src", "ahk2/client"], - - // todo move all type checking to ESLint for maintainability - // "alwaysStrict": true, - // // "exactOptionalPropertyTypes": true, // TODO - // "noFallthroughCasesInSwitch": true, - // "noImplicitOverride": true, - // "noImplicitReturns": true, - // "noImplicitThis": true, - // "noPropertyAccessFromIndexSignature": true, - // "noUncheckedIndexedAccess": true, - // // "strict": true // TODO - // "strictBindCallApply": true, - // "strictFunctionTypes": true, - // // "strictNullChecks": true // TODO - // // "strictPropertyInitialization": true // TODO - // "useUnknownInCatchVariables": true, - - // ESM "esModuleInterop": true }, "exclude": ["node_modules", "./ahk2/node_modules"], From 7bf4a97efd65b53dcee9906f75201728c987d303 Mon Sep 17 00:00:00 2001 From: Mark Wiemer Date: Sun, 18 Aug 2024 08:45:18 -0700 Subject: [PATCH 15/15] Remove unused TS libs --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 46595864..c4175036 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "ES2022", - "lib": ["es6", "es2017", "es2019", "ES2022", "WebWorker"], + "lib": ["ES2022", "WebWorker"], "outDir": "out", "experimentalDecorators": true, "sourceMap": true,