Skip to content

Commit 9167f63

Browse files
authored
downgraded prettier to 2.x and removed YARN_IGNORE_PATH gate (#1577)
1 parent a51de56 commit 9167f63

3 files changed

Lines changed: 3 additions & 22 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"husky": "^8.0.3",
2727
"lint-staged": "^13.2.0",
2828
"nx": "16.3.2",
29-
"prettier": "^3.0.0"
29+
"prettier": "^2.0.0"
3030
},
3131
"prettier": "@veupathdb/prettier-config",
3232
"browserslist": [

tools/scripts/check-package-manager.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,8 @@ const isCI = process.env.CI === 'true' || process.env.CI === '1';
2727

2828
if (!isCI) {
2929
// Check for required development environment variables
30-
const ignorePathSet = process.env.YARN_IGNORE_PATH === 'true' || process.env.YARN_IGNORE_PATH === '1';
3130
const ageGateValue = parseInt(process.env.YARN_NPM_MINIMAL_AGE_GATE || '0', 10);
3231

33-
if (!ignorePathSet) {
34-
console.error('\x1b[31m%s\x1b[0m', '❌ Error: YARN_IGNORE_PATH is not set to true');
35-
console.error('\x1b[33m%s\x1b[0m', '\nYou are likely using the bundled Yarn 3.3.1 instead of Yarn 4.12.0 via corepack.');
36-
console.error('\x1b[2m%s\x1b[0m', 'Add to your shell profile (~/.bashrc, ~/.zshrc, etc.):');
37-
console.error('\x1b[2m%s\x1b[0m', ' export YARN_IGNORE_PATH=true');
38-
console.error('\x1b[2m%s\x1b[0m', '\nSee README.adoc "Required Environment Variables for Development" section.');
39-
process.exit(1);
40-
}
41-
4232
if (ageGateValue === 0) {
4333
console.warn('\x1b[33m%s\x1b[0m', '⚠️ Warning: YARN_NPM_MINIMAL_AGE_GATE is not set');
4434
console.warn('\x1b[2m%s\x1b[0m', 'For supply chain security, add to your shell profile:');

yarn.lock

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27305,7 +27305,7 @@ __metadata:
2730527305
husky: "npm:^8.0.3"
2730627306
lint-staged: "npm:^13.2.0"
2730727307
nx: "npm:16.3.2"
27308-
prettier: "npm:^3.0.0"
27308+
prettier: "npm:^2.0.0"
2730927309
webpack: "npm:^5.84.1"
2731027310
webpack-cli: "npm:^6.0.1"
2731127311
languageName: unknown
@@ -31113,7 +31113,7 @@ __metadata:
3111331113
languageName: node
3111431114
linkType: hard
3111531115

31116-
"prettier@npm:^2.8.7":
31116+
"prettier@npm:^2.0.0, prettier@npm:^2.8.7":
3111731117
version: 2.8.8
3111831118
resolution: "prettier@npm:2.8.8"
3111931119
bin:
@@ -31122,15 +31122,6 @@ __metadata:
3112231122
languageName: node
3112331123
linkType: hard
3112431124

31125-
"prettier@npm:^3.0.0":
31126-
version: 3.7.1
31127-
resolution: "prettier@npm:3.7.1"
31128-
bin:
31129-
prettier: bin/prettier.cjs
31130-
checksum: 10/59fa89769246d395de30dec976e0ad31c8d2fe3889733765d89398c95c2b9d6cd341553a850fe14fe187407c9bfb2262a2ab1823c6de1f0205a968e2012f0f11
31131-
languageName: node
31132-
linkType: hard
31133-
3113431125
"pretty-bytes@npm:^5.1.0, pretty-bytes@npm:^5.3.0, pretty-bytes@npm:^5.4.1":
3113531126
version: 5.6.0
3113631127
resolution: "pretty-bytes@npm:5.6.0"

0 commit comments

Comments
 (0)