Skip to content

Commit fc7d619

Browse files
committed
feat: bin/dev
1 parent 666b81a commit fc7d619

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

bin/dev

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env node
2+
3+
const oclif = require('@oclif/core');
4+
5+
const path = require('path');
6+
const project = path.join(__dirname, '..', 'tsconfig.json');
7+
8+
// In dev mode -> use ts-node and dev plugins
9+
process.env.NODE_ENV = 'development';
10+
11+
require('ts-node').register({ project });
12+
13+
// In dev mode, always show stack traces
14+
oclif.settings.debug = true;
15+
16+
// Start the CLI
17+
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);

bin/dev.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
3+
node "%~dp0\dev" %*

0 commit comments

Comments
 (0)