-
Notifications
You must be signed in to change notification settings - Fork 1
/
patch.sh
executable file
·29 lines (24 loc) · 962 Bytes
/
patch.sh
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
#!/bin/bash
# TODO: iterate instead: schema, effect, opentelemetry, platform
pwd=$(pwd)
cd ~/pj/effect/effect
echo "cleaning, codemodding and lint fixing effect repo"
pnpm clean && pnpm codemod && pnpm lint-fix
echo "building effect packages"
cd packages/effect
cd ../effect && pnpm build
#cd ../schema && pnpm build
cd ../sql && pnpm build
# cd ../opentelemetry && pnpm build
cd ../platform && pnpm build
#cd ../platform-node && pnpm build
cd ../..
git stash
cd $pwd
# npx pnpm-patch-i -y @effect/opentelemetry ~/pj/effect/effect/packages/opentelemetry/dist
npx pnpm-patch-i -y effect ~/pj/effect/effect/packages/effect/dist
#npx pnpm-patch-i -y @effect/schema ~/pj/effect/effect/packages/schema/dist
npx pnpm-patch-i -y @effect/platform ~/pj/effect/effect/packages/platform/dist
npx pnpm-patch-i -y @effect/sql ~/pj/effect/effect/packages/sql/dist
#npx pnpm-patch-i -y @effect/platform-node ~/pj/effect/effect/packages/platform-node/dist
~/pj/patchman.sh