Closed corey-aloia closed 2 months ago
Sorry for the delay @corey-aloia
I could not reproduce this problem and workspaces are working in general. There are some integration tests for this (e.g. here)
Given your input
"workspaces": [
"app/*"
],
You have a folder called app
with some subdirectories in it with are the workspaces, right? Does each of them has a package.json
like described here?
Any change you still have code and can give us the structure (e.g. calling the tree
command)?
Since there has been no response from the original poster after the response from @c0d1ngm0nk3y, and @c0d1ngm0nk3y seems not to be able to reproduce I'm going to go ahead and close.
Please let us know if that was not the right thing to do.
Expected Behavior
Paketo does not seem to work with node workspaces. If I remove the workspace from my package.json, then it builds successfully.
This looks very similar to this closed ticket here: https://github.com/paketo-buildpacks/npm-install/issues/498
I wasted a silly amount of time on this. I thought I had done something wrong, as I knew it had worked before. I ended up creating a whole new app, and by trial and error, found that be removing "workspaces" it will work.
The reason I assumed it was my fault, is because SAP has this buildpack in their official instructions. And setting up these workspaces is also done by default via the tools used. So really surprising that it just doesn't work.
For reference, I set up a new demo app, and build via: