mirror of
https://github.com/status-im/status-web.git
synced 2026-08-29 21:31:10 +00:00
Co-authored-by: marcelines <marcio@status.im> Co-authored-by: Jakub Kotula <520927+jkbktl@users.noreply.github.com> Co-authored-by: Pavel <14926950+prichodko@users.noreply.github.com> Co-authored-by: Felicio Mununga <felicio@users.noreply.github.com>
18 lines
496 B
JavaScript
18 lines
496 B
JavaScript
#!/usr/bin/node
|
|
|
|
// const fs = require('node:fs')
|
|
const child_process = require('node:child_process')
|
|
const process = require('node:process')
|
|
|
|
process.once('SIGINT', () => {
|
|
process.kill(process.pid, 'SIGKILL')
|
|
})
|
|
|
|
// trigger contentlayer build for content changes (incl. front-matter)
|
|
child_process.spawnSync('pnpm', ['build:content'], {
|
|
stdio: 'inherit',
|
|
})
|
|
|
|
// // trigger Next.js refresh for content changes (excl. front-matter but faster)
|
|
// fs.utimesSync('.env', new Date(), new Date())
|