Skip to content

Commit

Permalink
[meta] use npmignore --auto instead of files to limit published f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
ljharb committed May 16, 2022
1 parent 7456e18 commit ea3b2a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -23,5 +23,8 @@ sftp-config.json
eslint-remote-tester-results

# Only apps should have lockfiles
yarn.lock
npm-shrinkwrap≥json
package-lock.json
yarn.lock

.npmignore
21 changes: 13 additions & 8 deletions package.json
Expand Up @@ -5,6 +5,7 @@
"description": "React specific linting rules for ESLint",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"lint": "eslint .",
"postlint": "npm run type-check",
"pretest": "npm run lint",
Expand All @@ -15,12 +16,6 @@
"generate-list-of-rules": "md-magic --path README.md",
"generate-list-of-rules:check": "npm run generate-list-of-rules && git diff --exit-code README.md"
},
"files": [
"LICENSE",
"README.md",
"index.js",
"lib"
],
"repository": {
"type": "git",
"url": "https://github.com/jsx-eslint/eslint-plugin-react"
Expand Down Expand Up @@ -68,6 +63,7 @@
"ls-engines": "^0.6.6",
"markdown-magic": "^2.6.0",
"mocha": "^5.2.0",
"npmignore": "^0.3.0",
"sinon": "^7.5.0",
"typescript": "^3.9.9",
"typescript-eslint-parser": "^20.1.1"
Expand All @@ -85,9 +81,18 @@
"react"
],
"license": "MIT",
"greenkeeper": {
"publishConfig": {
"ignore": [
"semver"
".github/",
"!lib",
"docs/",
"test/",
"tests/",
"*.md",
"*.config.js",
".eslintrc",
".editorconfig",
"tsconfig.json"
]
}
}

0 comments on commit ea3b2a3

Please sign in to comment.