From ae88aca79615a438230cee8d4568bdb562e21062 Mon Sep 17 00:00:00 2001 From: aarondill Date: Fri, 3 Feb 2023 21:25:30 -0600 Subject: [PATCH] update installNpmPackage type match runtime args --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 741c36a..a9223a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -198,7 +198,10 @@ export interface AfterHookOptions { ) => ExecaChildProcess; /** install npm package. uses package manager specified by --node-pm CLI param (default: auto-detect) */ - installNpmPackage: (packageName: string, isDev?: boolean) => Promise; + installNpmPackage: ( + packageName: string | string[], + isDev?: boolean + ) => Promise; } export class CLIError extends Error {