]> git.ardis.lu - cloudflare-workers/commitdiff
Add note on wrangler installation limitations
authorArdis Lu <ardisglu@gmail.com>
Fri, 16 Jul 2021 06:03:30 +0000 (23:03 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 16 Jul 2021 06:03:30 +0000 (23:03 -0700)
README.md

index 9ae7536a56651d378147bdcc80f1418bc4427ea0..fc71ea3495f4cd0cf345d74861afa9658d6f8cb2 100644 (file)
--- 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
This page took 0.03225 seconds and 4 git commands to generate.