switch over to use new endpoint

This commit is contained in:
Brendan Forster 2018-07-16 16:42:31 -03:00
parent 464c047393
commit 7b2733cd22

View file

@ -187,13 +187,13 @@ function packageApp(
},
}
packager(options, (err: Error, appPaths: string | string[]) => {
if (err) {
callback(err, appPaths)
} else {
packager(options)
.then((appPaths: string | string[]) => {
callback(null, appPaths)
}
})
})
.catch((err: Error) => {
callback(err, [])
})
}
function removeAndCopy(source: string, destination: string) {