Skip to content

Commit

Permalink
chore(TSConfig): use NodeNext
Browse files Browse the repository at this point in the history
TS1543: Importing a JSON file into an ECMAScript module requires a 'type: json' import attribute when module is set to Node16
  • Loading branch information
bludnic committed Dec 17, 2024
1 parent 34c1677 commit 80f7143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions packages/tsconfig/esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 80f7143

Please sign in to comment.