Skip to content

Commit e538c8a

Browse files
committed
[meta] skip deleted files in eclint check
1 parent d6e0871 commit e538c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"prepublishOnly": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ ||:",
1818
"prepublish": "not-in-publish || npm run prepublishOnly",
19-
"prelint": "eclint check $(git ls-files | grep -vE 'node_modules|\\.git')",
19+
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
2020
"lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc .",
2121
"pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
2222
"tests-only": "tape test/*.js",

0 commit comments

Comments
 (0)