Hello, I am seeking to install wrangler using nixos and it requires the dependency chain to be resolvable. My issue is that while I can find @cloudflare/cli inside the workers-sdk it is not very easy to resolve it from my update script. Is it possible to publish the cli lib? I realize its probably not needed to be directly used very often, but it would make certain update chains easier. Essentially, after npm install, the package-lock.json is used to determine all packages required and they typically need to be resolvable by npm.
[user@nixos:~/nixpkgs/pkgs/by-name/wr/wrangler]$ UPDATE_NIX_OLD_VERSION=0 ./update.sh
~/nixpkgs/pkgs/by-name/wr/wrangler ~/nixpkgs/pkgs/by-name/wr/wrangler
warning: unknown experimental feature 'git-hashing'
warning: unknown experimental feature 'verified-fetches'
path is '/nix/store/ywm98wgal1d3z1qjdm0f41wkmin29x98-wrangler-3.62.0.tgz'
warning: unknown experimental feature 'git-hashing'
warning: unknown experimental feature 'verified-fetches'
--2024-07-01 02:26:50-- https://registry.npmjs.org/wrangler/-/wrangler-3.62.0.tgz
Resolving registry.npmjs.org (registry.npmjs.org)... 104.16.0.35, 104.16.25.34, 104.16.30.34, ...
Connecting to registry.npmjs.org (registry.npmjs.org)|104.16.0.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4993944 (4.8M) [application/octet-stream]
Saving to: āwrangler-3.62.0.tgzā
wrangler-3.62. 100% 4.76M 2.27MB/s in 2.1s
2024-07-01 02:26:52 (2.27 MB/s) - āwrangler-3.62.0.tgzā saved [4993944/4993944]
npm WARN tarball tarball data for yoga-layout@file:../../vendor/yoga-layout-2.0.0-beta.1.tgz (null) seems to be corrupted. Trying again.
npm WARN tarball tarball data for yoga-layout@file:../../vendor/yoga-layout-2.0.0-beta.1.tgz (null) seems to be corrupted. Trying again.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@cloudflare%2fcli - Not found
npm ERR! 404
npm ERR! 404 '@cloudflare/cli@1.1.1' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-07-01T07_26_53_121Z-debug-0.log
Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.62.0
What version of Node are you using?
18
What operating system and version are you using?
nixos
Describe the Bug
Observed behavior
Hello, I am seeking to install wrangler using nixos and it requires the dependency chain to be resolvable. My issue is that while I can find @cloudflare/cli inside the workers-sdk it is not very easy to resolve it from my update script. Is it possible to publish the cli lib? I realize its probably not needed to be directly used very often, but it would make certain update chains easier. Essentially, after npm install, the package-lock.json is used to determine all packages required and they typically need to be resolvable by npm.
Expected behavior
I can resolve the cloudflare dependencies.
Steps to reproduce
Run the following from
pkgs/by-name/wr/wrangler
Please provide a link to a minimal reproduction
https://github.com/dezren39/nixpkgs/blob/patch-2_1/pkgs/by-name/wr/wrangler/update.sh
Please provide any relevant error logs