Skip to content

Commit

Permalink
fix: broken global command
Browse files Browse the repository at this point in the history
  • Loading branch information
matzkoh committed Jan 20, 2019
1 parent adf6085 commit 088b3e4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
6 changes: 5 additions & 1 deletion bin/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { spawn } from 'child_process'
import electronPath from 'electron'
import { dirname } from 'path'
import pkgUp from 'pkg-up'

spawn(electronPath as any, ['.'])
pkgUp(__dirname)
.then(dirname)
.then(root => spawn(electronPath as any, [root]))
30 changes: 25 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
},
"dependencies": {
"electron": "4.0.1",
"pkg-up": "2.0.0",
"ws": "6.1.2"
},
"devDependencies": {
"@types/pkg-up": "2.0.0",
"@types/ws": "6.0.1",
"electron-packager": "13.0.1",
"npm-run-all": "4.1.5",
Expand Down

0 comments on commit 088b3e4

Please sign in to comment.