saahildcom/scripts/build.ts

8 lines
291 B
TypeScript
Raw Normal View History

2024-06-12 02:37:31 +00:00
import fs from 'fs'
import path from 'path'
const reactOutput = Bun.spawnSync({
cmd: ['bun', 'build:react']
})
console.log(reactOutput.stdout.toString())
console.log(`Built react app`)
// fs.cpSync(path.join(__dirname, '../build'), path.join(__dirname, '../dist/php'), {recursive: true})