Skip to content

Commit

Permalink
[meta] ship only the dist
Browse files Browse the repository at this point in the history
This will reduce your footprint from 300K to ~56k.

Here's your current state:

```
$ tree node_modules/qs/
node_modules/qs/
├── CHANGELOG.md
├── LICENSE.md
├── README.md
├── dist
│   └── qs.js
├── lib
│   ├── formats.js
│   ├── index.js
│   ├── parse.js
│   ├── stringify.js
│   └── utils.js
├── package.json
└── test
    ├── empty-keys-cases.js
    ├── parse.js
    ├── stringify.js
    └── utils.js
$ du -h node_modules/qs
116.0K  node_modules/qs/test
52.0K   node_modules/qs/dist
8.0K    node_modules/qs/.github
44.0K   node_modules/qs/lib
300.0K  node_modules/qs
$
```

I see you [do care about your footprint](f09cffc), but you ship your entire repo...
  • Loading branch information
osher committed May 5, 2024
1 parent 29dda21 commit bbc87aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
"name": "qs",
"description": "A querystring parser that supports nesting and arrays, with a depth limit",
"homepage": "https://github.com/ljharb/qs",
"version": "6.12.1",
"version": "6.12.2",
"repository": {
"type": "git",
"url": "https://github.com/ljharb/qs.git"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"main": "lib/index.js",
"files": [
"dist"
],
"main": "dist/qs.js",
"sideEffects": false,
"contributors": [
{
Expand Down

0 comments on commit bbc87aa

Please sign in to comment.