Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 35b86c2

Browse files
chore: replace yarn scripts with pnpm scripts (react-hook-form#1100)
1 parent 9e18cf0 commit 35b86c2

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

‎.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.yarn/*
7-
!.yarn/patches
8-
!.yarn/releases
9-
!.yarn/plugins
10-
!.yarn/sdks
11-
!.yarn/versions
126
.pnp.*
137

148
# testing

‎CONTRIBUTING.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,52 @@ Here is a quick guide to doing code contributions to the library.
1212

1313
3. Install packages by running:
1414

15-
> yarn
15+
```shellscript
16+
pnpm install
17+
```
1618

1719
4. Startup a local version of the docs
1820

19-
> yarn start
21+
```shellscript
22+
pnpm run dev
23+
```
2024

2125
5. Ensure your code is formatted properly
2226

23-
> yarn format
27+
```shellscript
28+
pnpm run format
29+
```
2430

2531
6. Push your branch: `git push -u origin your-meaningful-branch-name`
2632

2733
7. Submit a pull request to the upstream react-hook-form repository.
2834

2935
8. Choose a descriptive title and describe your changes briefly.
3036

37+
## Testing production build
38+
39+
To test the documentation production site on your local machine,
40+
first execute the build script:
41+
42+
```shellscript
43+
pnpm run build
44+
```
45+
46+
Then start a local server which serves the file created by executing
47+
48+
```shellscript
49+
pnpm run start
50+
```
51+
3152
## Coding style
3253

33-
Please follow the coding style of the project. React Hook Form uses prettier. If possible, enable the prettier plugin in your editor to get real-time feedback. The formatting can be run manually with the following command: `yarn format`
54+
Please follow the coding style of the project.
55+
React Hook Form uses prettier.
56+
If possible, enable the prettier plugin in your editor to get real-time feedback. The formatting can be run manually with the following command:
57+
58+
```shellscript
59+
pnpm run format
60+
```
3461

3562
## License
3663

‎README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
## Install
1212

13-
yarn && yarn start
13+
```shellscript
14+
pnpm install && pnpm dev
15+
```
1416

1517
## Backers
1618

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@
6060
"dev": "next dev",
6161
"format": "prettier --write",
6262
"lint": "next lint --fix",
63-
"now-build": "npm run build",
63+
"now-build": "pnpm run build",
6464
"start": "next start",
6565
"typecheck": "tsc --noEmit",
6666
"prepare": "husky install"
6767
},
6868
"lint-staged": {
6969
"*.{ts,tsx,mdx,css,json}": [
70-
"npm run format"
70+
"pnpm run format"
7171
]
7272
}
7373
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /