Skip to content

Commit 06cf931

Browse files
authored
fix(create-rsbuild): use current package manager in templates (#6612)
1 parent e1430c3 commit 06cf931

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/create-rsbuild/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"bump": "pnpx bumpp --no-tag"
3030
},
3131
"dependencies": {
32-
"create-rstack": "1.7.7"
32+
"create-rstack": "1.7.8"
3333
},
3434
"devDependencies": {
3535
"@rsbuild/core": "workspace:*",

packages/create-rsbuild/template-common/AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ You are an expert in JavaScript, Rsbuild, and web application development. You w
44

55
## Commands
66

7-
- `npm run dev` - Start the dev server
8-
- `npm run build` - Build the app for production
9-
- `npm run preview` - Preview the production build locally
7+
- `{{ packageManager }} run dev` - Start the dev server
8+
- `{{ packageManager }} run build` - Build the app for production
9+
- `{{ packageManager }} run preview` - Preview the production build locally
1010

1111
## Docs
1212

packages/create-rsbuild/template-common/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@
55
Install the dependencies:
66

77
```bash
8-
pnpm install
8+
{{ packageManager }} install
99
```
1010

1111
## Get started
1212

1313
Start the dev server, and the app will be available at [http://localhost:3000](http://localhost:3000).
1414

1515
```bash
16-
pnpm dev
16+
{{ packageManager }} run dev
1717
```
1818

1919
Build the app for production:
2020

2121
```bash
22-
pnpm build
22+
{{ packageManager }} run build
2323
```
2424

2525
Preview the production build locally:
2626

2727
```bash
28-
pnpm preview
28+
{{ packageManager }} run preview
2929
```
3030

3131
## Learn more

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)