Integration check changes

This commit is contained in:
lowlighter
2020-10-18 14:40:32 +02:00
parent 3747d2f5d1
commit 1ab7211044
5 changed files with 45 additions and 27 deletions

View File

@@ -4,8 +4,9 @@
import url from "url"
import ncc from "@vercel/ncc"
//Dirname
//Initialization
const __dirname = path.join(path.dirname(url.fileURLToPath(import.meta.url)), "..", "action")
process.on("unhandledRejection", error => { throw error })
/** Build function */
export default async function build() {
@@ -35,5 +36,5 @@
if (/build.mjs/.test(process.argv[1])) {
//Save build
await fs.promises.writeFile(`${__dirname}/dist/index.js`, await build())
console.log("Build successful !")
console.log("Build success !")
}