Skip to content

Commit

Permalink
Add script starting header to app.js that is required for bin
Browse files Browse the repository at this point in the history
  • Loading branch information
tombenke committed May 4, 2019
1 parent 6163099 commit 4fb4ab9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/app.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
'use strict';

var _index = require('./index');
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
"README.md"
],
"bin": {
"easer-server": "./dist/app.js"
"easer": "./dist/app.js"
},
"main": "dist/index",
"dependencies": {
"lodash": "^4.17.11",
"npac": "^2.1.5",
Expand Down
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import { startApp } from './index'

startApp()

0 comments on commit 4fb4ab9

Please sign in to comment.