Skip to content

Commit 92f28c7

Browse files
authored
fix(create-rspack): use current package manager in templates (#12248)
1 parent 5cf12ec commit 92f28c7

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

packages/create-rspack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dev": "rslib build -w"
2121
},
2222
"dependencies": {
23-
"create-rstack": "1.7.7"
23+
"create-rstack": "1.7.8"
2424
},
2525
"devDependencies": {
2626
"@rslib/core": "0.17.1",

packages/create-rspack/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, Rspack, and web application development. You wr
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-rspack/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-
npm install
8+
{{ packageManager }} install
99
```
1010

1111
## Get started
1212

1313
Start the dev server, and the app will be available at <http://localhost:8080>.
1414

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

1919
Build the app for production:
2020

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

2525
Preview the production build locally:
2626

2727
```bash
28-
npm run 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)