Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compatibility with TypeScript and ESM
Fixes #2051
  • Loading branch information
sindresorhus committed Sep 27, 2022
1 parent 3e9d3af commit 3b3ea67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -47,8 +47,8 @@
"dependencies": {
"@sindresorhus/is": "^5.2.0",
"@szmarczak/http-timer": "^5.0.1",
"cacheable-lookup": "^6.0.4",
"cacheable-request": "^10.1.2",
"cacheable-lookup": "^7.0.0",
"cacheable-request": "^10.2.1",
"decompress-response": "^6.0.0",
"form-data-encoder": "^2.1.2",
"get-stream": "^6.0.1",
Expand All @@ -63,7 +63,7 @@
"@sinonjs/fake-timers": "^9.1.1",
"@types/benchmark": "^2.1.2",
"@types/express": "^4.17.13",
"@types/node": "^18.7.13",
"@types/node": "^18.7.23",
"@types/pem": "^1.9.6",
"@types/pify": "^5.0.1",
"@types/readable-stream": "^2.3.13",
Expand All @@ -90,7 +90,7 @@
"p-event": "^5.0.1",
"pem": "^1.14.6",
"pify": "^6.0.0",
"readable-stream": "^4.0.0",
"readable-stream": "^4.2.0",
"request": "^2.88.2",
"sinon": "^14.0.0",
"slow-stream": "0.0.4",
Expand All @@ -99,7 +99,7 @@
"to-readable-stream": "^3.0.0",
"tough-cookie": "4.0.0",
"ts-node": "^10.8.2",
"type-fest": "^2.19.0",
"type-fest": "^3.0.0",
"typescript": "~4.8.2",
"xo": "^0.52.2"
},
Expand Down
4 changes: 0 additions & 4 deletions tsconfig.json
Expand Up @@ -6,10 +6,6 @@
"lib": [
"es2020"
],

// TODO: Remove these at some point.
"module": "ES2020",
"moduleResolution": "node",
"noPropertyAccessFromIndexSignature": false,
"isolatedModules": true
},
Expand Down

0 comments on commit 3b3ea67

Please sign in to comment.