@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
require('../build/index.js');
|
import '../build/index.js';
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@mep-agency/local-dev-db",
|
"name": "@mep-agency/local-dev-db",
|
||||||
"version": "1.0.0-alpha13",
|
"version": "1.0.0-alpha14",
|
||||||
"private": false,
|
"private": false,
|
||||||
|
"type": "module",
|
||||||
"description": "A zero-config local MariaDB instance for local development (using Docker)",
|
"description": "A zero-config local MariaDB instance for local development (using Docker)",
|
||||||
"author": "Marco Lipparini <developer@liarco.net>",
|
"author": "Marco Lipparini <developer@liarco.net>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import fs from 'fs';
|
import { fileURLToPath } from 'node:url';
|
||||||
import path from 'path';
|
import fs from 'node:fs';
|
||||||
|
import path from 'node:path';
|
||||||
|
|
||||||
const JSON_CONFIG_FILE_NAME = 'ldd.json';
|
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> = {
|
const DEFAULT_CONFIG: Partial<JsonConfiguration> = {
|
||||||
dbName: undefined,
|
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 { program } from 'commander';
|
||||||
import { confirm } from '@inquirer/prompts';
|
import { confirm } from '@inquirer/prompts';
|
||||||
import { dockerCommand } from 'docker-cli-js';
|
import { dockerCommand } from 'docker-cli-js';
|
||||||
import mysql from 'mysql';
|
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 {
|
interface DockerImagesCommandResult {
|
||||||
images: {
|
images: {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "CommonJS",
|
"module": "Node16",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "Node16",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user