Skip to content

Commit

Permalink
feat: Added support to peerDependecies packages
Browse files Browse the repository at this point in the history
  • Loading branch information
david-rodrigues committed May 10, 2023
1 parent a809230 commit d0b5942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type NPMDependencies = Record<string, { version: string }>
interface NPMListResponse {
dependencies?: NPMDependencies
devDependencies?: NPMDependencies
peerDependencies?: NPMDependencies
}

export type PackagesInstalled = Record<string, string | undefined>
Expand Down
2 changes: 2 additions & 0 deletions src/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ export const vscodeSimulator = async (options: SimulatorOptions = {}) => {
vscodeMock.workspace.createFileSystemWatcher = (): unknown => ({
onDidChange: (handle: () => void): number =>
subscriptions.push(["onDidChange", handle]),
onDidCreate: () => null,
onDidDelete: () => null,
})

vscodeMock.workspace.getConfiguration = (): unknown => ({
Expand Down

0 comments on commit d0b5942

Please sign in to comment.