@neurodevs/meta-node 1.0.17 → 1.0.18

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.
@@ -291,7 +291,7 @@ export default prettierConfigNdx
291
291
  await this.run();
292
292
  assert.isEqualDeep(callsToWriteFile[2], {
293
293
  file: this.tsconfigPath,
294
- data: JSON.stringify(this.updatedTsconfig, null, 4) + '\n',
294
+ data: JSON.stringify(this.updatedTsconfig, null, 2) + '\n',
295
295
  options: { encoding: 'utf-8' },
296
296
  }, 'Did not update tsconfig as expected!');
297
297
  }
@@ -643,7 +643,7 @@ export default prettierConfigNdx
643
643
  `patch: update tsconfig (@neurodevs/meta-node: ${this.metaNodeVersion})`).length, 1, 'Did not commit tsconfig changes once!');
644
644
  }
645
645
  static async doesNotUpdateTsconfigIfAlreadyUpToDate() {
646
- setFakeReadFileResult(this.tsconfigPath, JSON.stringify(this.updatedTsconfig, null, 4));
646
+ setFakeReadFileResult(this.tsconfigPath, JSON.stringify(this.updatedTsconfig, null, 2));
647
647
  await this.run();
648
648
  const tsconfigWrites = callsToWriteFile.filter((call) => call.file === this.tsconfigPath);
649
649
  assert.isEqual(tsconfigWrites.length, 0, 'Should not update tsconfig when only extra keys differ!');
@@ -1098,7 +1098,7 @@ export default prettierConfigNdx
1098
1098
  type: 'promptString',
1099
1099
  },
1100
1100
  ],
1101
- }, null, 4);
1101
+ }, null, 2);
1102
1102
  }
1103
1103
  static NpmAutopackage(options) {
1104
1104
  return NpmAutopackage.Create({ ...this.defaultOptions, ...options });
@@ -451,7 +451,7 @@ export default prettierConfigNdx
451
451
  JSON.stringify(this.updatedTsconfig));
452
452
  }
453
453
  async updateTsconfigFile() {
454
- await this.writeFile(this.tsconfigPath, JSON.stringify(this.updatedTsconfig, null, 4) + '\n', {
454
+ await this.writeFile(this.tsconfigPath, JSON.stringify(this.updatedTsconfig, null, 2) + '\n', {
455
455
  encoding: 'utf-8',
456
456
  });
457
457
  }
@@ -548,7 +548,7 @@ export default prettierConfigNdx
548
548
  ...this.originalTasksJson,
549
549
  tasks: [...this.originalTasksJson.tasks, this.requiredTask],
550
550
  inputs: [...this.originalTasksJson.inputs, this.requiredInput],
551
- }, null, 4);
551
+ }, null, 2);
552
552
  }
553
553
  get requiredTask() {
554
554
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neurodevs/meta-node",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "Meta-layer utilities for maintaining Node.js package ecosystems.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -477,7 +477,7 @@ export default prettierConfigNdx
477
477
  callsToWriteFile[2],
478
478
  {
479
479
  file: this.tsconfigPath,
480
- data: JSON.stringify(this.updatedTsconfig, null, 4) + '\n',
480
+ data: JSON.stringify(this.updatedTsconfig, null, 2) + '\n',
481
481
  options: { encoding: 'utf-8' },
482
482
  },
483
483
  'Did not update tsconfig as expected!'
@@ -1183,7 +1183,7 @@ export default prettierConfigNdx
1183
1183
  protected static async doesNotUpdateTsconfigIfAlreadyUpToDate() {
1184
1184
  setFakeReadFileResult(
1185
1185
  this.tsconfigPath,
1186
- JSON.stringify(this.updatedTsconfig, null, 4)
1186
+ JSON.stringify(this.updatedTsconfig, null, 2)
1187
1187
  )
1188
1188
 
1189
1189
  await this.run()
@@ -1927,7 +1927,7 @@ export default prettierConfigNdx
1927
1927
  ],
1928
1928
  },
1929
1929
  null,
1930
- 4
1930
+ 2
1931
1931
  )
1932
1932
  }
1933
1933
 
@@ -597,7 +597,7 @@ export default prettierConfigNdx
597
597
  private async updateTsconfigFile() {
598
598
  await this.writeFile(
599
599
  this.tsconfigPath,
600
- JSON.stringify(this.updatedTsconfig, null, 4) + '\n',
600
+ JSON.stringify(this.updatedTsconfig, null, 2) + '\n',
601
601
  {
602
602
  encoding: 'utf-8',
603
603
  }
@@ -730,7 +730,7 @@ export default prettierConfigNdx
730
730
  inputs: [...this.originalTasksJson.inputs, this.requiredInput],
731
731
  },
732
732
  null,
733
- 4
733
+ 2
734
734
  )
735
735
  }
736
736