Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
const {
init,
dev,
build,
generate,
start,
newIncident,
deleteIncident,
updateIncident
} = require('@statusfy/core/lib')
const sourceDir = path.resolve('.')
program
.version(pkg.version)
.usage(' [options]')
program
.command('init')
.description('Create a base project')
.option('-d, --dir ', 'specify the installation directory')
.action(({ dir }) => {
const outDir = dir ? path.resolve(dir) : null
wrapCommand(init)(sourceDir, { outDir })
})
program
.command('dev')
.description('Starts the application in development mode (hot-code reloading, error reporting, etc.).')
.option('-p, --port ', 'use specified port (default: 3000)')
.option('-s, --ssr', 'force SSR')