Skip to content

Commit

Permalink
feat(cli): update cli to use bun package manager instead of pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaBitire committed Apr 8, 2024
1 parent 33a7a6d commit 16e17f8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 49 deletions.
Binary file added cli/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const createObytesApp = async () => {
// setup the project: remove unnecessary files, update package.json infos, name and set version to 0.0.1 + add initial version to osMetadata
await setupProject(projectName);

// install project dependencies using pnpm
// install project dependencies using bun
await installDeps(projectName);

// show instructions to run the project + link to the documentation
Expand Down
46 changes: 0 additions & 46 deletions cli/pnpm-lock.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions cli/setup-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const initGit = async (projectName) => {
};

const installDeps = async (projectName) => {
await runCommand(`cd ${projectName} && pnpm install`, {
await runCommand(`cd ${projectName} && bun install`, {
loading: 'Installing project dependencies',
success: 'Dependencies installed',
error: 'Failed to install dependencies, Make sure you have pnpm installed',
error: 'Failed to install dependencies, Make sure you have bun installed',
});
};

Expand Down

0 comments on commit 16e17f8

Please sign in to comment.