1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-26 12:38:04 +03:00
tauri/tooling/cli/node/main.js
2023-02-19 10:17:49 -03:00

20 lines
454 B
JavaScript

// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
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