Commit 7e4a378
authored
Switch to pnpm
This pull request transitions the project from using `yarn` to `pnpm`
for dependency management and updates related workflows, documentation,
and scripts accordingly. Additionally, it introduces new TypeScript type
definitions and simplifies the `package.json` configuration.
### Migration from `yarn` to `pnpm`:
*
[`.github/workflows/build-artifacts.yml`](diffhunk://#diff-fb778ff52f81fc559de90b69279d2bc580d03847f2008ad7c6b6ba3e67265e7dL14-R26):
Updated the dependency installation step to use `pnpm` instead of `yarn`
and added a `pnpm build` command for artifact building.
*
[`.github/workflows/js-qa.yml`](diffhunk://#diff-a88b0a4f767bead41b7923be71fc24ca488e65a46d253e0641842df191d36a52L23-R36):
Replaced `yarn` commands with equivalent `pnpm` commands for dependency
installation, linting, and testing.
*
[`docs/development.md`](diffhunk://#diff-97db29a7915320e63d41d38a0440360a87055ee8ed03757aa263116dbbb4aabeL15-R27):
Updated all references to `yarn` commands with `pnpm` equivalents,
including installation, asset building, and environment setup commands.
[[1]](diffhunk://#diff-97db29a7915320e63d41d38a0440360a87055ee8ed03757aa263116dbbb4aabeL15-R27)
[[2]](diffhunk://#diff-97db29a7915320e63d41d38a0440360a87055ee8ed03757aa263116dbbb4aabeL37-R37)
* `scripts/create-posts.sh` and `scripts/create-terms.sh`: Replaced
`yarn wp-env` commands with `pnpm run wp-env` commands.
[[1]](diffhunk://#diff-f965dea7fbe12b4ea991c303cd3243b662803477a2a53f3a2883724d787b5d75L38-R38)
[[2]](diffhunk://#diff-6631933ba30a36de6c8c728b1b9ae42786f8f3cbf4e82f317ee590f4fe3dc89aL30-R30)
### Updates to `package.json`:
* Added new TypeScript type definitions for `lodash`, `node`, `react`,
and `react-dom` under `devDependencies`.
* Removed `yarn` from `devDependencies` and added a `pnpm` configuration
block with overrides for `react` and `react-dom`.
[[1]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L34-L38)
[[2]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R50-R55)
* Modified scripts to replace `yarn` commands with `pnpm` equivalents
and added a new `qa` script for combined type checking, linting, and
testing.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Chores**
- Switched the project’s package manager from Yarn to pnpm across
workflows, scripts, and documentation.
- Updated continuous integration workflows to use pnpm for installing
dependencies, caching, linting, and testing.
- Updated documentation to reflect pnpm usage in all development
commands and instructions.
- Removed Yarn from dependencies and configuration.
- Added TypeScript type definitions for React and React DOM to
development dependencies.
- Introduced a new script for running quality assurance checks.
- Relaxed the minimum required version for webpack.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 76a0c22 commit 7e4a378
File tree
8 files changed
+15637
-12462
lines changed- .github/workflows
- docs
- scripts
8 files changed
+15637
-12462
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | | - | |
| 23 | + | |
18 | 24 | | |
19 | | - | |
20 | | - | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | | - | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | | - | |
32 | | - | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | | - | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
0 commit comments