mirror of
https://github.com/arthurfiorette/axios-cache-interceptor.git
synced 2025-12-08 17:36:16 +00:00
fix: types not available on esm packaging #430
This commit is contained in:
parent
7d82c5a46f
commit
00fdff0158
@ -2,7 +2,7 @@ node_modules
|
||||
|
||||
/ignore
|
||||
/coverage
|
||||
# /dist
|
||||
/dist
|
||||
/dev
|
||||
/tsconfig.json
|
||||
|
||||
|
||||
@ -116,15 +116,10 @@ module.exports = [
|
||||
|
||||
// Browser Bundle
|
||||
config({
|
||||
esTarget: 'es5', // Use ES5 for UMD builds to support more browsers
|
||||
// Uses ES5 for UMD builds to support more browsers
|
||||
esTarget: 'es5',
|
||||
output: 'dist/index.bundle.js',
|
||||
libraryType: 'umd',
|
||||
libraryName: 'AxiosCacheInterceptor'
|
||||
}),
|
||||
config({
|
||||
output: 'dev/index.bundle.js',
|
||||
libraryType: 'umd',
|
||||
libraryName: 'AxiosCacheInterceptor',
|
||||
devBuild: true
|
||||
})
|
||||
];
|
||||
|
||||
14
package.json
14
package.json
@ -7,16 +7,18 @@
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.mjs",
|
||||
"exports": {
|
||||
"./*": "./*",
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.cjs"
|
||||
"require": "./dist/index.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./dev": {
|
||||
"import": "./dev/index.mjs",
|
||||
"require": "./dev/index.cjs"
|
||||
}
|
||||
"require": "./dev/index.cjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
"./*": "./*"
|
||||
},
|
||||
"jsdelivr": "./dist/index.bundle.js",
|
||||
"unpkg": "./dist/index.bundle.js",
|
||||
@ -85,4 +87,4 @@
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -97,5 +97,5 @@
|
||||
"skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
||||
},
|
||||
"include": ["src", "test", "examples", "docs", "build","vitepress-docs"]
|
||||
"include": ["src", "test", "examples", "docs", "build"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user