File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 10
10
- Commit (write) rights to ` loopback-next ` repo
11
11
- Ability to review and land pull requests, edit/categorize/close issues
12
12
13
- ## What are a maintainer's responsibilities ?
13
+ ## What are responsibilities of a maintainer?
14
14
15
15
We ask you to follow the existing processes, see
16
16
http://loopback.io/doc/en/contrib/Governance.html . This means mostly:
Original file line number Diff line number Diff line change @@ -71,12 +71,31 @@ for intra-dependencies:
71
71
npm ci
72
72
```
73
73
74
+ As part of ` npm ci ` or ` npm i ` , TypeScript project references are automatically
75
+ updated for each package with in the monorepo.
76
+
74
77
The next step is to compile all packages from TypeScript to JavaScript:
75
78
76
79
``` sh
77
80
npm run build
78
81
```
79
82
83
+ To force a clean build:
84
+
85
+ ``` sh
86
+ npm run clean && npm run build
87
+ ```
88
+
89
+ Please note that ` npm run clean ` removes ` dist ` , ` *.tsbuildinfo ` , and other
90
+ generated files from each package to clean the state for builds.
91
+
92
+ To build an individual package:
93
+
94
+ ``` sh
95
+ cd < package-dir> // For example, cd ` packages/context` .
96
+ npm run build
97
+ ```
98
+
80
99
Please note that we are automatically running the build from ` pretest ` script,
81
100
therefore you should not need to run this command as part of your
82
101
[ red-green-refactor cycle] ( http://www.jamesshore.com/Blog/Red-Green-Refactor.html ) .
@@ -183,8 +202,16 @@ from package-lock files.**
183
202
If you ever end up with corrupted or out-of-date package locks, run the
184
203
following commands to fix the problem:
185
204
205
+ To rebuild ` package-lock.json ` for all packages.
206
+
207
+ ``` sh
208
+ npm update-package-locks
209
+ ```
210
+
211
+ To update ` package-lock.json ` for a list of packages:
212
+
186
213
``` sh
187
- $ npm run update-package-locks
214
+ npm update-package-locks -- --scope < package-name- 1> --scope < package-name- 2>
188
215
```
189
216
190
217
### Adding dependencies
You can’t perform that action at this time.
0 commit comments