Skip to content

Commit d807b97

Browse files
committed
Ensure angular.json exists in project root when running 'ng lint'
Since Angular v16 this is required, otherwise it fails. Makes no sense to me at all...
1 parent 3c32202 commit d807b97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ node_modules/
2727

2828
# generated output
2929
dist
30+
/angular.json
3031

3132
# test output
3233
playwright-report

packages/kubernetes-client-angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"dev": "ng serve",
77
"preformat": "node ../../README.cjs projects/kubernetes-client-angular/README.md.njk > projects/kubernetes-client-angular/README.md",
88
"format": "prettier --write ./**/*.{js,ts,json}",
9-
"prelint": "npm run format",
9+
"prelint": "npm run format && ln -sf ${PWD}/angular.json ../../angular.json",
1010
"lint": "ng lint",
11+
"postlint": "rm -f ../../angular.json",
1112
"build": "for PROJ in $(ls projects); do ng build $PROJ; done",
1213
"watch": "ng build --watch --configuration development",
1314
"pree2e": "playwright install",

0 commit comments

Comments
 (0)