Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove custom process.versions.pnp type #10617

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/jest-resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"devDependencies": {
"@types/graceful-fs": "^4.1.3",
"@types/pnpapi": "~0.0.1",
"@types/resolve": "^1.20.0"
},
"engines": {
Expand Down
9 changes: 0 additions & 9 deletions packages/jest-resolve/src/defaultResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ export type AsyncResolver = (

export type Resolver = SyncResolver | AsyncResolver;

// https://github.com/facebook/jest/pull/10617
declare global {
namespace NodeJS {
export interface ProcessVersions {
pnp?: any;
}
}
}

const defaultResolver: SyncResolver = (path, options) => {
// Yarn 2 adds support to `resolve` automatically so the pnpResolver is only
// needed for Yarn 1 which implements version 1 of the pnp spec
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5180,6 +5180,13 @@ __metadata:
languageName: node
linkType: hard

"@types/pnpapi@npm:~0.0.1":
version: 0.0.2
resolution: "@types/pnpapi@npm:0.0.2"
checksum: b58ec37cfaebe99ca7d1fa3200c57d8f8d51da58f6152c1b8ef6d03e00fa8595a937ae36234a0ff6f52306740bf4ddfd2633d62d5693eb9af41edb6181ef3d02
languageName: node
linkType: hard

"@types/prettier@npm:*, @types/prettier@npm:^2.0.0, @types/prettier@npm:^2.1.5":
version: 2.4.4
resolution: "@types/prettier@npm:2.4.4"
Expand Down Expand Up @@ -13301,6 +13308,7 @@ __metadata:
resolution: "jest-resolve@workspace:packages/jest-resolve"
dependencies:
"@types/graceful-fs": ^4.1.3
"@types/pnpapi": ~0.0.1
"@types/resolve": ^1.20.0
chalk: ^4.0.0
graceful-fs: ^4.2.9
Expand Down