Skip to content

Commit

Permalink
chore: added bin
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 27, 2018
1 parent 42ed767 commit 25ec97b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

const fs = require('fs')
const path = require('path')
const dev = fs.existsSync(path.join(__dirname, '../tsconfig.json'))

if (dev) require('ts-node/register')

const undefault = m => m.__esModule === true ? m.default : m
undefault(require('@dxcli/engine'))()

0 comments on commit 25ec97b

Please sign in to comment.