Skip to content

Commit

Permalink
fix: force "npm init" use latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
lrills committed Dec 24, 2021
1 parent 21ab9fd commit 023f569
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/create-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Create a hello-world project with specified platforms:

```bash
# with npm
npm init @machinat/app -- -p <platform> [-p ...] my-project
npm init @machinat/app@latest -- -p <platform> [-p ...] my-project

# with yarn
yarn create @machinat/app -- -p <platform> [-p ...] my-project
Expand Down
2 changes: 1 addition & 1 deletion website/docs/embedded-webview.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The `@machinat/webview` package provides webviews integrated with chat platforms
Starting with our project creator is the recommended if you are creating a whole new project. You only have to add a `-p webview` flag, and everything will be set. Like:

```bash
npm init @machinat/app -- -p messenger -p webview my-project
npm init @machinat/app@latest -- -p messenger -p webview my-project
```

### Install Manually
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ We recommend to create a Machinat app project with `@machinat/create-app`
initiator. Run this command to create a hello-world project:

```bash
npm init @machinat/app -- -p <platform> [-p <platform> ...] <project-path>
npm init @machinat/app@latest -- -p <platform> [-p <platform> ...] <project-path>
```

Or using `yarn`:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/learn/create-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Pick one platform you preferred and run this command with the platform you choos
in the terminal:

```bash
npm init @machinat/app -- -p <platform> -p webview my-todo-bot
npm init @machinat/app@latest -- -p <platform> -p webview my-todo-bot
```

The scirpt will automatically create codes of a hello-world bot. Now
Expand Down

0 comments on commit 023f569

Please sign in to comment.