tauri/tooling/cli/node/main.js
2022-02-13 13:50:51 -03:00

14 lines
266 B
JavaScript

const { run } = require('./index')
module.exports.run = (args, binName) => {
return new Promise((resolve, reject) => {
run(args, binName, res => {
if (res instanceof Error) {
reject(res)
} else {
resolve(res)
}
})
})
}