mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
refactor: Update cli path and fix eslint errors for transpiled code
This commit is contained in:
parent
a5e162d475
commit
765c4d2b5d
4 changed files with 5 additions and 1 deletions
|
@ -3,3 +3,4 @@ coverage/
|
||||||
wiki/
|
wiki/
|
||||||
static/
|
static/
|
||||||
website/
|
website/
|
||||||
|
build/
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ test-storage*
|
||||||
.verdaccio_test_env
|
.verdaccio_test_env
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
build/
|
||||||
|
|
||||||
|
|
||||||
# Istanbul
|
# Istanbul
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env node
|
#!/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() {
|
module.exports.spliceURL = function spliceURL() {
|
||||||
return Array.from(arguments).reduce((lastResult, current) => lastResult + current).replace(/([^:])(\/)+(.)/g, `$1/$3`);
|
return Array.from(arguments).reduce((lastResult, current) => lastResult + current).replace(/([^:])(\/)+(.)/g, `$1/$3`);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue