From ac1bdb20ca767b63f2019f620648ab92a8b6469a Mon Sep 17 00:00:00 2001 From: zFernand0 <37381190+zFernand0@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:07:13 +0000 Subject: [PATCH] forgot to modify the typing Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com> --- packages/run-script/scripts/npmUpdate.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/run-script/scripts/npmUpdate.ts b/packages/run-script/scripts/npmUpdate.ts index 5afd203..6f2649b 100644 --- a/packages/run-script/scripts/npmUpdate.ts +++ b/packages/run-script/scripts/npmUpdate.ts @@ -25,8 +25,8 @@ const updateDetails: string[] = []; let resolutions: Record = {}; interface IProtectedBranchWithDeps extends IProtectedBranch { - dependencies: string[] | Record; - devDependencies: string[] | Record; + dependencies: string[] | Record; + devDependencies: string[] | Record; } function getDependencies(context: IContext, branch: IProtectedBranchWithDeps, dev: boolean) { @@ -47,8 +47,8 @@ function getDependencies(context: IContext, branch: IProtectedBranchWithDeps, de async function updateDependency(context: IContext, pkgName: string, pkgTag: string | string[], dev: boolean): Promise { let tempPkgTag = ""; let moreRgs: string[] = []; - const env: {[key: string]: string} = {}; // { ... process.env } // ? - if( typeof pkgTag === "string") { + const env: { [key: string]: string } = {}; // { ... process.env } // ? + if (typeof pkgTag === "string") { tempPkgTag = pkgTag; } else { tempPkgTag = pkgTag.shift() ?? "";