-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support monorepo with NPM Workspaces #598
Comments
Hi @marlun78 We've been working on the following PR for a while now to try and address issues with the Fastly CLI build process: Once this is merged (and released) I'll ping back in this ticket so you can upgrade and see if the changes work better for your situation. If not, then we can continue the discussion. Thanks. |
Hi @marlun78 Apologies, I just realised I said I would report back once #640 had been merged. Since that PR was merged I was discussing some similar issues internally with a colleague and so #671 is currently in the works which I think might actually resolve this issue. Just an FYI that this issue will be closed automatically once that PR is merged. |
Closing due to #765 (this issue would have been automatically closed but I had to create a new PR and I neglected to include a reference to this issue). |
@Integralist could you clarify how to use #765? Unfortunately hitting the same issue, also in an NPM workspace. |
Hi @domdomegg I'm sorry to hear you are having issues. Since this issue was closed the CLI has undergone some fundamental changes that have resulted in us stripping out a bunch of 'user environment' validation logic (see this PR recently merged). I haven't got these changes out into a new release yet (they'll be part of a 6.0.0 release of the CLI) but I believe that PR will help provide much greater flexibility to users in general. |
Ah, thanks for the update! I'll wait for 6.0.0 in that case. For now I've just disabled the verification for now, with:
|
Is your feature request related to a problem? Please describe.
Currently, it is not possible to run
fastly compute serve
inside a monorepo with NPM Workspaces as demonstrated by this sample repo. A@fastly/js-compute not found in package.json
error is thrown.I guess the issue is that when in a monorepo, the
node_modules
is on the root level and the relevant script runs in the context of a child-package (where also the relevantpackage.json
is).Describe the solution you'd like
I don't know the reason it's build as it is today, but I've never before come across another NPM package that inspects the package.json file to make sure dependencies are added. It seems to me to miss the target. The relevant question is rather if the dependency is installed or not and the best way to find out is by using it, right?
Additional context
NPM Workspaces
Related to package @fastly/js-compute
Related to issue #359
The text was updated successfully, but these errors were encountered: