Skip to content

Commit 43ef7a6

Browse files
committed
chore: wip
1 parent 7b7af79 commit 43ef7a6

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.stacks/scripts/publish.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ DBMS=$(grep "dbms:" ../../config/database.ts | awk '{print $2}' | tr -d "',")
44
SEARCH_DRIVER=$(grep "driver:" ../../config/search-engine.ts | awk '{print $2}' | tr -d "',")
55

66
if [ "$DBMS" = "mysql" ]; then
7-
sed -i '/dependencies:/a\mysql: ^8.0.3' ../../tea.yaml
8-
elif [ "$DBMS" = "postgres" ]; then
9-
sed -i '/dependencies:/a\postgresql: ^15.2.0' ../../tea.yaml
7+
echo " mysql: ^8.0.3" >>../../tea.yaml
8+
elif [ "$DBMS" = "postgresq;" ]; then
9+
echo " postgresql: ^15.2.0" >>../../tea.yaml
1010
else
11-
# handle unexpected DBMS value
1211
echo "Unexpected DBMS value: $DBMS"
1312
fi
13+
14+
if [ "$SEARCH_DRIVER" = "meilisearch" ]; then
15+
echo " meilisearch: ^0.1.1" >>../../tea.yaml
16+
else
17+
echo "Unexpected SEARCH DRIVER value: $SEARCH_DRIVER"
18+
fi

.stacks/scripts/tea.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies:
2+
nodejs.org: ^18.15.0
3+
pnpm.io: ^7.30.3

0 commit comments

Comments
 (0)