@salesforce/core 7.3.12 → 7.4.0

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.
package/lib/sfProject.js CHANGED
@@ -588,7 +588,9 @@ class SfProject {
588
588
  */
589
589
  getDefaultPackage() {
590
590
  if (!this.hasPackages()) {
591
- throw new sfError_1.SfError('The sfdx-project.json does not have any packageDirectories defined.');
591
+ throw new sfError_1.SfError('The sfdx-project.json does not have any packageDirectories defined.', 'NoPackageDirectories', [
592
+ `Check ${this.getPath()} for packageDirectories.`,
593
+ ]);
592
594
  }
593
595
  const defaultPackage = this.findPackage((packageDir) => packageDir.default === true);
594
596
  return defaultPackage ?? this.getPackageDirectories()[0];
package/lib/testSetup.js CHANGED
@@ -532,6 +532,8 @@ const restoreContext = (testContext) => {
532
532
  testContext.configStubs = {};
533
533
  // Give each test run a clean StateAggregator
534
534
  stateAggregator_1.StateAggregator.clearInstance();
535
+ // @ts-expect-error accessing a private property
536
+ sfProject_1.SfProject.instances.clear();
535
537
  // Allow each test to have their own config aggregator
536
538
  // @ts-ignore clear for testing.
537
539
  delete configAggregator_1.ConfigAggregator.instance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "7.3.12",
3
+ "version": "7.4.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  "benchmark": "^2.1.4",
84
84
  "chai-string": "^1.5.0",
85
85
  "ts-node": "^10.9.2",
86
- "ts-patch": "^3.1.1",
86
+ "ts-patch": "^3.2.0",
87
87
  "typescript": "^5.4.5"
88
88
  },
89
89
  "repository": {