From 222f2151d57cf902d4c5eef29cbd6d42d7a3c56a Mon Sep 17 00:00:00 2001 From: JuanGalilea Date: Wed, 17 Jun 2026 09:16:14 +0200 Subject: [PATCH 1/2] feat: modernize tsconfig to >= node 22 --- package.json | 2 +- tsconfig.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 069633b..0378b1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apify/tsconfig", - "version": "0.1.2", + "version": "0.2.0", "description": "TypeScript configuration shared across projects in Apify.", "author": "Vlad Frangu ", "license": "Apache-2.0", diff --git a/tsconfig.json b/tsconfig.json index 8b73912..b797f04 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,8 +12,8 @@ "importHelpers": true, "incremental": true, "lib": ["ESNext"], - "module": "CommonJS", - "moduleResolution": "Node", + "module": "nodenext", + "moduleResolution": "nodenext", "newLine": "lf", "noEmitHelpers": true, "noFallthroughCasesInSwitch": true, @@ -27,7 +27,7 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, - "target": "ES2019", + "target": "esnext", "useDefineForClassFields": true } } From 13206d9aad682a68f97d5b8d2506f6076448bf9f Mon Sep 17 00:00:00 2001 From: JuanGalilea Date: Wed, 17 Jun 2026 10:06:28 +0200 Subject: [PATCH 2/2] fix: set static target --- package.json | 2 +- tsconfig.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0378b1e..069633b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apify/tsconfig", - "version": "0.2.0", + "version": "0.1.2", "description": "TypeScript configuration shared across projects in Apify.", "author": "Vlad Frangu ", "license": "Apache-2.0", diff --git a/tsconfig.json b/tsconfig.json index b797f04..4f9e83c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,8 @@ "forceConsistentCasingInFileNames": true, "importHelpers": true, "incremental": true, - "lib": ["ESNext"], - "module": "nodenext", + "lib": ["ES2023"], + "module": "node20", "moduleResolution": "nodenext", "newLine": "lf", "noEmitHelpers": true, @@ -27,7 +27,7 @@ "resolveJsonModule": true, "sourceMap": true, "strict": true, - "target": "esnext", + "target": "es2023", "useDefineForClassFields": true } }