Skip to content

Commit

Permalink
Merge pull request #736 from wheresrhys/rhys/typescript-imports
Browse files Browse the repository at this point in the history
fix: change module system declarations to avoid top level type: module
  • Loading branch information
wheresrhys authored Jul 23, 2024
2 parents f64bfd7 + 7bdf817 commit 6dfce3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetch-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"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",
"import": "./src/index.js",
"require": "./dist/commonjs.js"
},
"types": "./types/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/wheresrhys/fetch-mock.git",
Expand Down
1 change: 1 addition & 0 deletions packages/fetch-mock/src/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "module"}

0 comments on commit 6dfce3f

Please sign in to comment.