fix(cli): resolve runtime config import absolutely
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/cli",
|
||||
"version": "0.8.52",
|
||||
"version": "0.8.53",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
||||
@@ -707,7 +707,7 @@ applyAuthzManifestEarly([${authzSetupEntries}]);
|
||||
// process runs in a different process, so its globals cannot serve the
|
||||
// generated production server.
|
||||
const runtimeConfigPath = ["wrnexus.config.ts", "wrnexus.config.js", "wrnexus.config.mjs"]
|
||||
.map((name) => join(appRoot, name))
|
||||
.map((name) => resolve(appRoot, name))
|
||||
.find(existsSync);
|
||||
if (runtimeConfigPath) imports.push(`import ${JSON.stringify(fwd(runtimeConfigPath))};`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user