Skip to content

Commit

Permalink
Revert "Merge pull request #250 from yutak23/feature/condetion-export…
Browse files Browse the repository at this point in the history
…-for-type"

This reverts commit 8681aca, reversing
changes made to c3de348.
  • Loading branch information
mindhells committed Nov 16, 2023
1 parent 40d1ed9 commit ae1d151
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
3 changes: 0 additions & 3 deletions fixup
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ cat >lib/esm/package.json <<!EOF
"type": "module"
}
!EOF

cp index.d.ts lib/cjs/
cp index.d.ts lib/esm/
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as axios from 'axios';

export default IAxiosRetry;
export = IAxiosRetry;
export as namespace axiosRetry;
declare const IAxiosRetry: IAxiosRetry.AxiosRetry;

Expand Down
17 changes: 6 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"files": [
"es",
"lib",
"index.cjs"
"index.js",
"index.d.ts"
],
"scripts": {
"lint": "eslint es/**/*.mjs spec/**/*.spec.mjs",
Expand Down Expand Up @@ -58,20 +59,14 @@
"bugs": {
"url": "https://github.com/softonic/axios-retry/issues"
},
"types": "lib/esm/index.d.ts",
"types": "./index.d.ts",
"main": "index.js",
"module": "lib/esm/index.js",
"exports": {
".": {
"import": {
"types": "./lib/esm/index.d.ts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/cjs/index.d.ts",
"default": "./index.js"
},
"default": "./index.js"
"types": "./index.d.ts",
"import": "./lib/esm/index.js",
"require": "./index.js"
},
"./package.json": "./package.json"
}
Expand Down

0 comments on commit ae1d151

Please sign in to comment.