Skip to content

Commit

Permalink
fix(compat): update patch for [email protected] (#6349)
Browse files Browse the repository at this point in the history
**What's the problem this PR addresses?**

The PnP compatibility patch for TypeScript doesn't apply to
`[email protected]`.

Ref microsoft/TypeScript#35206

**How did you fix it?**

Rebased it.

**Checklist**
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
- [x] I have set the packages that need to be released for my changes to
be effective.
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
  • Loading branch information
merceyz committed Jun 21, 2024
1 parent 866e929 commit 14ff342
Show file tree
Hide file tree
Showing 5 changed files with 1,087 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .yarn/versions/cab716b2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
releases:
"@yarnpkg/cli": patch
"@yarnpkg/plugin-compat": patch

declined:
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/builder"
- "@yarnpkg/core"
- "@yarnpkg/doctor"
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,14 @@ const SLICES = [
from: `f90eb7508e66a3d5066b1d8a06606c6c23f3df43`,
to: `43d2cbd6ac423e35a5a095a509fc90c03f0c22ba`,
onto: `b574864abc989d0f8b15367baea1058819e126ba`,
range: `>=5.5.0-beta`,
range: `>=5.5.0-beta <5.5.2`,
},
// https://github.com/yarnpkg/TypeScript/tree/merceyz/pnp-5.5
{
from: `5b321aa5835f9f4dba6d55553fd559985d44b1a9`,
to: `c41328460d8dba2fac56c220803c68ca961d7cd5`,
onto: `ce2e60e4ea15a65992e54a9e8877d16be9d42abb`,
range: `>=5.5.2`,
},
];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff --git a/lib/tsc.js b/lib/tsc.js
index 06f7f5ec9..4a7e28076 100644
semver exclusivity >=5.5.0-beta
semver exclusivity >=5.5.0-beta <5.5.2
--- a/lib/tsc.js
+++ b/lib/tsc.js
@@ -5120,6 +5120,9 @@ var sys = (() => {
Expand Down Expand Up @@ -347,7 +347,7 @@ semver exclusivity >=5.5.0-beta
function reloadFileNamesFromConfigFile() {
diff --git a/lib/tsserver.js b/lib/tsserver.js
index 50cc6659c..9cefc330a 100644
semver exclusivity >=5.5.0-beta
semver exclusivity >=5.5.0-beta <5.5.2
--- a/lib/tsserver.js
+++ b/lib/tsserver.js
@@ -33,6 +33,25 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
Expand Down Expand Up @@ -400,7 +400,7 @@ semver exclusivity >=5.5.0-beta
this.installer.on("message", (m) => this.handleMessage(m));
diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts
index f4c59a844..631850d94 100644
semver exclusivity >=5.5.0-beta
semver exclusivity >=5.5.0-beta <5.5.2
--- a/lib/typescript.d.ts
+++ b/lib/typescript.d.ts
@@ -9339,6 +9339,8 @@ declare namespace ts {
Expand All @@ -414,7 +414,7 @@ semver exclusivity >=5.5.0-beta
function resolveTripleslashReference(moduleName: string, containingFile: string): string;
diff --git a/lib/typescript.js b/lib/typescript.js
index 6b52dd675..22cf43d26 100644
semver exclusivity >=5.5.0-beta
semver exclusivity >=5.5.0-beta <5.5.2
--- a/lib/typescript.js
+++ b/lib/typescript.js
@@ -8708,6 +8708,9 @@ var sys = (() => {
Expand Down
Loading

0 comments on commit 14ff342

Please sign in to comment.