build-raptor 0.135.0 → 0.137.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/build-raptor.js CHANGED
@@ -2880,7 +2880,6 @@ var Step = z4.discriminatedUnion("step", [
2880
2880
  var StepByStep = Step.array();
2881
2881
 
2882
2882
  // modules/build-raptor-core/dist/src/step-by-step-transmitter.js
2883
- import { loadDynamically, loadEsm } from "build-raptor-dynamic-loader";
2884
2883
  import * as fs6 from "fs";
2885
2884
  import * as util2 from "util";
2886
2885
  var StepByStepTransmitter = class {
@@ -2917,13 +2916,7 @@ var StepByStepTransmitter = class {
2917
2916
  this.logger.info(`step by step written to ${this.stepByStepFile}`);
2918
2917
  }
2919
2918
  async dynamicallyLoadProcessor(stepByStepProcessorModuleName, lookFor = "processor") {
2920
- let imported;
2921
- try {
2922
- imported = loadDynamically(stepByStepProcessorModuleName);
2923
- } catch (e) {
2924
- this.logger.info(`Failed to load via loadDynamically so falling back`, e);
2925
- imported = await loadEsm(stepByStepProcessorModuleName);
2926
- }
2919
+ const imported = await import(stepByStepProcessorModuleName);
2927
2920
  const temp = Object.entries(imported).flatMap(([k, v]) => k === lookFor ? [v] : []).find(Boolean);
2928
2921
  if (!temp) {
2929
2922
  throw new Error(`could not find ${lookFor} in module ${stepByStepProcessorModuleName} which exports ${util2.inspect(imported)}`);
package/index.js CHANGED
@@ -2864,7 +2864,6 @@ var Step = z4.discriminatedUnion("step", [
2864
2864
  var StepByStep = Step.array();
2865
2865
 
2866
2866
  // modules/build-raptor-core/dist/src/step-by-step-transmitter.js
2867
- import { loadDynamically, loadEsm } from "build-raptor-dynamic-loader";
2868
2867
  import * as fs6 from "fs";
2869
2868
  import * as util2 from "util";
2870
2869
  var StepByStepTransmitter = class {
@@ -2901,13 +2900,7 @@ var StepByStepTransmitter = class {
2901
2900
  this.logger.info(`step by step written to ${this.stepByStepFile}`);
2902
2901
  }
2903
2902
  async dynamicallyLoadProcessor(stepByStepProcessorModuleName, lookFor = "processor") {
2904
- let imported;
2905
- try {
2906
- imported = loadDynamically(stepByStepProcessorModuleName);
2907
- } catch (e) {
2908
- this.logger.info(`Failed to load via loadDynamically so falling back`, e);
2909
- imported = await loadEsm(stepByStepProcessorModuleName);
2910
- }
2903
+ const imported = await import(stepByStepProcessorModuleName);
2911
2904
  const temp = Object.entries(imported).flatMap(([k, v]) => k === lookFor ? [v] : []).find(Boolean);
2912
2905
  if (!temp) {
2913
2906
  throw new Error(`could not find ${lookFor} in module ${stepByStepProcessorModuleName} which exports ${util2.inspect(imported)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-raptor",
3
- "version": "0.135.0",
3
+ "version": "0.137.0",
4
4
  "description": "CLI for super-fast monorepo builds",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,10 +14,10 @@
14
14
  "dependencies": {
15
15
  "@aws-sdk/client-s3": "^3.623.0",
16
16
  "build-raptor-dynamic-loader": "^1.0.1",
17
- "build-raptor-jest-reporter": "0.135.0",
17
+ "build-raptor-jest-reporter": "0.137.0",
18
18
  "escape-string-regexp": "^4.0.0",
19
19
  "execa": "^5.0.0",
20
- "fs-extra": "^9.0.0",
20
+ "fs-extra": "^11.3.3",
21
21
  "ignore": "^5.1.9",
22
22
  "jsonc-parser": "^3.3.1",
23
23
  "logform": "^2.3.0",