From 9b474844e85cce916370693cc24f53339a695570 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jul 2019 10:37:35 +0200 Subject: Add CLI plugins tests --- server/lib/plugins/yarn.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib') diff --git a/server/lib/plugins/yarn.ts b/server/lib/plugins/yarn.ts index 5fe1c5046..74c67653c 100644 --- a/server/lib/plugins/yarn.ts +++ b/server/lib/plugins/yarn.ts @@ -5,12 +5,12 @@ import { CONFIG } from '../../initializers/config' import { outputJSON, pathExists } from 'fs-extra' import { join } from 'path' -async function installNpmPlugin (name: string, version?: string) { +async function installNpmPlugin (npmName: string, version?: string) { // Security check - checkNpmPluginNameOrThrow(name) + checkNpmPluginNameOrThrow(npmName) if (version) checkPluginVersionOrThrow(version) - let toInstall = name + let toInstall = npmName if (version) toInstall += `@${version}` await execYarn('add ' + toInstall) -- cgit v1.2.3