@mercurjs/dashboard-sdk 2.0.0-canary.77 → 2.0.0-canary.79
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/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -691,7 +691,7 @@ function resolvePluginExtensions(plugins, configDir) {
|
|
|
691
691
|
const pluginRoot = resolvePluginRoot(resolve, configDir, nodeModulesRoot);
|
|
692
692
|
if (!pluginRoot) continue;
|
|
693
693
|
for (const appType of appTypes) {
|
|
694
|
-
const extFile = import_path5.default.join(pluginRoot, ".medusa/server/src", appType, "index.
|
|
694
|
+
const extFile = import_path5.default.join(pluginRoot, ".medusa/server/src", appType, "index.mjs");
|
|
695
695
|
if (import_fs4.default.existsSync(extFile)) {
|
|
696
696
|
extensions.push(extFile);
|
|
697
697
|
}
|
|
@@ -715,7 +715,7 @@ async function loadMedusaConfig(medusaConfigPath, root) {
|
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
const plugins = medusaConfig?.plugins ?? [];
|
|
718
|
+
const plugins = medusaConfig?.plugins?.filter((plugin) => plugin.resolve !== "@medusajs/draft-order") ?? [];
|
|
719
719
|
const pluginExtensions = resolvePluginExtensions(plugins, configDir);
|
|
720
720
|
return { base, pluginExtensions };
|
|
721
721
|
} catch {
|