@modern-js/main-doc 0.0.0-next-1686037191101 → 0.0.0-next-1686044917772

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +9 -4
  2. package/docs/en/components/debug-app.mdx +1 -1
  3. package/docs/en/components/deploy.mdx +1 -0
  4. package/docs/en/components/init-app.mdx +4 -8
  5. package/docs/en/components/release-note.mdx +1 -0
  6. package/docs/en/guides/get-started/glossary.mdx +12 -12
  7. package/docs/en/guides/get-started/introduction.mdx +18 -21
  8. package/docs/en/guides/get-started/quick-start.mdx +21 -37
  9. package/docs/en/guides/get-started/upgrade.mdx +15 -14
  10. package/docs/en/guides/topic-detail/changesets/add.mdx +16 -14
  11. package/docs/en/guides/topic-detail/changesets/changelog.mdx +28 -28
  12. package/docs/en/guides/topic-detail/changesets/commit.mdx +23 -23
  13. package/docs/en/guides/topic-detail/changesets/config.mdx +10 -10
  14. package/docs/en/guides/topic-detail/changesets/github.mdx +12 -12
  15. package/docs/en/guides/topic-detail/changesets/introduce.mdx +13 -13
  16. package/docs/en/guides/topic-detail/changesets/release-note.mdx +38 -34
  17. package/docs/en/guides/topic-detail/changesets/release-pre.mdx +6 -6
  18. package/docs/en/guides/topic-detail/changesets/release.mdx +42 -42
  19. package/docs/zh/community/blog/v2-release-note.mdx +1 -1
  20. package/docs/zh/components/init-app.mdx +5 -9
  21. package/docs/zh/guides/get-started/quick-start.mdx +7 -10
  22. package/docs/zh/guides/get-started/upgrade.mdx +1 -1
  23. package/docs/zh/guides/topic-detail/changesets/add.mdx +10 -8
  24. package/docs/zh/guides/topic-detail/changesets/changelog.mdx +9 -9
  25. package/docs/zh/guides/topic-detail/changesets/commit.mdx +10 -10
  26. package/docs/zh/guides/topic-detail/changesets/config.mdx +1 -1
  27. package/docs/zh/guides/topic-detail/changesets/github.mdx +9 -9
  28. package/docs/zh/guides/topic-detail/changesets/introduce.mdx +9 -9
  29. package/docs/zh/guides/topic-detail/changesets/release-note.mdx +28 -24
  30. package/docs/zh/guides/topic-detail/changesets/release-pre.mdx +5 -5
  31. package/docs/zh/guides/topic-detail/changesets/release.mdx +22 -22
  32. package/package.json +5 -5
@@ -2,15 +2,15 @@
2
2
  sidebar_position: 6
3
3
  ---
4
4
 
5
- # Customizing Changelog Generation
5
+ # Customizing Changelog
6
6
 
7
- By default, Changesets will use `@changesets/cli/changelog` to generate changelog information. If the default changelog information cannot meet the requirements, you can customize the generation of changelog.
7
+ By default, Changesets will use `@changesets/cli/changelog` to generate changelog. If the default changelog cannot meet the requirements, you can customize the generation of changelog.
8
8
 
9
9
  ## Customizing Changelog Content
10
10
 
11
- Changelog information mainly includes the following two types of information:
11
+ Changelog mainly includes the following two types of information:
12
12
 
13
- - Changelog information written in the changeset.
13
+ - Changelog written in the changeset.
14
14
 
15
15
  - Version change information of related packages in this version upgrade.
16
16
 
@@ -28,10 +28,10 @@ export type VersionType = 'major' | 'minor' | 'patch' | 'none';
28
28
  export type Release = { name: string; type: VersionType };
29
29
 
30
30
  export type Changeset = {
31
- id: string; // changeset 的文件名称
32
- commit?: string; // changeset 提交时的 commit id 信息
33
- summary: string; // changeset 内容信息
34
- releases: Array<Release>; // 当前计算出的 changeset 升级包名称及类型信息
31
+ id: string; // changeset id
32
+ commit?: string; // changeset commit id
33
+ summary: string; // changeset summary content
34
+ releases: Array<Release>; // The name and type information of the current computed changeset upgrade package.
35
35
  };
36
36
  ```
37
37
 
@@ -77,13 +77,13 @@ All associated changeset information, which is an array of `getReleaseLine` chan
77
77
 
78
78
  ```ts
79
79
  type ModCompWithPackage = {
80
- name: string; // 依赖模块名称
81
- type: VersionType; // 依赖模块的升级类型
82
- oldVersion: string; // 依赖模块当前版本号
83
- newVersion: string; // 依赖模块新版本号
84
- changesets: string[]; // 关联的 changeset id 列表
85
- packageJson: PackageJSON; // 依赖模块完整的 package.json 内容
86
- dir: string; // 依赖模块的路径(绝对路径)
80
+ name: string; // Name of the dependent module
81
+ type: VersionType; // Upgrade type of the dependent module
82
+ oldVersion: string; // Current version of the dependent module
83
+ newVersion: string; // New version of the dependent module
84
+ changesets: string[]; // List of associated changeset ids
85
+ packageJson: PackageJSON; // Complete package.json content of the dependent module
86
+ dir: string; // Path (absolute path) of the dependent module
87
87
  };
88
88
 
89
89
  type DependenciesUpdated = ModCompWithPackage[];
@@ -95,7 +95,7 @@ Changelog content.
95
95
 
96
96
  #### Default Implementation
97
97
 
98
- By default, `@changesets/cli/changelog` will display the corresponding `Updated dependencies + commit id` information of the changesets as a list. Then, based on the `dependenciesUpdated` information, it will display the package name and new version number of the corresponding dependency package as a child list item of the list.
98
+ By default, `@changesets/cli/changelog` will display the corresponding `Updated dependencies + commit id` information of the changesets as a list. Then, based on the `dependenciesUpdated` information, it will display the package name and new version of the corresponding dependency package as a child list item of the list.
99
99
 
100
100
  ```ts
101
101
  async function getDependencyReleaseLine(changesets, dependenciesUpdated) {
@@ -128,11 +128,11 @@ It is displayed as follows:
128
128
 
129
129
  ## Configuration
130
130
 
131
- The `changelog` field in the changesets configuration file is used to mark the way to obtain changelog information.
131
+ The `changelog` field in the changesets configuration file is used to mark the way to get changelog.
132
132
 
133
- This configuration can be a string, directly declaring the module name or path of the changelog information acquisition module.
133
+ This configuration can be a string, directly declaring the module name or path of the changelog module.
134
134
 
135
- This configuration also supports configuring arrays. The first element in the array is the module name or path of the changelog information acquisition module, and the second element is the parameter value passed to the corresponding function, which will be passed as the third parameter of the `getReleaseLine` and `getDependencyReleaseLine` functions.
135
+ This configuration also supports configuring arrays. The first element in the array is the module name or path of the changelog module, and the second element is the parameter value passed to the corresponding function, which will be passed as the third parameter of the `getReleaseLine` and `getDependencyReleaseLine` functions.
136
136
 
137
137
  ### Configuring Relative Paths
138
138
 
@@ -160,9 +160,9 @@ Configure `changlog` as `./my-changelog-config.js`:
160
160
  }
161
161
  ```
162
162
 
163
- ### Using Module Project
163
+ ### Using Npm Module
164
164
 
165
- Customizing changelog can also be managed using the module project to provide a common solution.
165
+ Customizing changelog can also be managed using the NPM module project to provide a common solution.
166
166
 
167
167
  #### Use `npx @modern-js/create@latest` to create a module project.
168
168
 
@@ -181,11 +181,11 @@ export async function getReleaseLine() {}
181
181
  export async function getDependencyReleaseLine() {}
182
182
  ```
183
183
 
184
- #### Publish the module to NPM.
184
+ #### Publish the module to NPM
185
185
 
186
- #### Install the corresponding module in the root directory of the target repository, such as `custom-changelog`.
186
+ #### Install the module in the root directory of the target repository, such as `custom-changelog`.
187
187
 
188
- #### Configure the changelog configuration of Changesets as the package name.
188
+ #### Configure the changelog configuration of changesets as the package name.
189
189
 
190
190
  ```json title=".changesets/config.json"
191
191
  {
@@ -196,9 +196,9 @@ export async function getDependencyReleaseLine() {}
196
196
 
197
197
  ### Using Monorepo Sub-Project
198
198
 
199
- If your current repository is Monorepo, you can directly manage it using module sub-projects.
199
+ If your current repository is Monorepo, you can directly manage it using NPM module sub-projects.
200
200
 
201
- #### Run `pnpm run new` to create a module sub-project.
201
+ #### Run `pnpm run new` to create a NPM module sub-project
202
202
 
203
203
  ```bash
204
204
  ? Please select the type of project you want to create: Npm Module
@@ -215,7 +215,7 @@ export async function getReleaseLine() {}
215
215
  export async function getDependencyReleaseLine() {}
216
216
  ```
217
217
 
218
- #### Add the sub-project module dependency, such as `custom-changelog`, to the Monorepo root directory.
218
+ #### Add the sub-project module dependency, such as `custom-changelog`, to the Monorepo root directory
219
219
 
220
220
  ```json title="package.json"
221
221
  {
@@ -226,7 +226,7 @@ export async function getDependencyReleaseLine() {}
226
226
  }
227
227
  ```
228
228
 
229
- #### Configure the changelog configuration of Changesets as the package name.
229
+ #### Configure the changelog configuration of Changesets as the package name
230
230
 
231
231
  ```json title=".changesets/config.json"
232
232
  {
@@ -4,7 +4,7 @@ sidebar_position: 7
4
4
 
5
5
  # Customizing Commit Messages
6
6
 
7
- Changesets supports configuring `commit` to automatically submit the current changes when executing the `change` and `bump` commands.
7
+ Changesets supports configuring `commit` to automatically submit the current changes when running the `change` and `bump` commands.
8
8
 
9
9
  The default `commit` information is provided by `@changesets/cli/commit`, and the default information format is:
10
10
 
@@ -17,8 +17,8 @@ When the default commit information cannot meet the requirements, custom commit
17
17
 
18
18
  Commit information is divided into two types:
19
19
 
20
- - Commit information automatically generated when executing the `change` command.
21
- - Commit information automatically generated when executing the `bump` command.
20
+ - Commit information automatically generated when running the `change` command.
21
+ - Commit information automatically generated when running the `bump` command.
22
22
 
23
23
  The custom logic mainly implements two functions, `getAddMessage` and `getVersionMessage`, which are used to define the above two types of information, respectively.
24
24
 
@@ -101,18 +101,18 @@ type ComprehensiveRelease = {
101
101
  };
102
102
 
103
103
  type PreState = {
104
- mode: 'pre' | 'exit'; // pre 模式当前状态
105
- tag: string; // pre 的类型
104
+ mode: 'pre' | 'exit'; // Current state of pre mode
105
+ tag: string; // Type of pre
106
106
  initialVersions: {
107
- [pkgName: string]: string; // 版本升级前包名及版本号信息,Map 格式
107
+ [pkgName: string]: string; // Package name and version information before version upgrade
108
108
  };
109
- changesets: string[]; // 本次升级的 changeset id 列表
109
+ changesets: string[]; // List of changeset ids for this upgrade
110
110
  };
111
111
 
112
112
  type ReleasePlan = {
113
- changesets: Changeset[]; // 本次升级的 changeset 列表
114
- releases: ComprehensiveRelease[]; // 当前升级的包信息,包含包名称、当前版本、升级后版本、升级类型等
115
- preState: PreState | undefined; // 当前如果为 pre 发布,提供相关状态信息
113
+ changesets: Changeset[]; // List of changesets for this upgrade
114
+ releases: ComprehensiveRelease[]; // Information of the current upgrade, including package name, current version, upgraded version, and upgrade type
115
+ preState: PreState | undefined; // If it is a pre-release, provide relevant state information
116
116
  };
117
117
  ```
118
118
 
@@ -128,7 +128,7 @@ Commit message content.
128
128
 
129
129
  #### Default Implementation
130
130
 
131
- The default processing logic of `@changesets/cli/commit` is to first display the number of packages that need to be released, then display the names and new version numbers of the released packages, and [skip ci] information is added according to the `skipCI` parameter configuration passed in.
131
+ The default processing logic of `@changesets/cli/commit` is to first display the number of packages that need to be released, then display the names and new version of the released packages, and [skip ci] information is added according to the `skipCI` parameter configuration passed in.
132
132
 
133
133
  ```ts
134
134
  const getVersionMessage = async (
@@ -157,7 +157,7 @@ const getVersionMessage = async (
157
157
 
158
158
  ## Configuration
159
159
 
160
- The `commit` field in the changesets configuration file is used to mark whether to submit commit information when executing the `change` and `bump` commands, and the way to obtain commit information.
160
+ The `commit` field in the changesets configuration file is used to mark whether to submit commit information when running the `change` and `bump` commands, and the way to obtain commit information.
161
161
 
162
162
  This configuration can be a `boolean`. When it is `true`, the default `@changesets/cli/commit` formatting commit information will be used.
163
163
 
@@ -191,15 +191,15 @@ Configure `commit` as `./my-commit-config.js`:
191
191
  }
192
192
  ```
193
193
 
194
- ### Using Module Project
194
+ ### Using NPM Module
195
195
 
196
- Customizing commit can also be managed using the module project to provide a common solution.
196
+ Customizing commit can also be managed using the NPM module project to provide a common solution.
197
197
 
198
- #### Use `npx @modern-js/create@latest` to create a module project.
198
+ #### Use `npx @modern-js/create@latest` to create a module project
199
199
 
200
200
  ```md
201
201
  ? Please select the type of project you want to create: Npm Module
202
- ? Please fill in the project name: custom-changelog
202
+ ? Please fill in the project name: custom-commit
203
203
  ? Please select the programming language: TS
204
204
  ? Please select the package manager: pnpm
205
205
  ```
@@ -212,11 +212,11 @@ export async function getAddMessage() {}
212
212
  export async function getVersionMessage() {}
213
213
  ```
214
214
 
215
- #### Publish the module to NPM.
215
+ #### Publish the module to NPM
216
216
 
217
- #### Install the corresponding module in the root directory of the target repository, such as `custom-commit`.
217
+ #### Install the corresponding module in the root directory of the target repository, such as `custom-commit`
218
218
 
219
- #### Configure the commit configuration of changesets as the package name.
219
+ #### Configure the commit configuration of changesets as the package name
220
220
 
221
221
  ```json title="package.json"
222
222
  {
@@ -227,9 +227,9 @@ export async function getVersionMessage() {}
227
227
 
228
228
  ### Using Monorepo Sub-Project
229
229
 
230
- If your current repository is Monorepo, you can directly manage it using module sub-projects.
230
+ If your current repository is Monorepo, you can directly manage it using NPM module sub-projects.
231
231
 
232
- #### Run `pnpm run new` to create a module sub-project.
232
+ #### Run `pnpm run new` to create a module sub-project
233
233
 
234
234
  ```bash
235
235
  ? Please select the type of project you want to create: Npm Module
@@ -246,7 +246,7 @@ export async function getAddMessage() {}
246
246
  export async function getVersionMessage() {}
247
247
  ```
248
248
 
249
- Add the sub-project module dependency, such as `custom-commit`, to the Monorepo root directory.
249
+ #### Add the sub-project module dependency, such as `custom-commit`, to the Monorepo root directory
250
250
 
251
251
  ```json title="package.json"
252
252
  {
@@ -257,7 +257,7 @@ Add the sub-project module dependency, such as `custom-commit`, to the Monorepo
257
257
  }
258
258
  ```
259
259
 
260
- Configure the commit configuration of Changesets as the package name.
260
+ #### Configure the commit configuration of Changesets as the package name
261
261
 
262
262
  ```json title=".changesets/config.json"
263
263
  {
@@ -4,9 +4,9 @@ sidebar_position: 5
4
4
 
5
5
  # Changesets Configuration
6
6
 
7
- As we learned earlier, when initializing a Modern.js repository, the configuration file for changesets will be initialized by default, that is, the `.changeset/config.json` file. Below, we will learn in detail what configurations are supported in this file.
7
+ When initializing a Modern.js repository, the configuration file for changesets will be initialized by default, that is, the `.changeset/config.json` file. Below, we will learn in detail what configurations are supported in this file.
8
8
 
9
- ## Configuration introduction
9
+ ## Introduction
10
10
 
11
11
  ### commit
12
12
 
@@ -14,14 +14,14 @@ Type: `boolean`
14
14
 
15
15
  Default: `false`
16
16
 
17
- When this field is configured as `true`, the code submission operation will be automatically executed when executing the `change` and `bump` commands.
17
+ When this field is configured as `true`, the code submission operation will be automatically executed when running the `change` and `bump` commands.
18
18
 
19
19
  The default commit information format is as follows:
20
20
 
21
21
  ![change commit](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/changeset-change-commit-info.png)
22
22
  ![bump commit](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/changeset-bump-commit-info.png)
23
23
 
24
- This commit information supports customization, which we will discuss in detail in the [Customizing Commit Information](/guides/topic-detail/changesets/commit) chapter.
24
+ This commit information supports customization, which we will discuss in detail in the [Customizing Commit Messages](/guides/topic-detail/changesets/commit) chapter.
25
25
 
26
26
  ### access
27
27
 
@@ -58,7 +58,7 @@ Type: `string[]`
58
58
 
59
59
  Default: `[]`
60
60
 
61
- Used to declare packages to be ignored when executing the `bump` command. The usage is consistent with the `--ignore` parameter of the `bump` command. Note that the two cannot be used at the same time.
61
+ Used to declare packages to be ignored when running the `bump` command. The usage is consistent with the `--ignore` parameter of the `bump` command. Note that the two cannot be used at the same time.
62
62
 
63
63
  ### fixed
64
64
 
@@ -66,7 +66,7 @@ Type: `string[][]`
66
66
 
67
67
  Default: `[]`
68
68
 
69
- Used to group packages in monorepos. The version numbers of packages in the same group will be bound, and each time the `bump` command is executed, if a package in the same group is upgraded, others will be upgraded together.
69
+ Used to group packages in monorepos. The version of packages in the same group will be bound, and each time the `bump` command is run, a package in the same group is upgraded, others will be upgraded together.
70
70
  Regular expressions can be used to match package names.
71
71
 
72
72
  ### linked
@@ -75,7 +75,7 @@ Type: `string[][]`
75
75
 
76
76
  Default: `[]`
77
77
 
78
- Similar to `fixed`, it also groups packages in monorepos, but only the packages related to the changeset declaration will be upgraded when the `bump` command is executed, and the version numbers of the changeset packages in the same group will remain consistent.
78
+ Similar to `fixed`, it also groups packages in monorepos, but only the packages related to the changeset declaration will be upgraded when the `bump` command is run, and the version of the changeset packages in the same group will remain consistent.
79
79
  Regular expressions can be used to match package names.
80
80
 
81
81
  ### updateInternalDependencies
@@ -86,7 +86,7 @@ Default: `patch`
86
86
 
87
87
  Used to declare the version number rule for updating internal dependencies.
88
88
 
89
- When upgrading the version number by executing the `bump` command, the dependency declaration using the package in the repository will be automatically updated by default. After configuring this field as `minor`, if the version number is upgraded to `patch`, the reference dependency declaration will not be updated automatically.
89
+ When upgrading the version number by running the `bump` command, the dependency declaration using the package in the repository will be automatically updated by default. After configuring this field as `minor`, if the version number is upgraded to `patch`, the reference dependency declaration will not be updated automatically.
90
90
 
91
91
  For example:
92
92
 
@@ -108,7 +108,7 @@ Default: `@changesets/cli/changelog`
108
108
 
109
109
  The rule for generating changelog.
110
110
 
111
- When configured as `false`, only the version number will be declared in the `CHANGELOG.md` file when executing the `bump` command, and no other changelog information will be declared.
111
+ When configured as `false`, only the version number will be declared in the `CHANGELOG.md` file when running the `bump` command, and no other changelog information will be declared.
112
112
 
113
113
  ![Close changelog configuration](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/changeset-empty-changelog.png)
114
114
 
@@ -136,7 +136,7 @@ Type: `always` | `out-of-range`
136
136
 
137
137
  Default: `always`
138
138
 
139
- When upgrading the version number by executing the `bump` command, the dependency declaration using the package in the repository will be automatically updated by default. When this parameter is set to `out-of-range`, the dependency declaration using the package in the repository will be updated only when it is outside the declared range.
139
+ When upgrading the version number by running the `bump` command, the dependency declaration using the package in the repository will be automatically updated by default. When this parameter is set to `out-of-range`, the dependency declaration using the package in the repository will be updated only when it is outside the declared range.
140
140
 
141
141
  #### useCalculatedVersionForSnapshots
142
142
 
@@ -28,7 +28,7 @@ After the configuration is completed, the robot will automatically check whether
28
28
 
29
29
  ![](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/changeset-bot-no-changeset.png)
30
30
 
31
- You can execute `pnpm run change` in the repository to add changeset, or click the second link below to fill in changeset directly.
31
+ You can run `pnpm run change` in the repository to add changeset, or click the second link below to fill in changeset directly.
32
32
 
33
33
  #### Changeset added
34
34
 
@@ -44,11 +44,11 @@ You can directly ignore the prompt information when no changeset is added, which
44
44
 
45
45
  ### Automatically create Release Pull Request
46
46
 
47
- Modern.js provides a Github Action to automatically create release Pull Request, which can automatically execute bump operation, update lock file and create Pull Request operation based on the selected branch.
47
+ Modern.js provides a Github Action to automatically create release Pull Request, which can automatically run bump command, update lock file and create Pull Request operation based on the selected branch.
48
48
 
49
49
  #### Usage
50
50
 
51
- Create a `.github/workflows/release-pull-request.yml` file in the repository and fill in the following content:
51
+ - Create a `.github/workflows/release-pull-request.yml` file in the repository and fill in the following content:
52
52
 
53
53
  ```yaml
54
54
  name: Release Pull Request
@@ -93,25 +93,25 @@ jobs:
93
93
  REF: ${{ github.ref }}
94
94
  ```
95
95
 
96
- After merging Workflow into the main branch, go to the Action page corresponding to the Github repository and select Release Pull Request:
96
+ - After merging Workflow into the main branch, go to the Action page corresponding to the Github repository and select Release Pull Request:
97
97
 
98
98
  ![Release Pull Request Action](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/action-pull-request.png)
99
99
 
100
- Select the release type of this release, and click the Run workflow button:
100
+ - Select the release type of this release, and click the Run workflow button:
101
101
 
102
102
  ![Run Release Pull Request](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/action-pull-request.jpeg)
103
103
 
104
- After the workflow is completed, a `Release-${version}` Pull Request will be automatically created, the related version number of `bump` changeset will be automatically updated, and the lock file will be updated. The content of Pull Request is the Release Note automatically generated by executing the `gen-release-note` command.
104
+ - After the workflow is completed, a `Release-${version}` Pull Request will be automatically created, the related version number of `bump` changeset will be automatically updated, and the lock file will be updated. The content of Pull Request is the Release Note automatically generated by running the `gen-release-note` command.
105
105
 
106
106
  ![Release Pull Request](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/release-pull-request.jpeg)
107
107
 
108
108
  ### Automatic Release
109
109
 
110
- Modern.js provides a Github Action to automatically release versions, which can automatically execute release operation based on the selected branch and publish the package to NPM.
110
+ Modern.js provides a Github Action to automatically release versions, which can automatically run release command based on the selected branch and publish the package to NPM.
111
111
 
112
112
  #### Usage
113
113
 
114
- Create a `.github/workflows/release.yml` file in the repository and fill in the following content:
114
+ - Create a `.github/workflows/release.yml` file in the repository and fill in the following content:
115
115
 
116
116
  ```yaml
117
117
  name: Release
@@ -160,16 +160,16 @@ jobs:
160
160
  REF: ${{ github.ref }}
161
161
  ```
162
162
 
163
- Configure the NPM_TOKEN of the repository:
163
+ - Configure the NPM_TOKEN of the repository:
164
164
 
165
165
  ![](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/github-set-npm-token.png)
166
166
 
167
- After merging Workflow into the main branch, go to the Action page corresponding to the Github repository and select Release:
167
+ - After merging Workflow into the main branch, go to the Action page corresponding to the Github repository and select Release:
168
168
 
169
169
  ![Release Action](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/release-action.png)
170
170
 
171
- Select the branch name and release version type, and click the Run workflow button:
171
+ - Select the branch name and release version type, and click the Run workflow button:
172
172
 
173
173
  ![Run Release Action](https://lf3-static.bytednsdoc.com/obj/eden-cn/zq-uylkvT/ljhwZthlaukjlkulzlp/run-release-workflow.png)
174
174
 
175
- Workflow will automatically complete the build and release to NPM process of the repository.
175
+ - Workflow will automatically complete the build and release to NPM process of the repository.
@@ -2,25 +2,25 @@
2
2
  sidebar_position: 1
3
3
  ---
4
4
 
5
- # Introduction to Changesets
5
+ # Introducing Changesets
6
6
 
7
- Modern.js integrates [changesets](https://github.com/changesets/changesets) by default for package version management in Npm Module and Monorepo project.
7
+ Modern.js integrates [changesets](https://github.com/changesets/changesets) for package version management in Npm Module and Monorepo project.
8
8
 
9
9
  ## Features
10
10
 
11
11
  Changesets have the following features:
12
12
 
13
- - During development, developers need to provide the package names involved in this change, the type of version upgrade (`pathch`, `minor`, `major`), and change information, that is, changeset.
13
+ - During development, developers need to provide the package names, the type of version upgrade (`pathch`, `minor`, `major`), and change information involved in this change.
14
14
 
15
15
  - When releasing a version, the version number of the corresponding package will be automatically upgraded based on the content of the changeset, and changelog information will be generated in the corresponding package.
16
16
 
17
- - In the Monorepo scenario, changesets will automatically generate a repository dependency graph, and only upgrade the version numbers of the changed packages and related dependent packages during upgrade.
17
+ - In the Monorepo project, changesets will automatically generate a repository dependency graph, and only upgrade the version numbers of the changed packages and related dependent packages during upgrade.
18
18
 
19
19
  ## Initialization
20
20
 
21
- The module and Monorepo project schemes created by Modern.js have already initialized changesets. The `.changeset` directory and the configuration file `.changeset/config.json` will be automatically created in the project root directory.
21
+ The Npm Module and Monorepo project created by Modern.js have already initialized changesets. The `.changeset` directory and the configuration file `.changeset/config.json` will be automatically created in the project root directory.
22
22
 
23
- In addition, Modern.js provides corresponding commands for changesets in its corresponding project scheme tools `@modern-js/module-tools` and `@modern-js/monorepo-tools`, and there is no need to manually install changeset-related dependencies.
23
+ In addition, Modern.js provides corresponding commands for changesets in its corresponding project tools `@modern-js/module-tools` and `@modern-js/monorepo-tools`, and there is no need to manually install changeset-related dependencies.
24
24
 
25
25
  The default configuration for changesets is as follows:
26
26
 
@@ -37,20 +37,20 @@ The default configuration for changesets is as follows:
37
37
  }
38
38
  ```
39
39
 
40
- The configuration file provides some basic configurations for generating changesets. For detailed field descriptions, please refer to the following chapter: [changesets configuration](/guides/topic-detail/changesets/config).
40
+ The configuration file provides some basic configurations for generating changesets. For detailed field descriptions, please refer to [Changesets configuration](/guides/topic-detail/changesets/config).
41
41
 
42
42
  ## Commands
43
43
 
44
- - `change` Creates a changeset. After executing this command, a changeset file will be automatically generated in the `.changeset` directory.
44
+ - `change`: Creates a changeset. After running this command, a changeset file will be automatically generated in the `.changeset` directory.
45
45
 
46
- - `bump` Upgrades the version number of the corresponding package based on the current changeset.
46
+ - `bump`: Upgrades the version of the corresponding package based on the current changeset.
47
47
 
48
- - `pre` Marks entering and exiting `pre release` mode. When executing the `bump` command in `pre release` mode, the version number format will be `x.x.x-${pre-tag}.x`.
48
+ - `pre`: Marks entering and exiting `pre release` mode. When running the `bump` command in `pre release` mode, the version format will be `x.x.x-${pre-tag}.x`.
49
49
 
50
- - `release` Publishes the package to NPM.
50
+ - `release`: Publishes the package to NPM.
51
51
 
52
- - `status` Views the current changeset status.
52
+ - `status`: Views the current changeset status.
53
53
 
54
- - `gen-release-note` Generates Release Note information based on the current chagneset status.
54
+ - `gen-release-note`: Generates Release Note information based on the current chagneset status.
55
55
 
56
56
  For specific command-supported parameters, please refer to the corresponding chapter introduction.