2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

build: shrink publish ~40% by switching to a files allowlist and dropping unused source maps (#10939)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Jamie Magee
2026-05-24 04:28:06 -07:00
committed by GitHub
parent 593fddc8ae
commit bc8ca9fdd2
2 changed files with 16 additions and 10 deletions
-10
View File
@@ -1,10 +0,0 @@
**/*
!/dist/**
!/lib/**
!index.js
!index.d.ts
!index.d.cts
!CHANGELOG.md
!LICENSE
!MIGRATION_GUIDE.md
!README.md
+16
View File
@@ -97,6 +97,22 @@
"url": "https://github.com/axios/axios/issues"
},
"homepage": "https://axios-http.com",
"files": [
"index.js",
"index.d.ts",
"index.d.cts",
"CHANGELOG.md",
"MIGRATION_GUIDE.md",
"lib/",
"dist/axios.js",
"dist/axios.min.js",
"dist/axios.min.js.map",
"dist/esm/axios.js",
"dist/esm/axios.min.js",
"dist/esm/axios.min.js.map",
"dist/browser/axios.cjs",
"dist/node/axios.cjs"
],
"scripts": {
"build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
"version": "npm run build && git add package.json",