Skip to content

Commit

Permalink
path if installed from a repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robb Lovell authored and Robb Lovell committed Jul 11, 2017
1 parent 508e430 commit f53ab76
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
7 changes: 6 additions & 1 deletion bin/run-when-changed.js

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

2 changes: 1 addition & 1 deletion bin/run-when-changed.js.map

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
"dependencies": {
"ansi-bold": "^0.1.1",
"commander": "^2.9.0",
"fs": "0.0.1-security",
"fs-find-root": "^2.0.0",
"gaze": "^1.1.0",
"minimatch": "^3.0.2"
"minimatch": "^3.0.2",
"path": "^0.12.7"
}
}
7 changes: 6 additions & 1 deletion run-when-changed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env node

const commander = require('commander');
const runWhenChanged = require('../lib').default;
const path = require('path');
const fs = require('fs');

const dir = path.join(path.dirname(fs.realpathSync(__filename)), '../');

const runWhenChanged = require(dir).default;
const watches = [];

function add(key, value) {
Expand Down

0 comments on commit f53ab76

Please sign in to comment.