@@ -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,
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import fs from 'fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import fs from 'node:fs';
|
||||
import { program } from 'commander';
|
||||
import { confirm } from '@inquirer/prompts';
|
||||
import { dockerCommand } from 'docker-cli-js';
|
||||
import mysql from 'mysql';
|
||||
|
||||
import config from './config';
|
||||
import config from './config.js';
|
||||
|
||||
const LDD_ROOT_PATH = `${__dirname}/..`;
|
||||
const LDD_ROOT_PATH = fileURLToPath(new URL('..', import.meta.url));
|
||||
|
||||
interface DockerImagesCommandResult {
|
||||
images: {
|
||||
|
||||
Reference in New Issue
Block a user