diff --git a/.yarn/versions/fbd4f359.yml b/.yarn/versions/fbd4f359.yml new file mode 100644 index 000000000000..9c21448a565b --- /dev/null +++ b/.yarn/versions/fbd4f359.yml @@ -0,0 +1,35 @@ +releases: + "@yarnpkg/cli": patch + "@yarnpkg/core": patch + +declined: + - "@yarnpkg/plugin-compat" + - "@yarnpkg/plugin-constraints" + - "@yarnpkg/plugin-dlx" + - "@yarnpkg/plugin-essentials" + - "@yarnpkg/plugin-exec" + - "@yarnpkg/plugin-file" + - "@yarnpkg/plugin-git" + - "@yarnpkg/plugin-github" + - "@yarnpkg/plugin-http" + - "@yarnpkg/plugin-init" + - "@yarnpkg/plugin-interactive-tools" + - "@yarnpkg/plugin-jsr" + - "@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" diff --git a/packages/acceptance-tests/pkg-tests-specs/sources/commands/__snapshots__/constraints.test.ts.snap b/packages/acceptance-tests/pkg-tests-specs/sources/commands/__snapshots__/constraints.test.ts.snap index 12a8fa724420..f0c110b8b0e2 100644 --- a/packages/acceptance-tests/pkg-tests-specs/sources/commands/__snapshots__/constraints.test.ts.snap +++ b/packages/acceptance-tests/pkg-tests-specs/sources/commands/__snapshots__/constraints.test.ts.snap @@ -22,8 +22,8 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (amb "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -34,8 +34,8 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (amb "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -79,7 +79,7 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (inc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -91,7 +91,7 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (inc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -103,7 +103,7 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (mis "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -115,7 +115,7 @@ exports[`Commands constraints test (empty project / gen_enforced_dependency (mis "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -126,8 +126,8 @@ exports[`Commands constraints test (empty project / gen_enforced_field (ambiguou "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -138,8 +138,8 @@ exports[`Commands constraints test (empty project / gen_enforced_field (ambiguou "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -167,7 +167,7 @@ exports[`Commands constraints test (empty project / gen_enforced_field (incompat "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -179,7 +179,7 @@ exports[`Commands constraints test (empty project / gen_enforced_field (incompat "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -191,7 +191,7 @@ exports[`Commands constraints test (empty project / gen_enforced_field (missing) "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -203,7 +203,7 @@ exports[`Commands constraints test (empty project / gen_enforced_field (missing) "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -278,18 +278,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stderr": "", "stdout": "├─ root-workspace-0b6124@workspace:. │ └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: -│ ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) -│ └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) +│ ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) +│ └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) │ ├─ workspace-a@workspace:packages/workspace-a │ └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: -│ ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) -│ └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) +│ ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) +│ └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) │ └─ workspace-b@workspace:packages/workspace-b └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -300,18 +300,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stderr": "", "stdout": "├─ root-workspace-0b6124@workspace:. │ └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: -│ ├─ '1.0.0' -│ └─ '2.0.0' +│ ├─ "1.0.0" +│ └─ "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a │ └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: -│ ├─ '1.0.0' -│ └─ '2.0.0' +│ ├─ "1.0.0" +│ └─ "2.0.0" │ └─ workspace-b@workspace:packages/workspace-b └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -323,10 +323,10 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' +│ └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -338,12 +338,12 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' -│ └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to '1.0.0' +│ ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" +│ └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' - └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to '1.0.0' + ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" + └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -355,18 +355,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "├─ workspace-a@workspace:packages/workspace-a │ ├─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: │ │ ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) -│ │ └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) +│ │ └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) │ └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: │ ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) -│ └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) +│ └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) │ └─ workspace-b@workspace:packages/workspace-b ├─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: │ ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - │ └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + │ └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) ", } `; @@ -377,18 +377,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stderr": "", "stdout": "├─ workspace-a@workspace:packages/workspace-a │ ├─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: -│ │ ├─ '1.0.0' +│ │ ├─ "1.0.0" │ │ └─ undefined │ └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: -│ ├─ '1.0.0' +│ ├─ "1.0.0" │ └─ undefined │ └─ workspace-b@workspace:packages/workspace-b ├─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - │ ├─ '1.0.0' + │ ├─ "1.0.0" │ └─ undefined └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' + ├─ "1.0.0" └─ undefined ", } @@ -401,13 +401,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' +│ └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' +│ └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -419,13 +419,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' +│ └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' +│ └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -437,13 +437,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -455,13 +455,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -472,18 +472,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (am "stderr": "", "stdout": "├─ root-workspace-0b6124@workspace:. │ └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: -│ ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) -│ └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) +│ ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) +│ └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) │ ├─ workspace-a@workspace:packages/workspace-a │ └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: -│ ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) -│ └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) +│ ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) +│ └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) │ └─ workspace-b@workspace:packages/workspace-b └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -494,18 +494,18 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (am "stderr": "", "stdout": "├─ root-workspace-0b6124@workspace:. │ └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: -│ ├─ '1.0.0' -│ └─ '2.0.0' +│ ├─ "1.0.0" +│ └─ "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a │ └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: -│ ├─ '1.0.0' -│ └─ '2.0.0' +│ ├─ "1.0.0" +│ └─ "2.0.0" │ └─ workspace-b@workspace:packages/workspace-b └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -517,10 +517,10 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (ex "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } +│ └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -532,10 +532,10 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (ex "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } +│ └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -547,13 +547,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (in "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' +│ └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' +│ └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -565,13 +565,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (in "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' +│ └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' +│ └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -583,13 +583,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (mi "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' +│ └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' +│ └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -601,13 +601,13 @@ exports[`Commands constraints test (multiple workspaces / gen_enforced_field (mi "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ root-workspace-0b6124@workspace:. -│ └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" │ ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' +│ └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -651,10 +651,10 @@ exports[`Commands constraints test (multiple workspaces / workspace_field w/ str "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field _name; expected 'workspace-a' +│ └─ ⚙ Missing field _name; expected "workspace-a" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field _name; expected 'workspace-b' + └─ ⚙ Missing field _name; expected "workspace-b" ", } `; @@ -666,10 +666,10 @@ exports[`Commands constraints test (multiple workspaces / workspace_field w/ str "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix ├─ workspace-a@workspace:packages/workspace-a -│ └─ ⚙ Missing field _name; expected 'workspace-a' +│ └─ ⚙ Missing field _name; expected "workspace-a" │ └─ workspace-b@workspace:packages/workspace-b - └─ ⚙ Missing field _name; expected 'workspace-b' + └─ ⚙ Missing field _name; expected "workspace-b" ", } `; @@ -696,8 +696,8 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -708,8 +708,8 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -721,7 +721,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -733,7 +733,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -745,7 +745,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) ", } `; @@ -765,7 +765,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -777,7 +777,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -789,7 +789,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -801,7 +801,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_depend "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -812,8 +812,8 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -824,8 +824,8 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -837,7 +837,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0" } ", } `; @@ -849,7 +849,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0" } ", } `; @@ -861,7 +861,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -873,7 +873,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -885,7 +885,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -897,7 +897,7 @@ exports[`Commands constraints test (one regular dependency / gen_enforced_field "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -972,8 +972,8 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -984,8 +984,8 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1005,7 +1005,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -1017,7 +1017,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) ", } `; @@ -1037,7 +1037,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1049,7 +1049,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1061,7 +1061,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1073,7 +1073,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1084,8 +1084,8 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1096,8 +1096,8 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1125,7 +1125,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1137,7 +1137,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1149,7 +1149,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -1161,7 +1161,7 @@ exports[`Commands constraints test (two development dependencies / gen_enforced_ "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -1236,8 +1236,8 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1248,8 +1248,8 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1261,7 +1261,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -1273,7 +1273,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -1285,7 +1285,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) ", } `; @@ -1305,7 +1305,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1317,7 +1317,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1329,7 +1329,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1341,7 +1341,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_depe "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1352,8 +1352,8 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1364,8 +1364,8 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1377,7 +1377,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -1389,7 +1389,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -1401,7 +1401,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1413,7 +1413,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1425,7 +1425,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -1437,7 +1437,7 @@ exports[`Commands constraints test (two regular dependencies / gen_enforced_fiel "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -1512,8 +1512,8 @@ exports[`Commands constraints test (two regular dependencies, two development de "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1524,8 +1524,8 @@ exports[`Commands constraints test (two regular dependencies, two development de "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1537,7 +1537,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' + └─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -1549,8 +1549,8 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to '1.0.0' - └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to '1.0.0' + ├─ ⚙ Extraneous field dependencies["no-deps"] currently set to "1.0.0" + └─ ⚙ Extraneous field devDependencies["no-deps"] currently set to "1.0.0" ", } `; @@ -1562,10 +1562,10 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "└─ root-workspace-0b6124@workspace:. ├─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: │ ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - │ └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + │ └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) └─ Conflict detected in constraint targeting devDependencies["no-deps"]; conflicting values are: ├─ undefined at exports.constraints (/path/to/yarn.config.cjs:3:72) - └─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:82) + └─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:82) ", } `; @@ -1585,7 +1585,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1597,7 +1597,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1609,7 +1609,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1621,7 +1621,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1632,8 +1632,8 @@ exports[`Commands constraints test (two regular dependencies, two development de "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1644,8 +1644,8 @@ exports[`Commands constraints test (two regular dependencies, two development de "stderr": "", "stdout": "└─ root-workspace-0b6124@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1657,7 +1657,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -1669,7 +1669,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Extraneous field dependencies currently set to { 'no-deps': '1.0.0', 'no-deps-bins': '1.0.0' } + └─ ⚙ Extraneous field dependencies currently set to { "no-deps": "1.0.0", "no-deps-bins": "1.0.0" } ", } `; @@ -1681,7 +1681,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1693,7 +1693,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Invalid field dependencies["no-deps"]; expected '2.0.0', found '1.0.0' + └─ ⚙ Invalid field dependencies["no-deps"]; expected "2.0.0", found "1.0.0" ", } `; @@ -1705,7 +1705,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -1717,7 +1717,7 @@ exports[`Commands constraints test (two regular dependencies, two development de "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ root-workspace-0b6124@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -1792,8 +1792,8 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stderr": "", "stdout": "└─ foo@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1804,8 +1804,8 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stderr": "", "stdout": "└─ foo@workspace:. └─ Conflict detected in constraint targeting dependencies["no-deps"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1849,7 +1849,7 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1861,7 +1861,7 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1873,7 +1873,7 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1885,7 +1885,7 @@ exports[`Commands constraints test (various field types / gen_enforced_dependenc "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected '1.0.0' + └─ ⚙ Missing field peerDependencies["one-fixed-dep"]; expected "1.0.0" ", } `; @@ -1896,8 +1896,8 @@ exports[`Commands constraints test (various field types / gen_enforced_field (am "stderr": "", "stdout": "└─ foo@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' at exports.constraints (/path/to/yarn.config.cjs:3:46) - └─ '2.0.0' at exports.constraints (/path/to/yarn.config.cjs:4:46) + ├─ "1.0.0" at exports.constraints (/path/to/yarn.config.cjs:3:46) + └─ "2.0.0" at exports.constraints (/path/to/yarn.config.cjs:4:46) ", } `; @@ -1908,8 +1908,8 @@ exports[`Commands constraints test (various field types / gen_enforced_field (am "stderr": "", "stdout": "└─ foo@workspace:. └─ Conflict detected in constraint targeting dependencies["a-new-dep"]; conflicting values are: - ├─ '1.0.0' - └─ '2.0.0' + ├─ "1.0.0" + └─ "2.0.0" ", } `; @@ -1937,7 +1937,7 @@ exports[`Commands constraints test (various field types / gen_enforced_field (in "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1949,7 +1949,7 @@ exports[`Commands constraints test (various field types / gen_enforced_field (in "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["no-deps"]; expected '2.0.0' + └─ ⚙ Missing field dependencies["no-deps"]; expected "2.0.0" ", } `; @@ -1961,7 +1961,7 @@ exports[`Commands constraints test (various field types / gen_enforced_field (mi "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["a-new-deps"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-deps"]; expected "1.0.0" ", } `; @@ -1973,7 +1973,7 @@ exports[`Commands constraints test (various field types / gen_enforced_field (mi "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field dependencies["a-new-dep"]; expected '1.0.0' + └─ ⚙ Missing field dependencies["a-new-dep"]; expected "1.0.0" ", } `; @@ -1985,7 +1985,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ arr "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _files; expected [ '/a', '/b', '/c' ] + └─ ⚙ Missing field _files; expected [ "/a", "/b", "/c" ] ", } `; @@ -1997,7 +1997,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ arr "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _files; expected [ '/a', '/b', '/c' ] + └─ ⚙ Missing field _files; expected [ "/a", "/b", "/c" ] ", } `; @@ -2009,7 +2009,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ obj "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _repository; expected { type: 'git', url: 'ssh://git@github.com/yarnpkg/berry.git', directory: '.' } + └─ ⚙ Missing field _repository; expected { "type": "git", "url": "ssh://git@github.com/yarnpkg/berry.git", "directory": "." } ", } `; @@ -2021,7 +2021,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ obj "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _repository; expected { type: 'git', url: 'ssh://git@github.com/yarnpkg/berry.git', directory: '.' } + └─ ⚙ Missing field _repository; expected { "type": "git", "url": "ssh://git@github.com/yarnpkg/berry.git", "directory": "." } ", } `; @@ -2033,7 +2033,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ str "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _name; expected 'foo' + └─ ⚙ Missing field _name; expected "foo" ", } `; @@ -2045,7 +2045,7 @@ exports[`Commands constraints test (various field types / workspace_field w/ str "stdout": "➤ Those errors can all be fixed by running yarn constraints --fix └─ foo@workspace:. - └─ ⚙ Missing field _name; expected 'foo' + └─ ⚙ Missing field _name; expected "foo" ", } `; diff --git a/packages/acceptance-tests/pkg-tests-specs/sources/commands/constraints.test.ts b/packages/acceptance-tests/pkg-tests-specs/sources/commands/constraints.test.ts index 70438674d170..e615451679dd 100644 --- a/packages/acceptance-tests/pkg-tests-specs/sources/commands/constraints.test.ts +++ b/packages/acceptance-tests/pkg-tests-specs/sources/commands/constraints.test.ts @@ -154,7 +154,7 @@ describe(`Commands`, () => { }; `); - await expect(run(`constraints`)).rejects.toThrow(`Invalid field foo; expected { a: true, b: true }, found { b: true, a: true }`); + await expect(run(`constraints`)).rejects.toThrow(`Invalid field foo; expected { "a": true, "b": true }, found { "b": true, "a": true }`); })); for (const [environmentDescription, environment] of Object.entries(environments)) { diff --git a/packages/yarnpkg-core/sources/formatUtils.ts b/packages/yarnpkg-core/sources/formatUtils.ts index f5132c6c37d2..54d5ec711290 100644 --- a/packages/yarnpkg-core/sources/formatUtils.ts +++ b/packages/yarnpkg-core/sources/formatUtils.ts @@ -4,7 +4,6 @@ import CI from import {ColorFormat, formatMarkdownish} from 'clipanion'; import micromatch from 'micromatch'; import stripAnsi from 'strip-ansi'; -import {inspect} from 'util'; import {Configuration, ConfigurationValueMap} from './Configuration'; import {MessageName, stringifyMessageName} from './MessageName'; @@ -34,6 +33,8 @@ export const Type = { REFERENCE: `REFERENCE`, NUMBER: `NUMBER`, + STRING: `STRING`, + BOOLEAN: `BOOLEAN`, PATH: `PATH`, URL: `URL`, ADDED: `ADDED`, @@ -85,6 +86,8 @@ const colors = new Map([ [Type.REFERENCE, [`#87afff`, 111]], [Type.NUMBER, [`#ffd700`, 220]], + [Type.STRING, [`#b4bd68`, 32]], + [Type.BOOLEAN, [`#faa023`, 209]], [Type.PATH, [`#d75fd7`, 170]], [Type.URL, [`#d75fd7`, 170]], [Type.ADDED, [`#5faf00`, 70]], @@ -122,6 +125,42 @@ function sizeToText(size: number) { return `${value} ${thresholds[power - 1]}`; } +function prettyObject(configuration: Configuration, value: any): string { + if (Array.isArray(value)) { + if (value.length === 0) { + return applyColor(configuration, `[]`, Type.CODE); + } else { + return applyColor(configuration, `[ `, Type.CODE) + value.map(item => prettyObject(configuration, item)).join(`, `) + applyColor(configuration, ` ]`, Type.CODE); + } + } + + if (typeof value === `string`) + return applyColor(configuration, JSON.stringify(value), Type.STRING); + + if (typeof value === `number`) + return applyColor(configuration, JSON.stringify(value), Type.NUMBER); + + if (typeof value === `boolean`) + return applyColor(configuration, JSON.stringify(value), Type.BOOLEAN); + + if (value === null) + return applyColor(configuration, `null`, Type.NULL); + + if (typeof value === `object` && Object.getPrototypeOf(value) === Object.prototype) { + const entries = Object.entries(value); + if (entries.length === 0) { + return applyColor(configuration, `{}`, Type.CODE); + } else { + return applyColor(configuration, `{ `, Type.CODE) + entries.map(([key, value]) => `${prettyObject(configuration, key)}: ${prettyObject(configuration, value)}`).join(`, `) + applyColor(configuration, ` }`, Type.CODE); + } + } + + if (typeof value === `undefined`) + return applyColor(configuration, `undefined`, Type.NULL); + + throw new Error(`Assertion failed: The value doesn't seem to be a valid JSON object`); +} + const transforms = { [Type.ID]: validateTransform({ pretty: (configuration: Configuration, value: number | string) => { @@ -138,7 +177,7 @@ const transforms = { [Type.INSPECT]: validateTransform({ pretty: (configuration: Configuration, value: any) => { - return inspect(value, {depth: Infinity, colors: configuration.get(`enableColors`), compact: true, breakLength: Infinity}); + return prettyObject(configuration, value); }, json: (value: any) => { return value;