🚀 Migrate Project Creation from npm to pnpm for Faster Installs#97
Merged
🚀 Migrate Project Creation from npm to pnpm for Faster Installs#97
Conversation
triprjt
reviewed
Mar 5, 2025
Contributor
triprjt
left a comment
There was a problem hiding this comment.
We are using npm at:
- /src/commands/plugin/index.ts ->
install plugins - src/index.ts ->
spawnSync("npm", ["run", "gen-crud-api"]|prisma prepare|spawnSync("npm", ["run", "serve"],
Please make changes here
Collaborator
Author
|
Can you make those changes in cli (npm to pnpm) because I am in the middle of ts-context-loading. It will take more time to complete. |
Collaborator
Author
|
@triprjt mostly i updated pnpm i the all places where we are using npm. check this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Migrate Project Creation from npm to pnpm for Faster Installs
🔹 Summary
This PR replaces npm with pnpm in the Godspeed project creation flow to significantly improve dependency installation speed and efficiency.
🔹 Key Changes
• Replaced npm install with pnpm install for better performance.
• Auto-installs pnpm if missing, ensuring a smooth setup for all users.
• Improved installation speed:
• 🚀 2× faster cold installs
• ⚡ 3-4× faster cached installs
• 📂 Saves 60-80% disk space
🔹 Why This Change?
pnpm installs dependencies faster and more efficiently by using a global store and linking dependencies, reducing redundant downloads.
✅ Testing
• Verified successful project creation with pnpm installation.
• Tested behavior when pnpm is missing (auto-installs correctly).
• Ensured dependencies install in the correct project directory.
This improves developer experience by reducing setup time and ensuring consistency across environments. Let me know if any adjustments are needed! 🚀