Skip to content

Commit

Permalink
forgot to modify the typing
Browse files Browse the repository at this point in the history
Signed-off-by: zFernand0 <37381190+zFernand0@users.noreply.github.com>
  • Loading branch information
zFernand0 committed Feb 5, 2024
1 parent a5f1ede commit ac1bdb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/run-script/scripts/npmUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const updateDetails: string[] = [];
let resolutions: Record<string, string> = {};

interface IProtectedBranchWithDeps extends IProtectedBranch {
dependencies: string[] | Record<string, string>;
devDependencies: string[] | Record<string, string>;
dependencies: string[] | Record<string, string | string[]>;
devDependencies: string[] | Record<string, string | string[]>;
}

function getDependencies(context: IContext, branch: IProtectedBranchWithDeps, dev: boolean) {
Expand All @@ -47,8 +47,8 @@ function getDependencies(context: IContext, branch: IProtectedBranchWithDeps, de
async function updateDependency(context: IContext, pkgName: string, pkgTag: string | string[], dev: boolean): Promise<void> {

Check warning on line 47 in packages/run-script/scripts/npmUpdate.ts

View workflow job for this annotation

GitHub Actions / build

This line has a length of 125. Maximum allowed is 120
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() ?? "";
Expand Down

0 comments on commit ac1bdb2

Please sign in to comment.