Skip to content

Commit dbc10e8

Browse files
committed
update to using npm 3 (#13)
1 parent f85bad8 commit dbc10e8

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ cache:
66
- node_modules
77

88
node_js:
9-
- "0.10"
10-
11-
before_install:
12-
- npm i -g npm@^2.0.0
9+
- "5"
1310

1411
before_script:
1512
- npm prune

bin/pouchdb-plugin-helper

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ function run(cmd, args) {
1313
return proc;
1414
}
1515

16-
var root = join(__dirname, '..');
16+
var root = join(process.cwd());
17+
var helperRoot = join(__dirname, '..');
1718
var nodemods = join(root, 'node_modules');
1819
var bin = join(nodemods, '.bin');
1920

2021
var package = JSON.parse(fs.readFileSync('./package.json'), {encoding: 'utf8'});
2122

2223
function runLint(cb) {
2324
var eslintNormal = run(join(bin, 'eslint'), [
24-
'-c', join(root, 'eslint'),
25+
'-c', join(helperRoot, 'eslint'),
2526
].concat(
2627
glob.sync('*.js')
2728
).concat(
@@ -32,7 +33,7 @@ function runLint(cb) {
3233
return cb(eslintNormalExitCode);
3334
}
3435
var eslintTest = run(join(bin, 'eslint'), [
35-
'-c', join(root, 'eslint-test'),
36+
'-c', join(helperRoot, 'eslint-test'),
3637
].concat(
3738
glob.sync('test/*.js')
3839
));

0 commit comments

Comments
 (0)