File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ pnpm lint-staged
5
+ pnpm run tsc
6
+
7
+ if git rev-parse --abbrev-ref HEAD | grep -q " master" ; then
8
+ if grep " link:.." pnpm-lock.yaml; then
9
+ echo " The above package links were found. Run either\
10
+ ` pnpm i` with link-workspace-packages=false prefer-frozen-lockfile=false set in ` .npmrc` \
11
+ OR if inside the monorepo run ` pnpm i:remote` in the root of the monorepo"
12
+ exit 1
13
+ else
14
+ echo " No package links found"
15
+ fi
16
+ fi
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ pnpm run tsc
6
6
7
7
if git rev-parse --abbrev-ref HEAD | grep -q " master" ; then
8
8
if grep " link:.." pnpm-lock.yaml; then
9
- echo " The above package links were found. Run pnpm i:remote in the root of the monorepo"
9
+ echo " The above package links were found. Run either\
10
+ ` pnpm i` with link-workspace-packages=false prefer-frozen-lockfile=false set in ` .npmrc` \
11
+ OR if inside the monorepo run ` pnpm i:remote` in the root of the monorepo"
10
12
exit 1
11
13
else
12
14
echo " No package links found"
Original file line number Diff line number Diff line change 11
11
"build" : " next build" ,
12
12
"start" : " next start" ,
13
13
"tsc" : " tsc --pretty --noEmit" ,
14
- "lint" : " next lint" ,
15
- "format" : " eslint --fix ." ,
14
+ "lint" : " eslint lint --max-warnings=0" ,
15
+ "format" : " eslint --fix --max-warnings=0" ,
16
+ "format:all" : " eslint --fix ." ,
16
17
"test" : " export $(cat .env.test.local | xargs) && playwright test" ,
17
18
"test:debug" : " PWDEBUG=1 pnpm t -- --headed" ,
18
19
"test:ci" : " playwright test"
You can’t perform that action at this time.
0 commit comments