Migrating to ESM (#8)

* Migrating to ESM

* Fixing broken prettier
This commit is contained in:
Marco Lipparini
2024-02-25 10:47:00 +01:00
committed by GitHub
parent 0ec6b214cd
commit 1961d75eec
6 changed files with 13 additions and 10 deletions

View File

@@ -1,8 +1,9 @@
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'node:url';
import fs from 'node:fs';
import path from 'node:path';
const JSON_CONFIG_FILE_NAME = 'ldd.json';
const PACKAGE_JSON_PATH = `${__dirname}/../package.json`;
const PACKAGE_JSON_PATH = fileURLToPath(new URL('../package.json', import.meta.url));
const DEFAULT_CONFIG: Partial<JsonConfiguration> = {
dbName: undefined,