From ed001407792a12b5fec94013aafccbb4bbb63a87 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Tue, 23 Jul 2024 11:54:16 +0100 Subject: [PATCH] fix: change module system declaratuions to avoid top level type: module --- packages/fetch-mock/package.json | 2 +- packages/fetch-mock/src/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 packages/fetch-mock/src/package.json diff --git a/packages/fetch-mock/package.json b/packages/fetch-mock/package.json index 78ee907f..786091a7 100644 --- a/packages/fetch-mock/package.json +++ b/packages/fetch-mock/package.json @@ -3,6 +3,7 @@ "version": "10.1.0", "description": "Mock http requests made using fetch (or isomorphic-fetch)", "main": "./dist/commonjs.js", + "module": "./src/index.js", "exports": { "types": "./types/index.d.ts", "browser": "./src/index.js", @@ -10,7 +11,6 @@ "require": "./dist/commonjs.js" }, "types": "./types/index.d.ts", - "type": "module", "repository": { "type": "git", "url": "git+https://github.com/wheresrhys/fetch-mock.git", diff --git a/packages/fetch-mock/src/package.json b/packages/fetch-mock/src/package.json new file mode 100644 index 00000000..6990891f --- /dev/null +++ b/packages/fetch-mock/src/package.json @@ -0,0 +1 @@ +{"type": "module"}