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