-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: yarnpkg/berry
base: 6b7621f0736ef7ed423672392882d68592d61c81
head repository: yarnpkg/berry
compare: 9a853e35cfe44d1cbd17b9739f68e90d1c79c96e
- 19 commits
- 1,027 files changed
- 13 contributors
Commits on Mar 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2aa53d1 - Browse repository at this point
Copy the full SHA 2aa53d1View commit details
Commits on Mar 10, 2024
-
fix(extensions):
eslint-import-resolver-vite@<2.0.1
(#6154)**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> pzmosquito/eslint-import-resolver-vite#22 **How did you fix it?** <!-- A detailed description of your implementation. --> **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. --------- Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2d6a7ab - Browse repository at this point
Copy the full SHA 2d6a7abView commit details -
chore: fix typo:
overriden
->overridden
(#6155)Co-authored-by: MaΓ«l Nison <nison.mael@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for daa5747 - Browse repository at this point
Copy the full SHA daa5747View commit details
Commits on Mar 27, 2024
-
Adds ts-nocheck to the PnP file (#6183)
**What's the problem this PR addresses?** The PnP file is fairly large; it seems that parsing it is difficult for TypeScript on projects configured with `checkJs`, even if it doesn't contain `// @ts-check`. Adding `// @ts-nocheck` to the file seemed to improve the situation. **How did you fix it?** Adds `// @ts-nocheck` to the generated `.pnp.cjs` file. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for c9d5a4c - Browse repository at this point
Copy the full SHA c9d5a4cView commit details -
Improve libc presence detection (#6170)
**What's the problem this PR addresses?** On certain Linux distributions, `/usr/bin/ldd` does not contain the string "GLIBC", but "libc". This is the case in popular distros such as openSUSE, Amazon Linux, Fedora, RHEL, Arch, and more. On these distributions, the current version of yarn falls back to `process.report.getReport()`, which is known to have performance issues in some instances. **How did you fix it?** Add a check for the presence of the value `libc` in addition to the existing check for `GLIBC`. This allows more Linux users to benefit from the fast-path that does not rely on `process.report.getReport()`. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for a3e5695 - Browse repository at this point
Copy the full SHA a3e5695View commit details
Commits on Apr 10, 2024
-
Exclude binaries when searching in VS Code (#6213)
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> When searching in VS Code, the precompiled binaries often show up in the results, because whatever source code matched the search is included in the binary. **How did you fix it?** <!-- A detailed description of your implementation. --> Added search exclusions for precompiled binaries in VS Code settings **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for a4c99d5 - Browse repository at this point
Copy the full SHA a4c99d5View commit details -
build(compat): fix building TypeScript patches (#6186)
**What's the problem this PR addresses?** Depending on the version of Node.js and npm you have available; building the TypeScript patches might not work. **How did you fix it?** - Since "recent" versions of TypeScript have a Volta config specifying the Node.js and npm versions to use, change the script to always use Volta to run `node` and `npm`. - For older versions without a complete Volta config I've added one. - Install using `npm ci` when a lockfile is present as using `npm install` causes some TypeScript builds to fail. **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.
Configuration menu - View commit details
-
Copy full SHA for 17de52a - Browse repository at this point
Copy the full SHA 17de52aView commit details -
feat(builder): add
--metafile
flag (#6212)**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> resolves #6211 ... **How did you fix it?** - added a boolean CLI switch to `builder build {bundle,plugin}` called `--metafile`, defaults to `false` - if CLI switch - is `false`, then the `esbuild` in instructed to NOT emit `metafile` - is `true`, then ... - the `esbuild` in instructed to emit `metafile` - the `metafile` data is written to target file `bundles/${name}.meta.json` - the target file is announced in the summary example ourput: ```shellSession $ builder build plugin --metafile β€ YN0000: β Building @yarnpkg/plugin-cyclonedx β€ YN0000: β Completed in 8s 619ms β€ YN0000: β Done building @yarnpkg/plugin-cyclonedx! β€ YN0000: ? Bundle path: /.../cyclonedx-node-yarn/bundles/@yarnpkg/plugin-cyclonedx.js β€ YN0000: ? Bundle size: 771.52 KiB β€ YN0000: ? Bundle meta: /.../cyclonedx-node-yarn/bundles/@yarnpkg/plugin-cyclonedx.meta.json ``` <!-- A detailed description of your implementation. --> ... **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. --------- Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com> Co-authored-by: merceyz <merceyz@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 4a889dc - Browse repository at this point
Copy the full SHA 4a889dcView commit details -
feat(plugin-typescript): check workspace tsconfig.json (#6175)
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> Given the following monorepo setup, `plugin-typescript` is currently not enabled by default in the `foo` workspace, as it only checks that a `tsconfig.json` exists at the root of the project: ``` package.json workspace/foo/package.json workspace/foo/tsconfig.json ``` I also found the [current `README` of `plugin-typescript`](https://github.com/yarnpkg/berry/blob/daa574791b3b2df01e76c1fdfd9c975050a0fb9d/packages/plugin-typescript/README.md) not to be helpful in diagnosing my issue **How did you fix it?** <!-- A detailed description of your implementation. --> I've added a check to see if the current workspace had a `tsconfig.json` I've also added a Configuration section to `plugin-typescript/README.md`, to help users find the `tsEnableAutoTypes` option. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. - I have only bumped `@yarnpkg/plugin-typescript` and `@yarnpkg/cli`, let me know if I should also select the other plugins/core etc. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for aa4029d - Browse repository at this point
Copy the full SHA aa4029dView commit details -
build(compat): use a treeless TypeScript clone (#6193)
**What's the problem this PR addresses?** Building the latest TypeScript patch requires fetching https://github.com/arcanis/typescript, https://github.com/microsoft/typescript, and https://github.com/merceyz/typescript which, according to git, requires fetching 1.87 GiB, 452 MiB, and 42 MiB of data and produces a 2.7GB `.git` folder. **How did you fix it?** Fork TypeScript to https://github.com/yarnpkg/TypeScript and push the branches required to build all the patches to it and change the script to use a treeless clone of it which only needs to fetch 55 MiB of data and produces a 74MB `.git` folder. Depends on - #6186 **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.
Configuration menu - View commit details
-
Copy full SHA for ded6091 - Browse repository at this point
Copy the full SHA ded6091View commit details -
Migrate docs to Docusaurus v3 (#6133)
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> The docs website is on Docsaurus v2 which is not the latest major version Closes #5918 Closes #6153 **How did you fix it?** <!-- A detailed description of your implementation. --> Migrate to Docsaurus v3. There are other improvements to the build process and website I'd like to make, but I have left them out and kept most of the logic intact since the migration is quite a large undertaking already. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for c64644a - Browse repository at this point
Copy the full SHA c64644aView commit details
Commits on Apr 20, 2024
-
fix(version) use correct counter placeholder in documentation (#6241)
**What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> The documentation mentions `%d` but the code uses `%n`. https://github.com/yarnpkg/berry/blob/c64644ae88ba42090ab9b87da0b09601d4218b0c/packages/plugin-version/sources/commands/version/apply.ts#L76-L78 **How did you fix it?** <!-- A detailed description of your implementation. --> Update the code **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for 22758ae - Browse repository at this point
Copy the full SHA 22758aeView commit details
Commits on Apr 23, 2024
-
Use title for issue sesctions (#6244)
In markdown, syntax have meaning. Those shouldn't be bold text, but titles: - semantically it suggests something different - `**text**` are easy to be removed as they could be interpreted as placeholders - having titles allows deep linking
Configuration menu - View commit details
-
Copy full SHA for 52252b0 - Browse repository at this point
Copy the full SHA 52252b0View commit details
Commits on May 1, 2024
-
fix(docs): Fixes SysGears logo in the README and SysGears name spelliβ¦
β¦ng (#6245) **What's the problem this PR addresses?** <!-- Describe the rationale of your PR. --> <!-- Link all issues that it closes. (Closes/Resolves #xxxx.) --> At the moment the image to SysGears logo is broken, because the URL has changed to the `sysgears.com` domain from `cdn3.sysgears.com` subdomain. **How did you fix it?** <!-- A detailed description of your implementation. --> I have updated the URL to the logo to point at GitHub, so that Yarn weren't affected by external website changes. I also updated spelling of the SysGears name from Sysgears to SysGears, as the latter is more correct. **Checklist** <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for c8c59ff - Browse repository at this point
Copy the full SHA c8c59ffView commit details -
fix(compat): update patch for
typescript@5.5.0-beta
(#6248)**What's the problem this PR addresses?** The PnP compatibility patch for TypeScript doesn't apply to `typescript@5.5.0-beta`. 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.
Configuration menu - View commit details
-
Copy full SHA for c7c0767 - Browse repository at this point
Copy the full SHA c7c0767View commit details -
Fix parser stringify subshell brackets (#6254)
## What's the problem this PR addresses? With `@yarnpkg/parsers`, stringifying a subshell (e.g. `echo $(echo a)`) uses the wrong brackets (e.g. `echo ${echo a}`) ## How did you fix it? Change to use the correct brackets. ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for 8d8b318 - Browse repository at this point
Copy the full SHA 8d8b318View commit details -
Simplify documentation of "constraints" overview (#6257)
The current documentation overview for [Constraints](https://yarnpkg.com/features/constraints) reads somewhat like a sales pitch, rather than documentation. It's a bit wordy, and kind of grammatically incorrect/confusing. It might be more beneficial to mention "enforcement of workspace package rules" as the main point, rather than towards the end of the description. Additionally, constraints can be used for a large number of needs that are not necessarily "basic" ones. I'd be fine with expanding the example list, but being sure to specify that these are just examples of how constraints are commonly used. They're not the limit of the capability. ## What's the problem this PR addresses? Unclear documentation. ## How did you fix it? Made it a bit more clear and simple. ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [ ] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [ ] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [ ] I will check that all automated PR checks pass before the PR gets reviewed.
Configuration menu - View commit details
-
Copy full SHA for df5d1c2 - Browse repository at this point
Copy the full SHA df5d1c2View commit details
Commits on May 2, 2024
-
fix(sdks): only patch typescript entry point for >= 5.5 (#6263)
**What's the problem this PR addresses?** The SDK changes in #6248 broke support for older TypeScript versions. I tested it on `5.4.1-rc` (master) and it was fine but it crashes on 5.2.0-beta (https://github.com/yarnpkg/berry/blob/4308dca8091438e8f88682e59ef5ba5bc72241ca/package.json#L26) **How did you fix it?** Check the TypeScript version and only apply the patch if needed. **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.
Configuration menu - View commit details
-
Copy full SHA for f994c2b - Browse repository at this point
Copy the full SHA f994c2bView commit details -
| Package name | Version | | --- | --- | | `@yarnpkg/cli` | `4.2.0` | | `@yarnpkg/extensions` | `2.0.2` | | `@yarnpkg/plugin-compat` | `4.0.4` | | `@yarnpkg/plugin-version` | `4.0.2` | | `@yarnpkg/builder` | `4.1.0` | | `@yarnpkg/sdks` | `3.1.1` | | `@yarnpkg/core` | `4.0.4` | | `@yarnpkg/plugin-npm-cli` | `4.0.3` | | `@yarnpkg/parsers` | `3.0.1` | | `@yarnpkg/shell` | `4.0.1` | | `@yarnpkg/plugin-typescript` | `4.1.0` | | `@yarnpkg/plugin-pnp` | `4.0.3` | | `@yarnpkg/pnp` | `4.0.3` |
Configuration menu - View commit details
-
Copy full SHA for 9a853e3 - Browse repository at this point
Copy the full SHA 9a853e3View commit details
There are no files selected for viewing