Skip to content

Sets the default compression to 0 #5526

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 11 commits into from
Jun 26, 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
34 changes: 34 additions & 0 deletions .yarn/versions/6c7747db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
releases:
"@yarnpkg/cli": major
"@yarnpkg/core": major
"@yarnpkg/plugin-essentials": major

declined:
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-exec"
- "@yarnpkg/plugin-file"
- "@yarnpkg/plugin-git"
- "@yarnpkg/plugin-github"
- "@yarnpkg/plugin-http"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-link"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-npm"
- "@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/doctor"
- "@yarnpkg/extensions"
- "@yarnpkg/nm"
- "@yarnpkg/pnpify"
- "@yarnpkg/sdks"
29 changes: 18 additions & 11 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
changesetIgnorePatterns:
- ".github/**"
- ".yarn/cache/**"
- .github/**
- .yarn/cache/**
- "**/*.test.{js,ts}"
- "packages/*/tests/**"
- "packages/plugin-compat/extra/**"
- "packages/gatsby/**"
- packages/*/tests/**
- packages/plugin-compat/extra/**
- packages/gatsby/**

enableGlobalCache: false
compressionLevel: mixed

pnpEnableEsmLoader: true
enableGlobalCache: false

immutablePatterns:
- .pnp.*

supportedArchitectures:
os: [darwin, linux, win32]
cpu: [x64, arm64]

initScope: yarnpkg

npmPublishAccess: public
Expand Down Expand Up @@ -73,8 +69,19 @@ packageExtensions:
typedoc-plugin-yarn:
optional: true

pnpEnableEsmLoader: true

preferInteractive: true

supportedArchitectures:
cpu:
- x64
- arm64
os:
- darwin
- linux
- win32

telemetryUserId: yarnpkg/berry

yarnPath: scripts/run-yarn.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {Filename, PortablePath, ppath, xfs} from '@yarnpkg/fslib';

const {
tests: {getPackageDirectoryPath},
} = require(`pkg-tests-core`);
const {parseSyml} = require(`@yarnpkg/parsers`);
import {parseSyml} from '@yarnpkg/parsers';
import {tests} from 'pkg-tests-core';

describe(`Commands`, () => {
describe(`add`, () => {
Expand Down Expand Up @@ -104,7 +101,7 @@ describe(`Commands`, () => {
test(
`it should add a new regular dependency to the current project (unnamed path)`,
makeTemporaryEnv({}, async ({path, run, source}) => {
const packagePath = await getPackageDirectoryPath(`no-deps`, `1.0.0`);
const packagePath = await tests.getPackageDirectoryPath(`no-deps`, `1.0.0`);

await run(`add`, packagePath);

Expand Down Expand Up @@ -570,9 +567,7 @@ describe(`Commands`, () => {

expect(preUpgradeCache.find(entry => entry.includes(`no-deps-npm-1.0.0`))).toBeDefined();

const {code, stdout, stderr} = await run(`add`, `[email protected]`);

await expect({code, stdout, stderr}).toMatchSnapshot();
await run(`add`, `[email protected]`);

const postUpgradeCache = await xfs.readdirPromise(`${path}/.yarn/cache` as PortablePath);

Expand All @@ -589,15 +584,14 @@ describe(`Commands`, () => {
YARN_ENABLE_GLOBAL_CACHE: `true`,
YARN_GLOBAL_FOLDER: `${path}/global`,
};

await run(`install`, {env});

const preUpgradeCache = await xfs.readdirPromise(`${path}/global/cache` as PortablePath);

expect(preUpgradeCache.find(entry => entry.includes(`no-deps-npm-1.0.0`))).toBeDefined();

const {code, stdout, stderr} = await run(`add`, `[email protected]`, {env});

await expect({code, stdout, stderr}).toMatchSnapshot();
await run(`add`, `[email protected]`, {env});

const postUpgradeCache = await xfs.readdirPromise(`${path}/global/cache` as PortablePath);

Expand Down
Loading