From 765c4d2b5dc5158b176d77d251c81cd12def16d5 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Fri, 17 Nov 2017 08:44:37 +0100 Subject: [PATCH] refactor: Update cli path and fix eslint errors for transpiled code --- .eslintignore | 1 + .gitignore | 1 + bin/verdaccio | 2 +- src/utils/string.js | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index 366f4122b..b149a5d18 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ coverage/ wiki/ static/ website/ +build/ diff --git a/.gitignore b/.gitignore index c66c6f846..a48a51592 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ test-storage* .verdaccio_test_env node_modules package-lock.json +build/ # Istanbul diff --git a/bin/verdaccio b/bin/verdaccio index 2bcca024d..b6e051fb8 100755 --- a/bin/verdaccio +++ b/bin/verdaccio @@ -1,3 +1,3 @@ #!/usr/bin/env node -require('../src/lib/cli'); +require('../build/lib/cli'); diff --git a/src/utils/string.js b/src/utils/string.js index 77f62902d..6ebd9ec74 100644 --- a/src/utils/string.js +++ b/src/utils/string.js @@ -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`); };