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:
parent
a5e162d475
commit
765c4d2b5d
@ -3,3 +3,4 @@ coverage/
|
||||
wiki/
|
||||
static/
|
||||
website/
|
||||
build/
|
||||
|
1
.gitignore
vendored
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`);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user