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.
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
I have the same problem. I run
|
Beta Was this translation helpful? Give feedback.
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.js
which points to thepackage.json#main
script, while loadingpnp.js
. Which primarily makes was lambda and containers work.Provided the dir you want to bundle has a
package.json
inside 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…