From 60246ae447eb3838f48e2aa2c10d757f61f8a850 Mon Sep 17 00:00:00 2001 From: jdecroock Date: Sun, 22 Mar 2020 00:33:21 +0100 Subject: [PATCH] fix prepare script --- exchanges/suspense/package.json | 2 +- scripts/prepare/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exchanges/suspense/package.json b/exchanges/suspense/package.json index 6c9f5d45fc..c61d4b9cdb 100644 --- a/exchanges/suspense/package.json +++ b/exchanges/suspense/package.json @@ -20,7 +20,7 @@ "suspense" ], "main": "dist/urql-exchange-suspense.js", - "module": "dist/urql-exchange-suspense.mjs", + "module": "dist/urql-exchange-suspense.es.js", "types": "dist/types/index.d.ts", "source": "src/index.ts", "exports": { diff --git a/scripts/prepare/index.js b/scripts/prepare/index.js index d2dafe7836..992b505de0 100755 --- a/scripts/prepare/index.js +++ b/scripts/prepare/index.js @@ -42,7 +42,7 @@ if (hasReact) { invariant( path.normalize(pkg.module) === `dist/${name}.es.js`, - 'package.json:main path must end in `.es.js` for packages depending on React.' + 'package.json:module path must end in `.es.js` for packages depending on React.' ); } else { invariant(