Skip to content

Commit 0da3a3d

Browse files
committed
Move bin
1 parent 9d72450 commit 0da3a3d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bin/index.js

-8
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.5.13",
44
"description": "Local domains for everyone and more! ",
55
"main": "lib",
6-
"bin": "bin/index.js",
6+
"bin": "lib/cli/bin.js",
77
"preferGlobal": true,
88
"engines": {
99
"node": ">= 0.12"

src/cli/bin.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env node
2+
const updateNotifier = require('update-notifier')
3+
const sudoBlock = require('sudo-block')
4+
const pkg = require('../../package.json')
5+
6+
sudoBlock('\nShould not be run as root, please retry without sudo.\n')
7+
updateNotifier({ pkg: pkg }).notify()
8+
require('./')(process.argv)

0 commit comments

Comments
 (0)