1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

refactor: Update cli path and fix eslint errors for transpiled code

This commit is contained in:
Juan Picado @jotadeveloper 2017-11-17 08:44:37 +01:00 committed by juanpicado
parent a5e162d475
commit 765c4d2b5d
4 changed files with 5 additions and 1 deletions

@ -3,3 +3,4 @@ coverage/
wiki/
static/
website/
build/

1
.gitignore vendored

@ -8,6 +8,7 @@ test-storage*
.verdaccio_test_env
node_modules
package-lock.json
build/
# Istanbul

@ -1,3 +1,3 @@
#!/usr/bin/env node
require('../src/lib/cli');
require('../build/lib/cli');

@ -1,3 +1,5 @@
/* eslint prefer-rest-params:off */
module.exports.spliceURL = function spliceURL() {
return Array.from(arguments).reduce((lastResult, current) => lastResult + current).replace(/([^:])(\/)+(.)/g, `$1/$3`);
};