diff options
author | Edu93Jer <mailing_93@hotmail.com> | 2020-12-16 02:49:38 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-12-18 22:35:16 +0300 |
commit | a92d310b7e9e4c48b08f52785c2e3a6d52a82ad7 (patch) | |
tree | 60a615230082a8cdac3d357ae7c59cbd94b0211d /lib/init.js | |
parent | be4a0900b14b2c6315bf62bed8f5affb648215ae (diff) |
Add max-len to lint rules
PR-URL: https://github.com/npm/cli/pull/2361
Credit: @Edu93Jer
Close: #2361
Reviewed-by: @isaacs
EDIT(@isaacs): amended to match some of the fixes to our current style
conventions
Diffstat (limited to 'lib/init.js')
-rw-r--r-- | lib/init.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/init.js b/lib/init.js index 6e4213c28..60ea52e16 100644 --- a/lib/init.js +++ b/lib/init.js @@ -41,8 +41,9 @@ const init = async args => { } } npm.config.set('package', []) + const newArgs = [packageName, ...args.slice(1)] return new Promise((res, rej) => { - npm.commands.exec([packageName, ...args.slice(1)], er => er ? rej(er) : res()) + npm.commands.exec(newArgs, er => er ? rej(er) : res()) }) } |