From: Ardis Lu Date: Fri, 16 Jul 2021 06:03:30 +0000 (-0700) Subject: Add note on wrangler installation limitations X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8e8c22e9623ff1e653c84ccab5f7dbf471c56dca;p=cloudflare-workers Add note on wrangler installation limitations --- diff --git a/README.md b/README.md index 9ae7536..fc71ea3 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,10 @@ Or publish an individual Worker: npm run publish --workspace=[Cloudflare Worker name] ``` +# Limitations + +There are [some permission issues](https://github.com/cloudflare/wrangler/issues/240) when installing `wrangler` as a dependency in an npm workspace. As a workaround, I've made `wrangler` a dependency in the top-level `package.json` for the overall monorepo, and omitted `wrangler` from the dependencies for each workspace. That means that **the npm scripts in each workspace depend on `wrangler` being installed outside of the workspace**. So if you wanted to pull a workspace out of the monorepo and run the workspace on its own, you must re-add `wrangler` to the workspace dependencies first. + # Workers ## proxy