From 22ef26c5d2bef93826b73551f8920e6f6565e38f Mon Sep 17 00:00:00 2001 From: Matt Fysh Date: Mon, 22 Jul 2024 10:18:28 +1000 Subject: [PATCH] modernize ts options --- package.json | 1 + tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e94475c..f0368d8 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ ] }, "devDependencies": { + "@types/node": "^20.14.11", "@typescript-eslint/parser": "^7.15.0", "eslint": "^8.56.0", "eslint-plugin-n8n-nodes-base": "^1.16.1", diff --git a/tsconfig.json b/tsconfig.json index 7469d24..dfb7c61 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { "strict": true, - "module": "commonjs", - "moduleResolution": "node", + "module": "preserve", "target": "es2019", "lib": ["es2019", "es2020", "es2022.error"], + "types": ["node"], "removeComments": true, "useUnknownInCatchVariables": false, "forceConsistentCasingInFileNames": true,