From 438b2a13dc398652306e8e21c5dc2635d9c65e9a Mon Sep 17 00:00:00 2001 From: Kyrylo Kudriaiev Date: Fri, 13 Dec 2024 11:33:30 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Add=20'undici'=20package?= =?UTF-8?q?=20to=20support=20'yarn'=20(#73)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Why? When `@fleek-platform/cli` is installed globally using Yarn, the fleek sites deploy command fails with the error message: ``` ❌ Error: Upload failed. ``` ## How? - Added `undici` package to fix the issue ## Tickets? - [PLAT-1900](https://linear.app/fleekxyz/issue/PLAT-1900/yarn-global-installation-of-fleek-platformcli-fails-site-deployment) ## Contribution checklist? - [x] The commit messages are detailed - [x] The `build` command runs locally - [ ] Assets or static content are linked and stored in the project - [x] You have manually tested - [ ] You have provided tests ## Security checklist? - [ ] Sensitive data has been identified and is being protected properly - [ ] Injection has been prevented (parameterized queries, no eval or system calls) --- .changeset/pink-gifts-perform.md | 5 +++++ package.json | 1 + pnpm-lock.yaml | 13 +++++++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .changeset/pink-gifts-perform.md diff --git a/.changeset/pink-gifts-perform.md b/.changeset/pink-gifts-perform.md new file mode 100644 index 0000000..406f266 --- /dev/null +++ b/.changeset/pink-gifts-perform.md @@ -0,0 +1,5 @@ +--- +"@fleek-platform/cli": patch +--- + +Add "undici" package to support "yarn" diff --git a/package.json b/package.json index 316d597..699049c 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "prompts": "^2.4.2", "semver": "^7.3.8", "ts-node": "10.9.1", + "undici": "^7.1.0", "unique-names-generator": "^4.7.1", "update-notifier-cjs": "^5.1.6" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5ce19e..aec50bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -55,6 +55,7 @@ specifiers: semver: ^7.3.8 ts-node: 10.9.1 typescript: 4.9.3 + undici: ^7.1.0 unique-names-generator: ^4.7.1 update-notifier-cjs: ^5.1.6 vitest: 1.3.1 @@ -83,12 +84,13 @@ dependencies: lodash-es: 4.17.21 multiformats: 9.9.0 nanoid: 3.3.7 - native-fetch: 4.0.2 + native-fetch: 4.0.2_undici@7.1.0 ora: 3.4.0 press-any-key: 0.1.1 prompts: 2.4.2 semver: 7.6.3 ts-node: 10.9.1_typescript@4.9.3 + undici: 7.1.0 unique-names-generator: 4.7.1 update-notifier-cjs: 5.1.6 @@ -5173,10 +5175,12 @@ packages: resolution: {integrity: sha512-E7QQoM+3jvNtlmyfqRZ0/U75VFgCls+fSkbml2MpgWkWyz3ox8Y58gNhfuziuQYGNNQAbFZJQck55LHCnCK6CA==} dev: true - /native-fetch/4.0.2: + /native-fetch/4.0.2_undici@7.1.0: resolution: {integrity: sha512-4QcVlKFtv2EYVS5MBgsGX5+NWKtbDbIECdUXDBGDMAZXq3Jkv9zf+y8iS7Ub8fEdga3GpYeazp9gauNqXHJOCg==} peerDependencies: undici: '*' + dependencies: + undici: 7.1.0 dev: false /negotiator/0.6.3: @@ -6479,6 +6483,11 @@ packages: resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} dev: true + /undici/7.1.0: + resolution: {integrity: sha512-3+mdX2R31khuLCm2mKExSlMdJsfol7bJkIMH80tdXA74W34rT1jKemUTlYR7WY3TqsV4wfOgpatWmmB2Jl1+5g==} + engines: {node: '>=20.18.1'} + dev: false + /unique-names-generator/4.7.1: resolution: {integrity: sha512-lMx9dX+KRmG8sq6gulYYpKWZc9RlGsgBR6aoO8Qsm3qvkSJ+3rAymr+TnV8EDMrIrwuFJ4kruzMWM/OpYzPoow==} engines: {node: '>=8'}