Skip to content

Commit

Permalink
use pnpm as package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ndinata committed Jun 19, 2024
1 parent fe94db0 commit d074b96
Show file tree
Hide file tree
Showing 9 changed files with 13,009 additions and 22,642 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run check
pnpm check
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package.json
package-lock.json
expo-env.d.ts
pnpm-lock.yaml
6 changes: 3 additions & 3 deletions cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import { cloneTemplate, setupProject } from "./setup.js";

await setupProject(projectName);

consola.box(`Your project is now available 🚀
consola.box(`Your project is now available! 🚀
Run instructions for Android:
$ cd ${projectName} && npm run android
$ cd ${projectName} && pnpm android
Run instructions for iOS:
$ cd ${projectName} && npm run ios
$ cd ${projectName} && pnpm ios
`);
})();
10 changes: 8 additions & 2 deletions cli/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ This is the CLI for quickly initialising a new Expo project using the [Avid Expo

## Usage

```shell
$ npx create-avid-app@latest <project_name>
Install `pnpm` if you haven't already:
```sh
$ npm install -g pnpm
```

Bootstrap your project using the template:
```sh
$ npx create-avid-app@latest <your_project_name>
```

## Acknowledgements
Expand Down
2 changes: 1 addition & 1 deletion cli/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function updateConfig(projectName) {
}

async function installDeps(projectName) {
await runCommand(`cd ${projectName} && npm install`, {
await runCommand(`cd ${projectName} && pnpm install`, {
loading: "Installing dependencies...",
success: "Dependencies installed!\n",
error: "Failed to install dependencies.",
Expand Down
Loading

0 comments on commit d074b96

Please sign in to comment.