Is it possible to bundle a single workspace of a monorepo? #99
|
Hi, does it work to bundle just one workspace of a monorepo? I have a monorepo with multiple applications. An API server, a client, a browser extension. I would like to cd into the When I try that now, I got a strange error relating to one of the other sub-folders. |
Replies: 3 comments 1 reply
|
Ah, not yet. But it should be possible. Yeah I would have thought it would have ignored that folder too, I have similar code like that. Bundle is designed to take the target package, and it's dependencies (including local dependencies) and zip them all up. It then drops Provided the dir you want to bundle has a Part of how it does this is by copying the repo to a temporary folder and deleting everything thats not required. Possibly something is calling your terraform code from the bundle? You could mark up |
This comment has been hidden.
This comment has been hidden.
|
I have the same problem. I run |
Ah, not yet. But it should be possible.
Yeah I would have thought it would have ignored that folder too, I have similar code like that.
Bundle is designed to take the target package, and it's dependencies (including local dependencies) and zip them all up. It then drops
entrypoint.jswhich points to thepackage.json#mainscript, while loadingpnp.js. Which primarily makes was lambda and containers work.Provided the dir you want to bundle has a
package.jsoninside it, and describes its dependencies it should work. Thats definitely the intent, so there might be a bug here.Part of how it does this is by copying the repo to a temporary folder and deleting everything thats not required. Poss…