resora 1.0.0 → 1.0.1
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -974,12 +974,12 @@ const resolveAndApply = (imported) => {
|
|
|
974
974
|
* @returns
|
|
975
975
|
*/
|
|
976
976
|
const loadRuntimeConfigSync = () => {
|
|
977
|
-
const
|
|
977
|
+
const req = (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
978
978
|
const syncConfigPaths = [path.default.join(process.cwd(), "resora.config.cjs")];
|
|
979
979
|
for (const configPath of syncConfigPaths) {
|
|
980
980
|
if (!(0, fs.existsSync)(configPath)) continue;
|
|
981
981
|
try {
|
|
982
|
-
resolveAndApply(
|
|
982
|
+
resolveAndApply(req(configPath));
|
|
983
983
|
return true;
|
|
984
984
|
} catch {
|
|
985
985
|
continue;
|
package/dist/index.mjs
CHANGED
|
@@ -945,12 +945,12 @@ const resolveAndApply = (imported) => {
|
|
|
945
945
|
* @returns
|
|
946
946
|
*/
|
|
947
947
|
const loadRuntimeConfigSync = () => {
|
|
948
|
-
const
|
|
948
|
+
const req = createRequire(import.meta.url);
|
|
949
949
|
const syncConfigPaths = [path.join(process.cwd(), "resora.config.cjs")];
|
|
950
950
|
for (const configPath of syncConfigPaths) {
|
|
951
951
|
if (!existsSync(configPath)) continue;
|
|
952
952
|
try {
|
|
953
|
-
resolveAndApply(
|
|
953
|
+
resolveAndApply(req(configPath));
|
|
954
954
|
return true;
|
|
955
955
|
} catch {
|
|
956
956
|
continue;
|
package/package.json
CHANGED