forked from baron/baron-sso
dev 병합 후 code-check
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const { spawnSync } = require("child_process");
|
||||
|
||||
const ROOT = process.cwd();
|
||||
const LOCALES_DIR = path.join(ROOT, "locales");
|
||||
@@ -84,3 +85,12 @@ const output = [
|
||||
].join("\n");
|
||||
|
||||
fs.writeFileSync(OUT_PATH, output, "utf8");
|
||||
|
||||
const formatResult = spawnSync("dart", ["format", OUT_PATH], {
|
||||
cwd: ROOT,
|
||||
stdio: "inherit",
|
||||
});
|
||||
|
||||
if (formatResult.status !== 0) {
|
||||
process.exit(formatResult.status ?? 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user