Open aaweb opened 1 year ago
Hi, I'm not familiar with pnpm. You can try to fork the package and remove https://github.com/c-frame/aframe-physics-system/blob/04d7af4a2a8e900c0d0abbc42ce2ddc0119de2ff/package.json#L18 you can also remove the dependency https://github.com/c-frame/aframe-physics-system/blob/04d7af4a2a8e900c0d0abbc42ce2ddc0119de2ff/package.json#L49 but not mandatory.
Then apply the two patches from
https://github.com/c-frame/aframe-physics-system/tree/master/patches
From https://pnpm.io/cli/patch it seems you can the patchedDependencies
field.
Then use your fork in your package.json with
"@c-frame/aframe-physics-system": "username/aframe-physics-system#commithash"
Let us know what work.
Hi, it was actually easier than this for us. Since we don't use the ammo package, we simply used pnpm patch
to patch out the patch-package
dependency and postinstall step from your package, and that seems to work fine!
Now we are at three-to-ammo 1.0.1, I believe we can move to ammo-debug-drawer 1.0.1 as well, and we won't need any patches any more.
Hey there
Great project! I'm trying to get the latest version running on our project building on GitHub Actions CI which uses
pnpm
.Reading the docs at https://www.npmjs.com/package/patch-package it seems like the patch-package would not be needed if using
pnpm
. Is this something this package can support or do you have any advice on how to best get it running?Thank you very much.