diff --git a/.prettierignore b/.prettierignore index 4470d2b..b38f7d9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,7 +2,7 @@ node_modules /ignore /coverage -# /dist +/dist /dev /tsconfig.json diff --git a/build/webpack.config.js b/build/webpack.config.js index 49b47fa..ecab5a6 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -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 }) ]; diff --git a/package.json b/package.json index b5958db..f6f8b27 100644 --- a/package.json +++ b/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" } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 56bcc3d..6474b4c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }