Skip to content

Commit f28d051

Browse files
committed
Move dev tool config from package.json to files.
This reduces the size of the published package.json file.
1 parent 483d7ad commit f28d051

File tree

8 files changed

+26
-33
lines changed

8 files changed

+26
-33
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["env"]
3+
}

.huskyrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged"
4+
}
5+
}

.lintstagedrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.js": "eslint",
3+
"*.{json,yml,md}": "prettier -l"
4+
}

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"proseWrap": "never",
3+
"singleQuote": true,
4+
"semi": false
5+
}

.size-limit.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"limit": "1 KB",
4+
"ignore": ["apollo-link", "apollo-link-http-common"]
5+
}
6+
]

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Patch
66

77
- Updated dependencies.
8+
- Reduced the size of the published `package.json` by moving dev tool config to files. This also prevents editor extensions such as Prettier and ESLint from detecting config and attempting to operate when opening package files installed in `node_modules`.
89
- Add tips for React Native gotchas, via [#135](https://github.com/jaydenseric/apollo-upload-client/pull/135).
910

1011
## 10.0.0

package.json

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,5 @@
6767
"test:prettier": "prettier '**/*.{json,yml,md}' -l",
6868
"test:size": "size-limit",
6969
"prepublishOnly": "npm run prepare && npm test"
70-
},
71-
"husky": {
72-
"hooks": {
73-
"pre-commit": "lint-staged"
74-
}
75-
},
76-
"lint-staged": {
77-
"*.js": "eslint",
78-
"*.{json,yml,md}": "prettier -l"
79-
},
80-
"eslintIgnore": [
81-
"lib"
82-
],
83-
"eslintConfig": {
84-
"extends": [
85-
"env"
86-
]
87-
},
88-
"prettier": {
89-
"proseWrap": "never",
90-
"singleQuote": true,
91-
"semi": false
92-
},
93-
"size-limit": [
94-
{
95-
"name": "CJS",
96-
"limit": "1 KB",
97-
"ignore": [
98-
"apollo-link",
99-
"apollo-link-http-common"
100-
]
101-
}
102-
]
70+
}
10371
}

0 commit comments

Comments
 (0)