-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
44 lines (37 loc) · 1.06 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
find-up () {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
path=${path%/*}
done
echo "$path"
}
bt () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && pnpm run build --filter=$PKG_NAME... "$@")
}
tt () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && pnpm run test --filter=$PKG_NAME...)
}
ba () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && pnpm run build )
}
ba-remote () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && npx turbo build --remote-only )
}
ta () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && pnpm run test )
}
ta-remote () {
ROOT_DIR=$(find-up "pnpm-workspace.yaml")
PKG_NAME=$(npm pkg get name | sed -e s#\"##g)
(cd $ROOT_DIR && npx turbo test --remote-only )
}