1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-22 02:01:49 +03:00
tauri/tooling/cli/node/main.js
2022-07-04 09:09:00 -03:00

16 lines
312 B
JavaScript

const { run, logError } = 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)
}
})
})
}
module.exports.logError = logError