summary refs log tree commit diff
path: root/bundle/scripts/build.js
diff options
context:
space:
mode:
authordevelopomp <developomp@gmail.com>2021-10-20 09:11:12 +0900
committerdevelopomp <developomp@gmail.com>2021-10-20 09:11:12 +0900
commit53949bd7370d9865f2609f901071190be7d7021a (patch)
tree967fcaf89aaa89bf26201d98e53e90d57bbda6f6 /bundle/scripts/build.js
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-53949bd7370d9865f2609f901071190be7d7021a.tar.xz
prettier formatted /bundle
Diffstat (limited to 'bundle/scripts/build.js')
-rw-r--r--bundle/scripts/build.js24
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, "..") +
 			'"',