Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

chore: v2.0.0-canary.77

vholik4adafe2fe54c
diff --git a/packages/admin/package.json b/packages/admin/package.json
index d26787257..c74be7047 100644
--- a/packages/admin/package.json
+++ b/packages/admin/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/admin",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 3bd08b2d2..95cc29154 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/cli",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/client/package.json b/packages/client/package.json
index 1af9a256c..1c48a11a2 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/client",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.json
index 384f412c8..26e16ed57 100644
--- a/packages/core-plugin/package.json
+++ b/packages/core-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/core-plugin",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.json
index f3b4382b8..a8aec65b0 100644
--- a/packages/dashboard-sdk/package.json
+++ b/packages/dashboard-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-sdk",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-sdk/src/utils.ts b/packages/dashboard-sdk/src/utils.ts
index f2cd33c3d..6b9cd2b3c 100644
--- a/packages/dashboard-sdk/src/utils.ts
+++ b/packages/dashboard-sdk/src/utils.ts
@@ -1,5 +1,4 @@
import type { ParserOptions } from "@babel/parser"
-import { createRequire } from "node:module"
import { traverse } from "./babel"
export function normalizePath(filePath: string): string {
@@ -30,13 +29,9 @@ export function resolveExports(moduleExports: any) {
return moduleExports
}
-const esmRequire = typeof require !== "undefined"
- ? require
- : createRequire(import.meta.url)
-
-export async function getFileExports(filePath: string): Promise<any> {
+export async function getFileExports(path: string): Promise<any> {
const { unregister } = await safeRegister()
- const module = esmRequire(filePath)
+ const module = require(path)
unregister()
return resolveExports(module)
diff --git a/packages/dashboard-sdk/tsup.config.ts b/packages/dashboard-sdk/tsup.config.ts
index acf36670d..fe906dca6 100644
--- a/packages/dashboard-sdk/tsup.config.ts
+++ b/packages/dashboard-sdk/tsup.config.ts
@@ -2,7 +2,7 @@ import { defineConfig } from "tsup"
export default defineConfig({
entry: ["src/index.ts"],
- format: ["cjs", "esm"],
+ format: ["cjs"],
dts: true,
clean: true,
})
diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.json
index 70c274f14..1f7627149 100644
--- a/packages/dashboard-shared/package.json
+++ b/packages/dashboard-shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-shared",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/types/package.json b/packages/types/package.json
index 2b3daaee5..474c64460 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/types",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/vendor/package.json b/packages/vendor/package.json
index 15d4f7acf..8ae77ac04 100644
--- a/packages/vendor/package.json
+++ b/packages/vendor/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/vendor",
- "version": "2.0.0-canary.76",
+ "version": "2.0.0-canary.77",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",