Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Made package executable (#2)
Browse files Browse the repository at this point in the history
When installed, the value of "bin" in package.json will be added as a symlink in `node_modules/.bin`. When installed globally these will be in your path (assuming yarn/npm's global dir is in your path).
  • Loading branch information
pwfcurry authored Jan 13, 2020
1 parent 7f6f377 commit 8c967a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ Listening for browser logs on ws://localhost:8888

### Install globally

Alternatively, install globally and run directly with node:
Alternatively, install globally and run directly:

#### yarn

```
$ yarn global add browser-logging-server
$ node browser-logging-server
$ browser-logging-server
Listening for browser logs on ws://localhost:8888
```

#### npm

```
$ npm install --global browser-logging-server
$ node browser-logging-server
$ browser-logging-server
Listening for browser logs on ws://localhost:8888
```

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "git",
"url": "[email protected]:Countingup/browser-logging-server.git"
},
"bin": "dist/index.js",
"scripts": {
"version": "npm run build",
"postversion": "git push",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import { start } from "./server";

start();

0 comments on commit 8c967a4

Please sign in to comment.