From 2231b9ca19e860a613665820ac46563c064100da Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 17 Nov 2023 01:44:07 +0100 Subject: [PATCH] [yarn] Update .yarnrc.yml in focus-production --- .pnp.cjs | 13 +++++++++++-- .../cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip | 3 +++ package.json | 3 ++- scripts/focus-production.js | 11 +++++++++++ yarn.lock | 8 ++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .yarn/cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip diff --git a/.pnp.cjs b/.pnp.cjs index 4f1759bb3..e2c2809c1 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -67,7 +67,8 @@ const RAW_RUNTIME_STATE = ["js-yaml", "npm:4.1.0"],\ ["seedrandom", "npm:3.0.5"],\ ["start-server-and-test", "npm:1.15.2"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["yaml", "npm:2.3.4"]\ ],\ "linkType": "SOFT"\ }]\ @@ -14016,7 +14017,8 @@ const RAW_RUNTIME_STATE = ["js-yaml", "npm:4.1.0"],\ ["seedrandom", "npm:3.0.5"],\ ["start-server-and-test", "npm:1.15.2"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["yaml", "npm:2.3.4"]\ ],\ "linkType": "SOFT"\ }]\ @@ -25749,6 +25751,13 @@ const RAW_RUNTIME_STATE = ["yaml", "npm:2.3.1"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:2.3.4", {\ + "packageLocation": "./.yarn/cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip/node_modules/yaml/",\ + "packageDependencies": [\ + ["yaml", "npm:2.3.4"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["yaml-ast-parser", [\ diff --git a/.yarn/cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip b/.yarn/cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip new file mode 100644 index 000000000..ed74c500b --- /dev/null +++ b/.yarn/cache/yaml-npm-2.3.4-8bb6dc2c0d-f8207ce430.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f0af637adaf80f15d8f9c13e1e4f69455ca2911da921750c392bf5967a5ec2c +size 238590 diff --git a/package.json b/package.json index 61e6ab252..03d1a99db 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,8 @@ "gulp-terser": "2.1.0", "install-peers": "^1.0.4", "start-server-and-test": "1.15.2", - "typescript": "5.1.6" + "typescript": "5.1.6", + "yaml": "^2.3.4" }, "packageManager": "yarn@4.0.2", "dependenciesMeta": { diff --git a/scripts/focus-production.js b/scripts/focus-production.js index a556d489e..9c96caf22 100644 --- a/scripts/focus-production.js +++ b/scripts/focus-production.js @@ -2,6 +2,7 @@ const { globSync } = require('glob'); const { join } = require("node:path"); const fs = require("node:fs"); const exec = require("execa"); +const YAML = require('yaml') const files = globSync('**/package.json'); @@ -11,6 +12,16 @@ for (const file of files) { fs.writeFileSync(file, JSON.stringify(json, null, '\t')); } +const file = join('./', '.yarnrc.yml'); +const yarnrc = YAML.parse(fs.readFileSync(file, 'utf8')); +yarnrc['supportedArchitectures'] = { + cpu: ['current'], + libc: ['current'], + os: ['current'], +}; +fs.writeFileSync(file, YAML.stringify(yarnrc)); + + exec("yarn", ["install"], { stdout: process.stdout, stderr: process.stderr, diff --git a/yarn.lock b/yarn.lock index 6367f7fac..961c725f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11316,6 +11316,7 @@ __metadata: seedrandom: "npm:^3.0.5" start-server-and-test: "npm:1.15.2" typescript: "npm:5.1.6" + yaml: "npm:^2.3.4" dependenciesMeta: "@discordapp/twemoji@14.1.2": unplugged: true @@ -21690,6 +21691,13 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^2.3.4": + version: 2.3.4 + resolution: "yaml@npm:2.3.4" + checksum: f8207ce43065a22268a2806ea6a0fa3974c6fde92b4b2fa0082357e487bc333e85dc518910007e7ac001b532c7c84bd3eccb6c7757e94182b564028b0008f44b + languageName: node + linkType: hard + "yargs-parser@npm:20.2.4": version: 20.2.4 resolution: "yargs-parser@npm:20.2.4"