Skip to content

Commit

Permalink
Entry point is now run method in DBML
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Aug 20, 2023
1 parent c7facf6 commit 9fcbb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbml/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
const render = require('@softwaretechnik/dbml-renderer')
const { run } = require('@softwaretechnik/dbml-renderer')

const encoding = 'utf-8'
let data
Expand All @@ -10,7 +10,7 @@ async function convert () {
return
}
try {
const svg = render.default(source, 'svg')
const svg = run(source, 'svg')
console.log(svg)
} catch (err) {
console.error(err)
Expand Down

0 comments on commit 9fcbb1f

Please sign in to comment.