Skip to content

Commit

Permalink
fix: added bin script and removed hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 26, 2018
1 parent a915cec commit 3886271
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
13 changes: 13 additions & 0 deletions bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env node

/* eslint-disable no-unpublished-require */

const undefault = m => m.__esModule === true ? m.default : m

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

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

undefault(require('@dxcli/engine'))()
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
"typescript": "^2.6.2"
},
"dxcli": {
"commands": "./lib/commands",
"hooks": {
"init": "./lib/hooks/init"
}
"commands": "./lib/commands"
},
"engines": {
"node": ">=8.0.0"
Expand Down
8 changes: 0 additions & 8 deletions src/hooks/init.ts

This file was deleted.

9 changes: 0 additions & 9 deletions test/hooks/init.test.ts

This file was deleted.

0 comments on commit 3886271

Please sign in to comment.