Skip to content

Commit 1601ab3

Browse files
committed
lint
1 parent 7c3e6a8 commit 1601ab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands-core/packageJson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const pickInstalledDeps = async <M extends boolean>({
146146

147147
const AT_TYPES = '@types/'
148148
const hasTypesPackage = (pkg: string, pkgJsonIndex: number) =>
149-
Object.keys(packageJsons![pkgJsonIndex]!.dependencies ?? {}).includes(pkg.slice(AT_TYPES.length))
149+
Object.keys(packageJsons[pkgJsonIndex]!.dependencies ?? {}).includes(pkg.slice(AT_TYPES.length))
150150

151151
// TODO produce warning dialog when package a in dev/optional deps and @types/a in deps
152152

src/commands-core/packageManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const packageManagerCommand = async (_inputArg: {
179179
cancellationToken,
180180
packages,
181181
reportProgress,
182-
flags: flags as string[],
182+
flags,
183183
})
184184
break
185185

0 commit comments

Comments
 (0)