Skip to content

Commit 5cf6d40

Browse files
committed
chore(tools): remove npx prefix from scripts and hooks for consistency
1 parent c44f70c commit 5cf6d40

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx commitlint --edit
1+
commitlint --edit

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx lint-staged
1+
lint-staged

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
"version": "21.0.0",
44
"type": "module",
55
"scripts": {
6-
"prepare": "npx husky",
6+
"prepare": "husky",
77
"start": "ng serve --configuration=localhost-en --open",
88
"start:es": "ng serve --configuration=localhost-es --open",
99
"extract": "ng extract-i18n --format=xlf --output-path=src/locale",
1010
"lint": "ng lint && npm run stylelint:check",
1111
"prettier:write": "prettier --write \"**/*.{ts,js,json,html,css,scss,md,mdx}\"",
12-
"stylelint:check": "npx stylelint \"**/*.{css,scss}\"",
13-
"stylelint:fix": "npx stylelint \"**/*.{css,scss}\" --fix",
14-
"knip": "npx knip",
12+
"stylelint:check": "stylelint \"**/*.{css,scss}\"",
13+
"stylelint:fix": "stylelint \"**/*.{css,scss}\" --fix",
14+
"knip": "knip",
1515
"test": "ng test --no-watch",
1616
"test:watch": "ng test",
1717
"test:coverage": "ng test --coverage --no-watch",
18-
"playwright:install": "npx playwright install && npx playwright install-deps",
19-
"playwright": "npx playwright test --project=chromium",
18+
"playwright:install": "playwright install && playwright install-deps",
19+
"playwright": "playwright test --project=chromium",
2020
"test:e2e:local:serve": "npm run playwright:install && node scripts/e2e.mjs",
21-
"test:visual": "npx playwright test e2e/tests/visual.spec.ts --project=chromium",
22-
"test:visual:update": "npx playwright test e2e/tests/visual.spec.ts --project=chromium --update-snapshots",
21+
"test:visual": "playwright test e2e/tests/visual.spec.ts --project=chromium",
22+
"test:visual:update": "playwright test e2e/tests/visual.spec.ts --project=chromium --update-snapshots",
2323
"test:smoke:local": "npm run playwright:install && BASE_URL=http://localhost:4200 npm run playwright",
2424
"test:smoke:dev": "npm run playwright:install && exit 0",
2525
"build": "ng build",
26-
"build:serve": "npm run build && npx serve dist/angularexampleapp/browser -p 4200",
26+
"build:serve": "npm run build && serve dist/angularexampleapp/browser -p 4200",
2727
"build:stats": "ng build --configuration=production-sourcemaps --stats-json",
2828
"build:lighthouse": "ng build --configuration=lighthouse",
2929
"update:es:base:href": "sed -i '' 's|<base href=\"/es/\">|<base href=\"/\">|g' dist/lighthouse/es/index.html",

0 commit comments

Comments
 (0)