bm2 1.0.30 → 1.0.31
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/package.json +1 -1
- package/src/index.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bm2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "A blazing-fast, full-featured process manager built entirely on Bun native APIs. The modern PM2 replacement — zero Node.js dependencies, pure Bun performance.",
|
|
5
5
|
"main": "src/api.ts",
|
|
6
6
|
"module": "src/api.ts",
|
package/src/index.ts
CHANGED
|
@@ -153,12 +153,12 @@ async function loadEcosystemConfig(filePath: string): Promise<EcosystemConfig> {
|
|
|
153
153
|
let config;
|
|
154
154
|
|
|
155
155
|
if (ext === ".json") {
|
|
156
|
-
config = await Bun.file(abs).json() as EcosystemConfig;
|
|
156
|
+
config = (await Bun.file(abs).json()) as EcosystemConfig;
|
|
157
|
+
} else {
|
|
158
|
+
// .ts, .js, .mjs — dynamic import
|
|
159
|
+
const mod = await import(abs);
|
|
160
|
+
config = (mod.default || mod) as EcosystemConfig;
|
|
157
161
|
}
|
|
158
|
-
|
|
159
|
-
// .ts, .js, .mjs — dynamic import
|
|
160
|
-
const mod = await import(abs);
|
|
161
|
-
config = (mod.default || mod) as EcosystemConfig;
|
|
162
162
|
|
|
163
163
|
const cwd = path.dirname(abs);
|
|
164
164
|
|