diff options
Diffstat (limited to 'bundle/scripts/build.js')
-rw-r--r-- | bundle/scripts/build.js | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js index dbc305a9..ad00d47f 100644 --- a/bundle/scripts/build.js +++ b/bundle/scripts/build.js @@ -18,15 +18,24 @@ if (argv.includes("clean")) { }); } -fse.copySync(path.join(__dirname, "..", "..", "api", "assets"), path.join(__dirname, "..", "dist", "api", "assets")); +fse.copySync( + path.join(__dirname, "..", "..", "api", "assets"), + path.join(__dirname, "..", "dist", "api", "assets") +); fse.copySync( path.join(__dirname, "..", "..", "api", "client_test"), path.join(__dirname, "..", "dist", "api", "client_test") ); -fse.copySync(path.join(__dirname, "..", "..", "api", "locales"), path.join(__dirname, "..", "dist", "api", "locales")); +fse.copySync( + path.join(__dirname, "..", "..", "api", "locales"), + path.join(__dirname, "..", "dist", "api", "locales") +); dirs.forEach((a) => { fse.copySync("../" + a + "/src", "dist/" + a + "/src"); - if (verbose) console.log(`Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!`); + if (verbose) + console.log( + `Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!` + ); }); console.log("Copying src files done"); @@ -35,7 +44,14 @@ console.log("Compiling src files ..."); console.log( execSync( 'node "' + - path.join(__dirname, "..", "node_modules", "typescript", "lib", "tsc.js") + + path.join( + __dirname, + "..", + "node_modules", + "typescript", + "lib", + "tsc.js" + ) + '" -p "' + path.join(__dirname, "..") + '"', |