Skip to content

Commit 4b4a8c7

Browse files
committed
build(deps): set @angular/forms and @testing-library/user-event as devDependencies
@angular/forms and @testing-library/user-event are only used in tests and should not be exported in the package.json for production. @see: testing-library#272 (comment)
1 parent 20ae40d commit 4b4a8c7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.husky/_/husky.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22
if [ -z "$husky_skip_init" ]; then
33
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
4+
if [ "$HUSKY_DEBUG" = "1" ]; then
5+
echo "husky (debug) - $1"
6+
fi
57
}
68

79
readonly hook_name="$(basename "$0")"
@@ -23,8 +25,7 @@ if [ -z "$husky_skip_init" ]; then
2325

2426
if [ $exitCode != 0 ]; then
2527
echo "husky - $hook_name hook exited with code $exitCode (error)"
26-
exit $exitCode
2728
fi
2829

29-
exit 0
30+
exit $exitCode
3031
fi

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@angular/common": "13.0.2",
3434
"@angular/compiler": "13.0.2",
3535
"@angular/core": "13.0.2",
36-
"@angular/forms": "13.0.2",
3736
"@angular/material": "13.0.2",
3837
"@angular/platform-browser": "13.0.2",
3938
"@angular/platform-browser-dynamic": "13.0.2",
@@ -42,7 +41,6 @@
4241
"@nrwl/angular": "13.2.2",
4342
"@nrwl/nx-cloud": "12.5.4",
4443
"@testing-library/dom": "^8.11.1",
45-
"@testing-library/user-event": "^13.5.0",
4644
"rxjs": "^7.4.0",
4745
"tslib": "~2.3.1",
4846
"zone.js": "~0.11.4"
@@ -54,6 +52,7 @@
5452
"@angular-eslint/template-parser": "12.6.1",
5553
"@angular/cli": "13.0.3",
5654
"@angular/compiler-cli": "13.0.2",
55+
"@angular/forms": "13.0.2",
5756
"@angular/language-service": "13.0.2",
5857
"@nrwl/cli": "13.2.2",
5958
"@nrwl/eslint-plugin-nx": "13.2.2",
@@ -64,6 +63,7 @@
6463
"@nrwl/workspace": "13.2.2",
6564
"@testing-library/jasmine-dom": "^1.2.0",
6665
"@testing-library/jest-dom": "^5.15.1",
66+
"@testing-library/user-event": "^13.5.0",
6767
"@types/jasmine": "^3.10.2",
6868
"@types/jest": "27.0.3",
6969
"@types/node": "14.14.37",

projects/testing-library/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@
3131
"peerDependencies": {
3232
"@angular/common": ">= 13.0.0",
3333
"@angular/platform-browser": ">= 13.0.0",
34-
"@angular/animations": ">= 13.0.0",
3534
"@angular/router": ">= 13.0.0",
3635
"@angular/core": ">= 13.0.0"
3736
},
3837
"dependencies": {
3938
"@testing-library/dom": "^8.0.0",
40-
"tslib": "^2.0.0"
39+
"tslib": "^2.3.1"
4140
},
4241
"publishConfig": {
4342
"access": "public"

0 commit comments

Comments
 (0)