engine7 7.1.4 → 7.1.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/cli.mjs +2 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -579,7 +579,8 @@ engine7 start \u2014 \u542F\u52A8 Engine
|
|
|
579
579
|
process.exit(1);
|
|
580
580
|
}
|
|
581
581
|
const cliPath = path.resolve(process.argv[1]);
|
|
582
|
-
const
|
|
582
|
+
const distDir = path.dirname(cliPath);
|
|
583
|
+
const enginePath = fs.existsSync(path.join(distDir, "main.mjs")) ? path.join(distDir, "main.mjs") : path.join(path.dirname(path.dirname(cliPath)), "lib", "node_modules", "engine7", "dist", "main.mjs");
|
|
583
584
|
console.log(` config: ${configPath2}`);
|
|
584
585
|
console.log(` engine: ${enginePath}`);
|
|
585
586
|
console.log("");
|