Skip to content

Commit

Permalink
docs: update readme to include the correct way to run the command
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeanyiisitor committed Aug 18, 2023
1 parent 40f4c77 commit c119d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app/
To start using the CLI tool, run the following command in the Next.js project root:

```bash
npx unflatten-next-routes
npx unflatten-next-routes@latest
```

This will initiate the tool in watch mode. Then add flat route files within any `/routes/` folder located within the `app` directory. As you add, rename, or remove these flat route files, the equivalent nested route file will be generated or updated within a parallel `/(.routes)/` directory.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "unbuild",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src -w",
"prepack": "pnpm build",
"prepack": "yarn build",
"test": "vitest",
"prepare": "husky install",
"commit-msg": "commitlint --edit $1",
Expand Down Expand Up @@ -57,4 +57,4 @@
"engines": {
"node": ">=16.0.0"
}
}
}

0 comments on commit c119d2f

Please sign in to comment.