initial commit
This commit is contained in:
13
scripts/post-build.js
Normal file
13
scripts/post-build.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
|
||||
const clientBuildDir = path.resolve(__dirname, "../packages/client/build");
|
||||
const serverBuildDir = path.resolve(__dirname, "../packages/server/build");
|
||||
|
||||
const outDir = path.resolve(__dirname, "../build");
|
||||
if (fs.existsSync(outDir)) {
|
||||
fs.rmSync(outDir, { recursive: true, force: true });
|
||||
}
|
||||
|
||||
fs.renameSync(serverBuildDir, outDir);
|
||||
fs.renameSync(clientBuildDir, path.resolve(outDir, "client"));
|
||||
Reference in New Issue
Block a user