console/packages/libraries/cli/bin/dev
2024-07-26 09:51:03 +02:00

20 lines
415 B
TypeScript
Executable file

#!/usr/bin/env tsx
// Suppress warnings from the CLI
process.removeAllListeners('warning');
const oclif = require('@oclif/core');
// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development';
// In dev mode, always show stack traces
oclif.settings.debug = true;
// Start the CLI
oclif
.execute({ development: true, dir: __dirname })
.catch(e => {
throw e;
})
.then(() => {});