mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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:
-10
@@ -1,10 +0,0 @@
|
|||||||
**/*
|
|
||||||
!/dist/**
|
|
||||||
!/lib/**
|
|
||||||
!index.js
|
|
||||||
!index.d.ts
|
|
||||||
!index.d.cts
|
|
||||||
!CHANGELOG.md
|
|
||||||
!LICENSE
|
|
||||||
!MIGRATION_GUIDE.md
|
|
||||||
!README.md
|
|
||||||
@@ -97,6 +97,22 @@
|
|||||||
"url": "https://github.com/axios/axios/issues"
|
"url": "https://github.com/axios/axios/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://axios-http.com",
|
"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": {
|
"scripts": {
|
||||||
"build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
|
"build": "gulp clear && cross-env NODE_ENV=production rollup -c -m",
|
||||||
"version": "npm run build && git add package.json",
|
"version": "npm run build && git add package.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user