From 80f7143299362617e5c34bd16660d7805da7073c Mon Sep 17 00:00:00 2001 From: bludnic Date: Tue, 17 Dec 2024 23:05:11 +0000 Subject: [PATCH] chore(TSConfig): use NodeNext TS1543: Importing a JSON file into an ECMAScript module requires a 'type: json' import attribute when module is set to Node16 --- apps/cli/src/index.ts | 2 +- packages/tsconfig/esm.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts index 2a4241a5..d12ac891 100644 --- a/apps/cli/src/index.ts +++ b/apps/cli/src/index.ts @@ -20,7 +20,7 @@ import { logPath } from "./utils/app-path.js"; process.env.LOG_FILE = logPath; import { Command } from "commander"; -import packageJSON from "../package.json"; +import packageJSON from "../package.json" assert { type: "json" }; import { setPasswordCommand } from "./commands/set-password.js"; import { addExchangeAccountCommand } from "./commands/exchange/add.js"; import { updateExchangeAccountCommand } from "./commands/exchange/update.js"; diff --git a/packages/tsconfig/esm.json b/packages/tsconfig/esm.json index d81b7a2d..5c88da88 100644 --- a/packages/tsconfig/esm.json +++ b/packages/tsconfig/esm.json @@ -3,13 +3,13 @@ "display": "TypeScript configuration using ESM", "compilerOptions": { "lib": ["es2023", "DOM"], - "module": "node16", + "module": "NodeNext", "target": "es2022", "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "moduleResolution": "node16", + "moduleResolution": "NodeNext", "composite": true } }