mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
14 lines
316 B
JavaScript
14 lines
316 B
JavaScript
import child_process from "node:child_process"
|
|
|
|
export default async function buildAppDist(srcPath) {
|
|
// build app for production
|
|
console.log("⚒ Building app...")
|
|
await child_process.execSync("npm run build", {
|
|
cwd: srcPath,
|
|
stdio: "inherit",
|
|
})
|
|
console.log("⚒ Building app done!")
|
|
|
|
return srcPath
|
|
}
|