wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Support different package managers

Open sodic opened this issue 1 year ago • 1 comments

Idea: let the user choose their package manager (yarn, npm, or pnpm).

Alternatively, make the choice for them. If we go down this route, let's explore pnpm. It's supposed to be much faster (and perhaps we'll have an easier time parsing and forwarding its output).

sodic avatar Aug 31 '24 17:08 sodic

Related https://github.com/wasp-lang/wasp/issues/1445

infomiho avatar Sep 02 '24 12:09 infomiho

Bump, would love to use Bun, would make development speed significantly faster.

CC @Jarred-Sumner

Octember avatar Jan 14 '25 22:01 Octember

I'd love for this to be implemented. I've integrated my Wasp app into a monorepo using Turbo and pnpm, but I still have to use npm for Wasp 😞

Genyus avatar Feb 21 '25 15:02 Genyus

@Genyus @Octember Thanks for voicing your opinion!

We'll see if we can prioritize it :)

sodic avatar Feb 26 '25 09:02 sodic

Pnpm! Having the ability to choose would be nice.

ayoolaore avatar Apr 06 '25 03:04 ayoolaore

We should look into ni tool by antfu.

Martinsos avatar Apr 14 '25 16:04 Martinsos

Just a note: IIRC, yarn will complain about having packages inside packages (the .wasp/build/x packages inside the user's wider package) and will request for them to be added as package.json#workspaces, which might have ramifications for our dependency handling, as everything will start sharing dependencies (which it wasn't previously).

cprecioso avatar May 02 '25 14:05 cprecioso

Just a note: IIRC, yarn will complain about having packages inside packages (the .wasp/build/x packages inside the user's wider package) and will request for them to be added as package.json#workspaces, which might have ramifications for our dependency handling, as everything will start sharing dependencies (which it wasn't previously).

Ok good to know! We do also plan to look into npm workspaces, so maybe once we do that, yarn won't have anything to complain about.

Martinsos avatar May 02 '25 14:05 Martinsos

as everything will start sharing dependencies (which it wasn't previously).

FYI, we already share a lot (if not most) of the dependencies already (e.g., web-app and server fall back to user's node_modules for some things.

But like Martin said, we need to take care of this first: #1653

sodic avatar May 03 '25 10:05 sodic

@sodic is that something for pre-v1? or post-v1?

cprecioso avatar May 05 '25 09:05 cprecioso

That's a good question. I consider that very high in priority because most of our project structure discussions reach a point where we say "we might get that with NPM workspaces, or not, we don't know." And then we can't discuss any ideas beyond that 😄

I consider it a blocker for a lot of stuff we want to explore, but let's see what @Martinsos thinks.

sodic avatar May 05 '25 10:05 sodic

That's a good question. I consider that very high in priority because most of our project structure discussions reach a point where we say "we might get that with NPM workspaces, or not, we don't know." And then we can't discuss any ideas beyond that 😄

I consider it a blocker for a lot of stuff we want to explore, but let's see what @Martinsos thinks.

npm workspaces is certainly pre-1.0, it will be part of improving the project structure. We will define soon at which point we are doing this.

Martinsos avatar May 05 '25 14:05 Martinsos