duckerd 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -47,9 +47,9 @@ program
47
47
  console.error(`Error: Database file not found at ${dbPath}`);
48
48
  process.exit(1);
49
49
  }
50
- runErd(dbPath, options);
50
+ run(dbPath, options);
51
51
  });
52
- const runErd = async (dbPath, options) => {
52
+ const run = async (dbPath, options) => {
53
53
  const mermaidDiagram = await (0, erd_1.createERD)(dbPath);
54
54
  const mermaidFile = path.resolve('schema_erd.mmd');
55
55
  if (mermaidDiagram) {
@@ -60,7 +60,7 @@ const runErd = async (dbPath, options) => {
60
60
  const width = options.width || 1024;
61
61
  const height = options.height || 768;
62
62
  const theme = options.theme || 'default';
63
- const command = `npx mmdc -i ${mermaidFile} -o ${outputFile} -t ${theme} -w ${width} -H ${height}`;
63
+ const command = `npm exec --package=@mermaid-js/mermaid-cli mmdc -- -i ${mermaidFile} -o ${outputFile} -t ${theme} -w ${width} -H ${height}`;
64
64
  (0, child_process_1.exec)(command, (error, stdout, stderr) => {
65
65
  if (error) {
66
66
  console.error(`Error generating ERD: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "duckerd",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A CLI tool for generating ERD diagrams from DuckDB databases",
5
5
  "author": "TobiLG <tobilg@gmail.com>",
6
6
  "repository": {
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "keywords": ["duckdb", "erd", "diagram", "cli"],
26
26
  "dependencies": {
27
- "@mermaid-js/mermaid-cli": "^11.1.1",
28
27
  "commander": "^12.1.0",
29
28
  "duckdb-async": "^1.0.0"
30
29
  },