Skip to content

Commit 4dae083

Browse files
chore: prefix all nx package scripts with npx (#7988)
1 parent 14f3ff0 commit 4dae083

File tree

18 files changed

+40
-40
lines changed

18 files changed

+40
-40
lines changed

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@
2323
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
2424
},
2525
"scripts": {
26-
"build": "nx run-many --target=build --parallel --exclude website --exclude website-eslint",
26+
"build": "npx nx run-many --target=build --parallel --exclude website --exclude website-eslint",
2727
"check-clean-workspace-after-install": "git diff --quiet --exit-code",
28-
"check-configs": "nx run-many --target=check-configs --parallel",
29-
"check-docs": "nx run-many --target=check-docs --parallel",
28+
"check-configs": "npx nx run-many --target=check-configs --parallel",
29+
"check-docs": "npx nx run-many --target=check-docs --parallel",
3030
"check-format": "prettier --check .",
3131
"check-spelling": "cspell --config=.cspell.json \"**/*.{md,mdx,ts,mts,cts,js,cjs,mjs,tsx,jsx}\" --no-progress --show-context --show-suggestions",
3232
"clean": "lerna clean -y && nx run-many --target=clean",
3333
"format": "prettier --write .",
34-
"generate-breaking-changes": "nx run eslint-plugin:generate-breaking-changes",
35-
"generate-configs": "nx run eslint-plugin:generate:configs",
36-
"generate-contributors": "nx run repo-tools:generate-contributors",
37-
"generate-sponsors": "nx run repo-tools:generate-sponsors",
38-
"generate-website-dts": "nx run website:generate-website-dts",
39-
"generate-lib": "nx run repo-tools:generate-lib",
34+
"generate-breaking-changes": "npx nx run eslint-plugin:generate-breaking-changes",
35+
"generate-configs": "npx nx run eslint-plugin:generate:configs",
36+
"generate-contributors": "npx nx run repo-tools:generate-contributors",
37+
"generate-sponsors": "npx nx run repo-tools:generate-sponsors",
38+
"generate-website-dts": "npx nx run website:generate-website-dts",
39+
"generate-lib": "npx nx run repo-tools:generate-lib",
4040
"lint-fix": "yarn lint --fix",
4141
"lint-markdown-fix": "yarn lint-markdown --fix",
4242
"lint-markdown": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
43-
"lint": "nx run-many --target=lint --parallel",
44-
"postinstall": "nx run repo-tools:postinstall-script",
43+
"lint": "npx nx run-many --target=lint --parallel",
44+
"postinstall": "npx nx run repo-tools:postinstall-script",
4545
"pre-commit": "yarn lint-staged",
46-
"start": "nx run website:start",
47-
"test": "nx run-many --target=test --parallel --exclude integration-tests --exclude website --exclude website-eslint",
48-
"test-integration": "nx run integration-tests:test",
49-
"typecheck": "nx run-many --target=typecheck --parallel"
46+
"start": "npx nx run website:start",
47+
"test": "npx nx run-many --target=test --parallel --exclude integration-tests --exclude website --exclude website-eslint",
48+
"test-integration": "npx nx run integration-tests:test",
49+
"typecheck": "npx nx run-many --target=typecheck --parallel"
5050
},
5151
"engines": {
5252
"node": "^16.0.0 || >=18.0.0"

packages/ast-spec/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"postclean": "rimraf dist && rimraf coverage",
3535
"clean-fixtures": "rimraf -g \"./src/**/fixtures/**/snapshots\"",
3636
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
37-
"lint": "nx lint",
37+
"lint": "npx nx lint",
3838
"test": "jest",
3939
"typecheck": "tsc -p tsconfig.json --noEmit"
4040
},

packages/eslint-plugin-internal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"clean": "tsc -b tsconfig.build.json --clean",
99
"postclean": "rimraf dist && rimraf coverage",
1010
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
11-
"lint": "nx lint",
11+
"lint": "npx nx lint",
1212
"test": "jest --coverage",
1313
"typecheck": "tsc -p tsconfig.json --noEmit"
1414
},

packages/eslint-plugin-tslint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"clean": "tsc -b tsconfig.build.json --clean",
4242
"postclean": "rimraf dist && rimraf coverage",
4343
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
44-
"lint": "nx lint",
44+
"lint": "npx nx lint",
4545
"test": "jest --coverage",
4646
"typecheck": "tsc -p tsconfig.json --noEmit"
4747
},

packages/eslint-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
5151
"generate:breaking-changes": "yarn tsx tools/generate-breaking-changes.mts",
5252
"generate:configs": "yarn tsx tools/generate-configs.ts",
53-
"lint": "nx lint",
53+
"lint": "npx nx lint",
5454
"test": "jest --coverage --logHeapUsage",
5555
"test-single": "jest --no-coverage",
5656
"typecheck": "tsc -p tsconfig.json --noEmit"

packages/integration-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
7-
"lint": "nx lint",
7+
"lint": "npx nx lint",
88
"test": "jest --no-coverage",
99
"typecheck": "tsc -p tsconfig.json --noEmit"
1010
},

packages/parser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"clean": "tsc -b tsconfig.build.json --clean",
4444
"postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage",
4545
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
46-
"lint": "nx lint",
46+
"lint": "npx nx lint",
4747
"test": "jest --coverage",
4848
"typecheck": "tsc -p tsconfig.json --noEmit"
4949
},

packages/repo-tools/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"generate-contributors": "tsx ./src/generate-contributors.ts",
99
"generate-sponsors": "tsx ./src/generate-sponsors.ts",
1010
"generate-lib": "tsx ./src/generate-lib.ts",
11-
"lint": "nx lint",
11+
"lint": "npx nx lint",
1212
"postinstall-script": "tsx ./src/postinstall.mts",
1313
"test": "jest --coverage",
1414
"typecheck": "tsc -p tsconfig.json --noEmit"

packages/rule-schema-to-typescript-types/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
2828
"generate-contributors": "tsx ./src/generate-contributors.ts",
2929
"generate-sponsors": "tsx ./src/generate-sponsors.ts",
30-
"lint": "nx lint",
30+
"lint": "npx nx lint",
3131
"postinstall-script": "tsx ./src/postinstall.ts",
3232
"test": "jest --coverage",
3333
"typecheck": "tsc -p tsconfig.json --noEmit"

packages/rule-tester/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"clean": "tsc -b tsconfig.build.json --clean",
4040
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
4141
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
42-
"lint": "nx lint",
42+
"lint": "npx nx lint",
4343
"pretest-eslint-base": "tsc -b tsconfig.build.json",
4444
"test-eslint-base": "mocha --require source-map-support/register ./tests/eslint-base/eslint-base.test.js",
4545
"test": "jest --coverage",

packages/scope-manager/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"estree"
3535
],
3636
"scripts": {
37-
"build": "nx build",
38-
"clean": "nx clean",
39-
"clean-fixtures": "nx clean-fixtures",
37+
"build": "npx nx build",
38+
"clean": "npx nx clean",
39+
"clean-fixtures": "npx nx clean-fixtures",
4040
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
41-
"generate-lib": "nx generate-lib",
42-
"lint": "nx lint",
43-
"test": "nx test --code-coverage",
44-
"typecheck": "nx typecheck"
41+
"generate-lib": "npx nx generate-lib",
42+
"lint": "npx nx lint",
43+
"test": "npx nx test --code-coverage",
44+
"typecheck": "npx nx typecheck"
4545
},
4646
"dependencies": {
4747
"@typescript-eslint/types": "6.13.1",

packages/type-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"clean": "tsc -b tsconfig.build.json --clean",
4141
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
4242
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
43-
"lint": "nx lint",
43+
"lint": "npx nx lint",
4444
"test": "jest --coverage",
4545
"typecheck": "tsc -p tsconfig.json --noEmit"
4646
},

packages/types/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"clean": "tsc -b tsconfig.build.json --clean",
4242
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
4343
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
44-
"generate-lib": "nx run scope-manager:generate-lib",
45-
"lint": "nx lint",
44+
"generate-lib": "npx nx run scope-manager:generate-lib",
45+
"lint": "npx nx lint",
4646
"typecheck": "tsc -p tsconfig.json --noEmit"
4747
},
4848
"nx": {

packages/typescript-estree/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"clean": "tsc -b tsconfig.build.json --clean",
4848
"postclean": "rimraf dist && rimraf _ts4.3 && rimraf coverage",
4949
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
50-
"lint": "nx lint",
50+
"lint": "npx nx lint",
5151
"test": "jest --coverage --runInBand --verbose",
5252
"typecheck": "tsc -p tsconfig.json --noEmit"
5353
},

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"clean": "tsc -b tsconfig.build.json --clean",
6161
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
6262
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
63-
"lint": "nx lint",
63+
"lint": "npx nx lint",
6464
"test": "jest --coverage",
6565
"typecheck": "tsc -p tsconfig.json --noEmit"
6666
},

packages/visitor-keys/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"clean": "tsc -b tsconfig.build.json --clean",
4141
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf _ts4.3 && rimraf coverage",
4242
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
43-
"lint": "nx lint",
43+
"lint": "npx nx lint",
4444
"test": "jest --coverage",
4545
"typecheck": "tsc -p tsconfig.json --noEmit"
4646
},

packages/website-eslint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"build": "yarn tsx ./build.ts",
2121
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
22-
"lint": "nx lint",
22+
"lint": "npx nx lint",
2323
"typecheck": "tsc --noEmit"
2424
},
2525
"dependencies": {

packages/website/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"generate-website-dts": "tsx ./tools/generate-website-dts.ts",
1010
"stylelint": "stylelint \"src/**/*.css\"",
1111
"stylelint:fix": "stylelint \"src/**/*.css\" --fix",
12-
"lint": "nx lint",
12+
"lint": "npx nx lint",
1313
"serve": "docusaurus serve",
14-
"start": "nx start",
14+
"start": "npx nx start",
1515
"swizzle": "docusaurus swizzle",
1616
"typecheck": "tsc -b ./tsconfig.json"
1717
},

0 commit comments

Comments
 (0)