-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatch.sh
More file actions
executable file
·46 lines (36 loc) · 868 Bytes
/
patch.sh
File metadata and controls
executable file
·46 lines (36 loc) · 868 Bytes
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
44
45
46
#!/bin/bash
# TODO: iterate instead: schema, effect, opentelemetry, platform
pwd=$(pwd)
cd ~/pj/effect/effect
git stash
echo "cleaning, codemodding and lint fixing effect repo"
pnpm clean && pnpm codemod && pnpm lint-fix
echo "building and patching effect packages"
#npx pnpm-patch-i -y @tanstack/query-core /Users/patrickroza/pj/tanstack/query/packages/query-core/build
declare -a arr1=(
"effect"
)
declare -a arr=(
"sql"
"opentelemetry"
#"rpc"
# "platform"
# "platform-node"
)
for i in "${arr1[@]}"
do
cd ~/pj/effect/effect/packages/${i}
pnpm build
cd $pwd
pnpm pnpm-patch-i -y ${i} ~/pj/effect/effect/packages/${i}/dist
done
for i in "${arr[@]}"
do
cd ~/pj/effect/effect/packages/${i}
pnpm build
cd $pwd
pnpm pnpm-patch-i -y @effect/${i} ~/pj/effect/effect/packages/${i}/dist
done
cd ~/pj/effect/effect
git stash
#~/pj/patchman.sh