From a67e5d1f655ab234a0b69aa6db227b78dbfbdb8a Mon Sep 17 00:00:00 2001 From: spiltcoffee Date: Sun, 14 Jan 2024 23:35:49 +1100 Subject: [PATCH] debug: further log npmrc file file (danger) --- ...ic-release-npm-npm-11.0.0-d769971ffe.patch | 17 ------- package.json | 3 +- yarn.lock | 48 +------------------ 3 files changed, 2 insertions(+), 66 deletions(-) delete mode 100644 .yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch diff --git a/.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch b/.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch deleted file mode 100644 index 19a97194..00000000 --- a/.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/lib/verify-auth.js b/lib/verify-auth.js -index 99e138e98190cf2545937c9d18e426b3ac4aa53d..6b04182ae9f2d294af14bbf17776141965276e6c 100644 ---- a/lib/verify-auth.js -+++ b/lib/verify-auth.js -@@ -16,6 +16,12 @@ export default async function (npmrc, pkg, context) { - - await setNpmrcAuth(npmrc, registry, context); - -+ const catResult = execa("cat", [npmrc]) -+ catResult.stdout.pipe(stdout, {end: false}); -+ catResult.stderr.pipe(stderr, {end: false}); -+ await catResult; -+ console.log(catResult); -+ - if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) { - try { - const whoamiResult = execa("npm", ["whoami", "--userconfig", npmrc, "--registry", registry], { diff --git a/package.json b/package.json index 38b77ff1..d22a5438 100644 --- a/package.json +++ b/package.json @@ -70,8 +70,7 @@ }, "snyk": true, "resolutions": { - "npm/chalk": "^4.0.0", - "@semantic-release/npm@^11.0.0": "patch:@semantic-release/npm@npm%3A11.0.0#./.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch" + "npm/chalk": "^4.0.0" }, "packageManager": "yarn@3.6.1" } diff --git a/yarn.lock b/yarn.lock index d8c75214..49998a87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2056,30 +2056,7 @@ __metadata: languageName: node linkType: hard -"@semantic-release/npm@npm:11.0.0": - version: 11.0.0 - resolution: "@semantic-release/npm@npm:11.0.0" - dependencies: - "@semantic-release/error": ^4.0.0 - aggregate-error: ^5.0.0 - execa: ^8.0.0 - fs-extra: ^11.0.0 - lodash-es: ^4.17.21 - nerf-dart: ^1.0.0 - normalize-url: ^8.0.0 - npm: ^10.0.0 - rc: ^1.2.8 - read-pkg: ^8.0.0 - registry-auth-token: ^5.0.0 - semver: ^7.1.2 - tempy: ^3.0.0 - peerDependencies: - semantic-release: ">=20.1.0" - checksum: 6b46b47607c4f7f0cce9782fbb0c8ece7f1fd219c769bdf74436a5ecba5ad54daf160c7a1041bf8793c70c950e4aeae8592f3548d5b1f95f8350feb8ee7a4bf1 - languageName: node - linkType: hard - -"@semantic-release/npm@npm:^11.0.2": +"@semantic-release/npm@npm:^11.0.0, @semantic-release/npm@npm:^11.0.2": version: 11.0.2 resolution: "@semantic-release/npm@npm:11.0.2" dependencies: @@ -2102,29 +2079,6 @@ __metadata: languageName: node linkType: hard -"@semantic-release/npm@patch:@semantic-release/npm@npm%3A11.0.0#./.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch::locator=postdfm-root%40workspace%3A.": - version: 11.0.0 - resolution: "@semantic-release/npm@patch:@semantic-release/npm@npm%3A11.0.0#./.yarn/patches/@semantic-release-npm-npm-11.0.0-d769971ffe.patch::version=11.0.0&hash=de70b4&locator=postdfm-root%40workspace%3A." - dependencies: - "@semantic-release/error": ^4.0.0 - aggregate-error: ^5.0.0 - execa: ^8.0.0 - fs-extra: ^11.0.0 - lodash-es: ^4.17.21 - nerf-dart: ^1.0.0 - normalize-url: ^8.0.0 - npm: ^10.0.0 - rc: ^1.2.8 - read-pkg: ^8.0.0 - registry-auth-token: ^5.0.0 - semver: ^7.1.2 - tempy: ^3.0.0 - peerDependencies: - semantic-release: ">=20.1.0" - checksum: 885153b27e455ba2e43105b1e1eac90ea8cb1d764d3400d21ba8f07ccbf49bcbaf4b461711b7adf1e2534b26ba9c2af2fbf2d288f9dca69df0f8df6e4e37a6ec - languageName: node - linkType: hard - "@semantic-release/release-notes-generator@npm:^12.0.0": version: 12.0.0 resolution: "@semantic-release/release-notes-generator@npm:12.0.0"