sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.
https://cowasm.org
BSD 3-Clause "New" or "Revised" License
482 stars 23 forks source link

switch to pnpm #51

Closed williamstein closed 1 year ago

williamstein commented 1 year ago

This is https://github.com/sagemathinc/cowasm/pull/50

The main significant remaining issues is that we need to automate building the dependencies, since sibling packages are now installed directly, rather than from npm. This happens automatically and is awesome! It does mean some additional work. Maybe a script that just automates building deps, as determined by parsing what is installed.

Also, we'll need to update the docs, and make sure pnpm is installed. We might instead use pnpm env to have pnpm install node instead. Hmmm...

This problem of building the deps in a workspace also comes up in CoCalc and isn't totally solved there either. For that it's maybe a lot harder due to circular deps? In any case, I wonder if there is a common solution.