|
1 | 1 | diff --git a/lib/tsc.js b/lib/tsc.js
|
2 |
| -index b7520e834..a8b13999c 100644 |
3 |
| -semver exclusivity >=4.5.2 |
| 2 | +index b7520e834..796e8d126 100644 |
| 3 | +semver exclusivity >=4.5.2 <4.6 |
4 | 4 | --- a/lib/tsc.js
|
5 | 5 | +++ b/lib/tsc.js
|
6 | 6 | @@ -4776,6 +4776,9 @@ var ts;
|
@@ -193,7 +193,7 @@ semver exclusivity >=4.5.2
|
193 | 193 | + var findPnpApi = require("module").findPnpApi;
|
194 | 194 | + var pnpApi = findPnpApi(path);
|
195 | 195 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
196 |
| -+ if (locator != null) { |
| 196 | ++ if (locator !== null && locator !== undefined) { |
197 | 197 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
198 | 198 | + if (locator === sourceLocator) {
|
199 | 199 | + return undefined;
|
@@ -303,8 +303,8 @@ semver exclusivity >=4.5.2
|
303 | 303 | ts.perfLogger.logStartUpdateProgram("SynchronizeProgram");
|
304 | 304 | synchronizeProgram();
|
305 | 305 | diff --git a/lib/tsserver.js b/lib/tsserver.js
|
306 |
| -index d0063b2e5..17d21c109 100644 |
307 |
| -semver exclusivity >=4.5.2 |
| 306 | +index d0063b2e5..a83296120 100644 |
| 307 | +semver exclusivity >=4.5.2 <4.6 |
308 | 308 | --- a/lib/tsserver.js
|
309 | 309 | +++ b/lib/tsserver.js
|
310 | 310 | @@ -7515,6 +7515,11 @@ var ts;
|
@@ -520,7 +520,7 @@ semver exclusivity >=4.5.2
|
520 | 520 | + var pnpApi = findPnpApi(path);
|
521 | 521 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
522 | 522 | + // eslint-disable-next-line no-null/no-null
|
523 |
| -+ if (locator != null) { |
| 523 | ++ if (locator !== null && locator !== undefined) { |
524 | 524 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
525 | 525 | + // Don't use the package name when the imported file is inside
|
526 | 526 | + // the source directory (prefer a relative path instead)
|
@@ -924,8 +924,8 @@ semver exclusivity >=4.5.2
|
924 | 924 | this.installer.on("message", function (m) { return _this.handleMessage(m); });
|
925 | 925 | // We have to schedule this event to the next tick
|
926 | 926 | diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js
|
927 |
| -index 362c8ed2f..836fb22b4 100644 |
928 |
| -semver exclusivity >=4.5.2 |
| 927 | +index 362c8ed2f..b99bd161a 100644 |
| 928 | +semver exclusivity >=4.5.2 <4.6 |
929 | 929 | --- a/lib/tsserverlibrary.js
|
930 | 930 | +++ b/lib/tsserverlibrary.js
|
931 | 931 | @@ -7709,6 +7709,11 @@ var ts;
|
@@ -1141,7 +1141,7 @@ semver exclusivity >=4.5.2
|
1141 | 1141 | + var pnpApi = findPnpApi(path);
|
1142 | 1142 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
1143 | 1143 | + // eslint-disable-next-line no-null/no-null
|
1144 |
| -+ if (locator != null) { |
| 1144 | ++ if (locator !== null && locator !== undefined) { |
1145 | 1145 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
1146 | 1146 | + // Don't use the package name when the imported file is inside
|
1147 | 1147 | + // the source directory (prefer a relative path instead)
|
@@ -1521,8 +1521,8 @@ semver exclusivity >=4.5.2
|
1521 | 1521 | var _this = this;
|
1522 | 1522 | var watchers = this.packageJsonFilesMap || (this.packageJsonFilesMap = new ts.Map());
|
1523 | 1523 | diff --git a/lib/typescript.js b/lib/typescript.js
|
1524 |
| -index b08660b52..0cefe5195 100644 |
1525 |
| -semver exclusivity >=4.5.2 |
| 1524 | +index b08660b52..e37fe50a1 100644 |
| 1525 | +semver exclusivity >=4.5.2 <4.6 |
1526 | 1526 | --- a/lib/typescript.js
|
1527 | 1527 | +++ b/lib/typescript.js
|
1528 | 1528 | @@ -7709,6 +7709,11 @@ var ts;
|
@@ -1738,7 +1738,7 @@ semver exclusivity >=4.5.2
|
1738 | 1738 | + var pnpApi = findPnpApi(path);
|
1739 | 1739 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
1740 | 1740 | + // eslint-disable-next-line no-null/no-null
|
1741 |
| -+ if (locator != null) { |
| 1741 | ++ if (locator !== null && locator !== undefined) { |
1742 | 1742 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
1743 | 1743 | + // Don't use the package name when the imported file is inside
|
1744 | 1744 | + // the source directory (prefer a relative path instead)
|
@@ -2014,8 +2014,8 @@ semver exclusivity >=4.5.2
|
2014 | 2014 | return statement;
|
2015 | 2015 | });
|
2016 | 2016 | diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js
|
2017 |
| -index bbe1b9b37..197e2c71c 100644 |
2018 |
| -semver exclusivity >=4.5.2 |
| 2017 | +index bbe1b9b37..e8f32af65 100644 |
| 2018 | +semver exclusivity >=4.5.2 <4.6 |
2019 | 2019 | --- a/lib/typescriptServices.js
|
2020 | 2020 | +++ b/lib/typescriptServices.js
|
2021 | 2021 | @@ -7709,6 +7709,11 @@ var ts;
|
@@ -2231,7 +2231,7 @@ semver exclusivity >=4.5.2
|
2231 | 2231 | + var pnpApi = findPnpApi(path);
|
2232 | 2232 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
2233 | 2233 | + // eslint-disable-next-line no-null/no-null
|
2234 |
| -+ if (locator != null) { |
| 2234 | ++ if (locator !== null && locator !== undefined) { |
2235 | 2235 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
2236 | 2236 | + // Don't use the package name when the imported file is inside
|
2237 | 2237 | + // the source directory (prefer a relative path instead)
|
@@ -2507,8 +2507,8 @@ semver exclusivity >=4.5.2
|
2507 | 2507 | return statement;
|
2508 | 2508 | });
|
2509 | 2509 | diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js
|
2510 |
| -index 514f48a46..4d1aa5d8f 100644 |
2511 |
| -semver exclusivity >=4.5.2 |
| 2510 | +index 514f48a46..f73da2952 100644 |
| 2511 | +semver exclusivity >=4.5.2 <4.6 |
2512 | 2512 | --- a/lib/typingsInstaller.js
|
2513 | 2513 | +++ b/lib/typingsInstaller.js
|
2514 | 2514 | @@ -7504,6 +7504,11 @@ var ts;
|
@@ -2724,7 +2724,7 @@ semver exclusivity >=4.5.2
|
2724 | 2724 | + var pnpApi = findPnpApi(path);
|
2725 | 2725 | + var locator = pnpApi === null || pnpApi === void 0 ? void 0 : pnpApi.findPackageLocator(path);
|
2726 | 2726 | + // eslint-disable-next-line no-null/no-null
|
2727 |
| -+ if (locator != null) { |
| 2727 | ++ if (locator !== null && locator !== undefined) { |
2728 | 2728 | + var sourceLocator = pnpApi.findPackageLocator("".concat(sourceDirectory, "/"));
|
2729 | 2729 | + // Don't use the package name when the imported file is inside
|
2730 | 2730 | + // the source directory (prefer a relative path instead)
|
|
0 commit comments