testeranto 0.219.6 → 0.219.8

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.
@@ -13,21 +13,21 @@ import esbuild from "esbuild";
13
13
  var absoluteBundlesDir = (c) => {
14
14
  return "./testeranto/bundles/allTests/node/";
15
15
  };
16
- var esbuild_default = (config, testName2) => {
17
- console.log(config);
16
+ var esbuild_default = (projectConfig, testName2) => {
17
+ console.log("mark77", projectConfig);
18
18
  let entrypoints = [];
19
- if (config.node?.tests) {
20
- entrypoints = Object.keys(config.node.tests);
19
+ if (projectConfig.node?.tests) {
20
+ entrypoints = Object.keys(projectConfig.node.tests);
21
21
  } else {
22
- throw "config.node.tests should exist";
22
+ throw "projectConfig.node.tests should exist";
23
23
  }
24
24
  const { inputFilesPluginFactory, register } = inputFilesPlugin_default(
25
25
  "node",
26
26
  testName2
27
27
  );
28
28
  return {
29
- ...esbuildConfigs_default(config),
30
- outdir: absoluteBundlesDir(config),
29
+ ...esbuildConfigs_default(projectConfig),
30
+ outdir: absoluteBundlesDir(projectConfig),
31
31
  outbase: ".",
32
32
  // Preserve directory structure relative to outdir
33
33
  metafile: true,
@@ -48,15 +48,15 @@ var esbuild_default = (config, testName2) => {
48
48
  featuresPlugin_default,
49
49
  inputFilesPluginFactory,
50
50
  rebuildPlugin_default("node"),
51
- ...config.node?.plugins?.map((p) => p(register, entrypoints)) || []
51
+ ...projectConfig.node?.plugins?.map((p) => p(register, entrypoints)) || []
52
52
  ]
53
53
  };
54
54
  };
55
55
 
56
56
  // src/server/runtimes/node/node.ts
57
- var configFilePath = process.argv[2];
57
+ var nodeConfig = process.argv[2];
58
58
  var testName = process.argv[3] || "allTests";
59
- console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
59
+ console.log(`[NODE BUILDER] nodeConfig: ${nodeConfig}`);
60
60
  async function startBundling(config) {
61
61
  console.log(`[NODE BUILDER] is now bundling: ${testName}`);
62
62
  const n = esbuild_default(config, testName);
@@ -69,10 +69,10 @@ async function startBundling(config) {
69
69
  }
70
70
  async function main() {
71
71
  try {
72
- const config = (await import(configFilePath)).default;
72
+ const config = (await import(nodeConfig)).default;
73
73
  await startBundling(config);
74
74
  } catch (error) {
75
- console.error("NODE BUILDER: Error importing config:", configFilePath, error);
75
+ console.error("NODE BUILDER: Error importing config:", nodeConfig, error);
76
76
  console.error(error);
77
77
  process.exit(1);
78
78
  }
@@ -1,4 +1,4 @@
1
1
  import { BuildOptions } from "esbuild";
2
2
  import { ITestconfig } from "../../../Types.js";
3
- declare const _default: (config: ITestconfig, testName: string) => BuildOptions;
3
+ declare const _default: (projectConfig: ITestconfig, testName: string) => BuildOptions;
4
4
  export default _default;