From 85219cc6f84551dfb5b2f27694f24e47cd587921 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Mon, 11 Mar 2024 00:28:50 +0100 Subject: [PATCH] Drop exports module field (#2911) --- _internal/package.json | 2 +- immutable/package.json | 2 +- infinite/package.json | 2 +- mutation/package.json | 2 +- package.json | 8 +------- subscription/package.json | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/_internal/package.json b/_internal/package.json index 701e9f74d..139552eb8 100644 --- a/_internal/package.json +++ b/_internal/package.json @@ -1,6 +1,6 @@ { "main": "../dist/_internal/index.js", - "module": "../dist/_internal/index.esm.js", + "module": "../dist/_internal/index.mjs", "types": "../dist/_internal/index.d.ts", "private": true } diff --git a/immutable/package.json b/immutable/package.json index f135ab3eb..99eb3a35c 100644 --- a/immutable/package.json +++ b/immutable/package.json @@ -1,6 +1,6 @@ { "main": "../dist/immutable/index.js", - "module": "../dist/immutable/index.esm.js", + "module": "../dist/immutable/index.mjs", "types": "../dist/immutable/index.d.ts", "private": true } diff --git a/infinite/package.json b/infinite/package.json index fcede2f5c..92cbe5403 100644 --- a/infinite/package.json +++ b/infinite/package.json @@ -1,6 +1,6 @@ { "main": "../dist/infinite/index.js", - "module": "../dist/infinite/index.esm.js", + "module": "../dist/infinite/index.mjs", "types": "../dist/infinite/index.d.ts", "private": true } diff --git a/mutation/package.json b/mutation/package.json index 8d59d1a41..90baf34df 100644 --- a/mutation/package.json +++ b/mutation/package.json @@ -1,6 +1,6 @@ { "main": "../dist/mutation/index.js", - "module": "../dist/mutation/index.esm.js", + "module": "../dist/mutation/index.mjs", "types": "../dist/mutation/index.d.ts", "private": true } diff --git a/package.json b/package.json index c1304a903..73f9d0c2c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "packageManager": "pnpm@8.4.0", "main": "./dist/core/index.js", - "module": "./dist/core/index.esm.js", + "module": "./dist/core/index.mjs", "types": "./dist/core/index.d.ts", "sideEffects": false, "exports": { @@ -23,7 +23,6 @@ "types": "./dist/core/index.d.mts", "default": "./dist/core/index.mjs" }, - "module": "./dist/core/index.esm.js", "require": { "types": "./dist/core/index.d.ts", "default": "./dist/core/index.js" @@ -35,7 +34,6 @@ "types": "./dist/infinite/index.d.mts", "default": "./dist/infinite/index.mjs" }, - "module": "./dist/infinite/index.esm.js", "require": { "types": "./dist/infinite/index.d.ts", "default": "./dist/infinite/index.js" @@ -46,7 +44,6 @@ "types": "./dist/immutable/index.d.mts", "default": "./dist/immutable/index.mjs" }, - "module": "./dist/immutable/index.esm.js", "require": { "types": "./dist/immutable/index.d.ts", "default": "./dist/immutable/index.js" @@ -57,7 +54,6 @@ "types": "./dist/subscription/index.d.mts", "default": "./dist/subscription/index.mjs" }, - "module": "./dist/subscription/index.esm.js", "require": { "types": "./dist/subscription/index.d.ts", "default": "./dist/subscription/index.js" @@ -68,7 +64,6 @@ "types": "./dist/mutation/index.d.mts", "default": "./dist/mutation/index.mjs" }, - "module": "./dist/mutation/index.esm.js", "require": { "types": "./dist/mutation/index.d.ts", "default": "./dist/mutation/index.js" @@ -80,7 +75,6 @@ "types": "./dist/_internal/index.d.mts", "default": "./dist/_internal/index.mjs" }, - "module": "./dist/_internal/index.esm.js", "require": { "types": "./dist/_internal/index.d.ts", "default": "./dist/_internal/index.js" diff --git a/subscription/package.json b/subscription/package.json index db2206fd2..5a570237f 100644 --- a/subscription/package.json +++ b/subscription/package.json @@ -1,6 +1,6 @@ { "main": "../dist/subscription/index.js", - "module": "../dist/subscription/index.esm.js", + "module": "../dist/subscription/index.mjs", "types": "../dist/subscription/index.d.ts", "private": true }