Skip to content

Is it possible to bundle a single workspace of a monorepo? #99

Answered by ojkelly
carlgieringer asked this question in Q&A
Discussion options

You must be logged in to vote

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 the package.json#main script, while loading pnp.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…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ojkelly

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@ojkelly
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #82 on August 21, 2021 13:00.