Skip to content

fix(compat): update patch for [email protected] #5210

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

Merged
merged 2 commits into from
Jan 29, 2023
Merged
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
28 changes: 14 additions & 14 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "4.9.4-sdk",
"version": "5.0.0-beta-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
}
23 changes: 23 additions & 0 deletions .yarn/versions/53aa46d4.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"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eslint": "^8.2.0",
"jest": "^29.2.1",
"tslib": "^2.4.0",
"typescript": "4.9.4"
"typescript": "5.0.0-beta"
},
"resolutions": {
"ink": "patch:ink@npm%3A3.0.8#~/.yarn/patches/ink-npm-3.0.8-3a8005f59f.patch",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"typedoc": "patch:typedoc@npm%3A0.17.0-3#~/.yarn/patches/typedoc-npm-0.17.0-3-0ce05847cf.patch",
"typedoc-neo-theme": "^1.0.7",
"typedoc-plugin-yarn": "portal:./typedoc-plugin-yarn",
"typescript": "4.9.4",
"typescript": "5.0.0-beta",
"unescape-html": "^1.1.0",
"unfetch": "^4.1.0",
"unified": "^7.1.0",
Expand Down
29 changes: 21 additions & 8 deletions packages/plugin-compat/extra/typescript/gen-typescript-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,37 +116,44 @@ const SLICES = [
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-4.8-stable
{
from: `623a7ac5aa49250155d39e604b09b4d015468a9c`,
to: `623a7ac5aa49250155d39e604b09b4d015468a9c`,
to: `30840e0c2ad8e115c518f87379b7cb55fdf77f03`,
onto: `60b5167a2a7015759d048cdd4655d1f66a8416a2`,
range: `>=4.8.1-rc <4.8.4`,
},
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-4.8
{
from: `d3747e92c3cd2d1f98739382c14226a725df38fd`,
to: `d3747e92c3cd2d1f98739382c14226a725df38fd`,
to: `5b9a74243e47db6113e857eabe5d26589fa0b64f`,
onto: `a614119c1921ca61d549a7eee65c0b8c69c28752`,
range: `>=4.8.4 <4.9.1-beta`,
},
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-4.9-beta
{
from: `69c84aacfcea603c4d74721366cdcbbebd1c1681`,
to: `69c84aacfcea603c4d74721366cdcbbebd1c1681`,
to: `18b67922d3dcc5215541a38bf6417972270bf60f`,
onto: `549b5429d4837344e8c99657109bb6538fd2dbb5`,
range: `>=4.9.1-beta <4.9.2-rc`,
},
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-4.9-rc
{
from: `5613f8d8e30dfa9fb3da15e2b8432ed7e2347a12`,
to: `5613f8d8e30dfa9fb3da15e2b8432ed7e2347a12`,
to: `d3a8a86ce4774d607c5a4a225cc5b59b1f96f42f`,
onto: `107f832b80df2dc97748021cb00af2b6813db75b`,
range: `>=4.9.2-rc <4.9.4`,
},
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-4.9
{
from: `a0859a75a408ec95222a3f0175ba0644d60396f1`,
to: `a0859a75a408ec95222a3f0175ba0644d60396f1`,
to: `2b8a9b1c21a6d2c0aa26437c2636414be950aa79`,
onto: `e2868216f637e875a74c675845625eb15dcfe9a2`,
range: `>=4.9.4`,
range: `>=4.9.4 <5.0.0-beta`,
},
// https://github.com/merceyz/TypeScript/tree/merceyz/pnp-5.0
{
from: `65bff6fadce4736bb9a77213ba8016f1ac7d25e5`,
to: `65bff6fadce4736bb9a77213ba8016f1ac7d25e5`,
onto: `dcad07ffd29854e2b93a86da0ba197f6eec21698`,
range: `>=5.0.0-beta`,
},
];

Expand Down Expand Up @@ -181,7 +188,13 @@ async function execFile(binary, args, {checkExitCode = true, ...opts} = {}) {
console.log(`${binary} ${args.join(` `)}`);

return new Promise((resolve, reject) => {
const child = cp.spawn(binary, args, opts);
const child = cp.spawn(binary, args, {
...opts,
env: {
...process.env,
NODE_OPTIONS: undefined,
},
});

const outChunks = [];
const allChunks = [];
Expand Down Expand Up @@ -299,7 +312,7 @@ async function buildRepository({from, to, onto}) {
}
}

await execFile(`./node_modules/.bin/gulp`, [`local`, `LKG`], TS_REPO_SPAWN);
await execFile(fs.existsSync(`${TS_REPO}/node_modules/.bin/hereby`) ? `./node_modules/.bin/hereby` : `./node_modules/.bin/gulp`, [`local`, `LKG`], TS_REPO_SPAWN);

// It seems that in some circumstances the build can produce incorrect artifacts. When
// that happens, the final binary is very small. We try to detect that.
Expand Down
Loading