@dbcube/cli 1.1.51 → 1.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbcube/cli",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dbcube": "node src/index.js"
@@ -13,13 +13,13 @@
13
13
  "license": "ISC",
14
14
  "description": "",
15
15
  "dependencies": {
16
- "@dbcube/schema-builder": "^1.0.62",
17
- "@inquirer/prompts": "^7.8.4",
16
+ "@dbcube/schema-builder": "^1.0.65",
17
+ "@inquirer/prompts": "^7.8.6",
18
18
  "alwait": "^1.0.0",
19
19
  "chalk": "^5.6.2",
20
20
  "dotenv": "^17.2.2",
21
- "fs-extra": "^11.3.1",
21
+ "fs-extra": "^11.3.2",
22
22
  "glob": "^11.0.3",
23
- "ora": "^8.2.0"
23
+ "ora": "^9.0.0"
24
24
  }
25
25
  }
@@ -1,3 +1,3 @@
1
- onlyBuiltDependencies:
2
- - '@dbcube/core'
3
- - better-sqlite3
1
+ onlyBuiltDependencies:
2
+ - '@dbcube/core'
3
+ - better-sqlite3
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  const path = require('path');
3
3
 
4
4
  // Obtener los argumentos pasados al comando
@@ -72,7 +72,7 @@ async function executeCommand(command, commandArgs) {
72
72
  }
73
73
  } else {
74
74
  // Comando desconocido - mostrar help
75
- const chalk = require('chalk');
75
+ const { default: chalk } = await import('chalk');
76
76
  console.log(`\n${chalk.red('❌ Unknown command:')} ${command} ${commandArgs.join(' ')}\n`);
77
77
  console.log(`${chalk.cyan('Run')} ${chalk.yellow('npx dbcube help')} ${chalk.cyan('to see all available commands.')}\n`);
78
78
  process.exit(1);
package/dbcube.config.js DELETED
@@ -1,15 +0,0 @@
1
- require('dotenv').config({ quiet: true });
2
-
3
- module.exports = function (config) {
4
- config.set({
5
- databases: {
6
- test: {
7
- type: "sqlite",
8
- config:{
9
- DATABASE: process.env.DBCUBE_TEST_DATABASE
10
- }
11
- },
12
- }
13
- });
14
- };
15
-