From d4f785ac795cf178ec37603c3e0d52bb2ed0c181 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Wed, 18 Oct 2023 01:46:37 +0800 Subject: [PATCH] chore: remove legacy umd and esm JavaScript builds --- packages/next-drupal-query/package.json | 4 ++-- packages/next-drupal/package.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 61705138..a8a535ba 100644 --- a/packages/next-drupal/package.json +++ b/packages/next-drupal/package.json @@ -5,7 +5,7 @@ "sideEffects": false, "source": "src/index.ts", "main": "dist/index.js", - "module": "dist/index.esm.js", + "module": "dist/index.modern.js", "types": "dist/index.d.ts", "license": "MIT", "publishConfig": { @@ -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,cjs", + "dev": "microbundle watch --no-compress --jsx React.createElement --format modern,cjs", "test": "jest", "prepublishOnly": "yarn prepare" },