Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
try {
require.resolve('@statusfy/core')
} catch (err) {
packageError('@statusfy/core')
process.exit(1)
}
try {
require.resolve('@statusfy/editor')
} catch (err) {
packageError('@statusfy/editor')
process.exit(1)
}
const pkg = require('@statusfy/core/package.json')
const requiredVersion = pkg.engines.node
if (!satisfies(process.version, requiredVersion)) {
console.log(chalk.red(
`Minimum Node version not met:\n` +
`You are using Node ${process.version}, ` +
`but Statusfy requires Node ${requiredVersion}.`
))
console.log(chalk.red(`Please upgrade your Node version.`))
process.exit(1)
}
const {
init,
dev,
build,