Fix minor issues

This commit is contained in:
2025-04-01 17:48:43 +02:00
parent 8359e159f4
commit b2c42d5cc9
3 changed files with 13 additions and 5 deletions

View File

@@ -9,6 +9,7 @@
},
"author": "Bartłomiej Pluta <noreply.git@mx.bartlomiejpluta.com>",
"license": "ISC",
"type": "module",
"bin": {
"actual-importer": "./dist/index.js"
},

View File

@@ -1,4 +1,4 @@
const { mkdir } = require('node:fs/promises');
import { mkdir } from 'node:fs/promises';
import * as api from "@actual-app/api";
import { ServerConfig } from "@/types/config";
import { Transaction } from "@/types/transaction";

View File

@@ -1,24 +1,31 @@
{
"compilerOptions": {
"target": "ES2023",
"module": "commonjs",
"module": "ESNext",
"moduleResolution": "Node",
"outDir": "./dist",
"rootDir": "./src",
"allowJs": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"typeRoots": [
"./src/types",
"./node_modules/@types"
],
"paths": {
"@/*": ["./src/*"],
}
},
},
"include": ["src/**/*"],
"exclude": [
"node_modules",
"src/types"
]
],
"ts-node": {
"esm": true
}
}