diff --git a/packages/next-drupal-query/package.json b/packages/next-drupal-query/package.json index 3919524f..7baeaf1d 100644 --- a/packages/next-drupal-query/package.json +++ b/packages/next-drupal-query/package.json @@ -16,8 +16,8 @@ "url": "https://twitter.com/shadcn" }, "scripts": { - "prepare": "microbundle --no-compress --jsx React.createElement", - "dev": "microbundle watch --no-compress --jsx React.createElement", + "prepare": "microbundle --no-compress --jsx React.createElement --format modern,esm,cjs", + "dev": "microbundle watch --no-compress --jsx React.createElement --format modern,esm,cjs", "test": "jest" }, "keywords": [ diff --git a/packages/next-drupal/package.json b/packages/next-drupal/package.json index add2ee27..4c1f509c 100644 --- a/packages/next-drupal/package.json +++ b/packages/next-drupal/package.json @@ -13,7 +13,7 @@ "src/utils.ts" ], "main": "dist/index.js", - "module": "dist/index.esm.js", + "module": "dist/index.modern.js", "exports": { ".": { "import": { @@ -86,9 +86,9 @@ "url": "https://twitter.com/shadcn" }, "scripts": { - "prepare": "microbundle --no-compress --jsx React.createElement", + "prepare": "microbundle --no-compress --jsx React.createElement --format modern,cjs", "postprepare": "node postBuild.mjs", - "dev": "microbundle watch --no-compress --jsx React.createElement", + "dev": "microbundle watch --no-compress --jsx React.createElement --format modern,cjs", "test": "jest", "prepublishOnly": "yarn prepare" },