We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 771c371 + b218261 commit b960ce5Copy full SHA for b960ce5
src/index.ts
@@ -316,9 +316,10 @@ export class MonoRoot extends PackageFile {
316
* @returns Promise of this, for chaining.
317
*/
318
public async save(gitAdd = false): Promise<this> {
319
- super.save(gitAdd);
320
for (const p of this) {
321
- if (p !== this) {
+ if (p === this) {
+ super.save(gitAdd);
322
+ } else {
323
await p.save(gitAdd);
324
}
325
@@ -332,9 +333,10 @@ export class MonoRoot extends PackageFile {
332
333
334
335
public delete(fields: string[]): this {
- super.delete(fields);
336
337
338
+ super.delete(fields);
339
340
p.delete(fields);
341
342
0 commit comments