@crossdelta/infrastructure 0.2.4 → 0.2.5
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/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -108,8 +108,9 @@ function discoverServices(servicesDir) {
|
|
|
108
108
|
const resolvedDir = import_node_path.isAbsolute(servicesDir) ? servicesDir : import_node_path.resolve(process.cwd(), servicesDir);
|
|
109
109
|
const files = import_node_fs.readdirSync(resolvedDir).filter((file) => file.endsWith(".ts") && file !== "index.ts");
|
|
110
110
|
const configs = files.map((file) => {
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
const filePath = import_node_path.join(resolvedDir, file);
|
|
112
|
+
const module2 = require(filePath);
|
|
113
|
+
return module2.default ?? module2;
|
|
113
114
|
});
|
|
114
115
|
validateNoDuplicatePorts(configs);
|
|
115
116
|
return configs;
|
package/dist/index.js
CHANGED
|
@@ -60,8 +60,9 @@ function discoverServices(servicesDir) {
|
|
|
60
60
|
const resolvedDir = isAbsolute(servicesDir) ? servicesDir : resolve(process.cwd(), servicesDir);
|
|
61
61
|
const files = readdirSync(resolvedDir).filter((file) => file.endsWith(".ts") && file !== "index.ts");
|
|
62
62
|
const configs = files.map((file) => {
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
const filePath = join(resolvedDir, file);
|
|
64
|
+
const module = __require(filePath);
|
|
65
|
+
return module.default ?? module;
|
|
65
66
|
});
|
|
66
67
|
validateNoDuplicatePorts(configs);
|
|
67
68
|
return configs;
|