Skip to content

Commit

Permalink
chore(ts): prepare patches tmp dir (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev authored May 3, 2024
1 parent c0913e0 commit c318567
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ AKASH_TS_PACKAGE_FILE=${AKASH_TS_ROOT}/package.json
AKASH_TS_NODE_MODULES=${AKASH_TS_ROOT}/node_modules
AKASH_TS_NODE_BIN=${AKASH_TS_NODE_MODULES}/.bin
AKASH_DEVCACHE_TS_TMP=${AKASH_DEVCACHE_BASE}/tmp/ts
AKASH_DEVCACHE_TS_TMP_GRPC_JS=${AKASH_DEVCACHE_TS_TMP}/generated-grpc-js
AKASH_DEVCACHE_TS_TMP_GRPC_JS=${AKASH_DEVCACHE_TS_TMP}/generated-grpc-js
AKASH_DEVCACHE_TS_TMP_PATCHES=${AKASH_DEVCACHE_TS_TMP}/patches
1 change: 1 addition & 0 deletions make/setup-cache.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $(AKASH_DEVCACHE):
mkdir -p $(AKASH_DEVCACHE_NODE_MODULES)
mkdir -p $(AKASH_DEVCACHE)/run
mkdir -p $(AKASH_DEVCACHE_TS_TMP_GRPC_JS)
mkdir -p $(AKASH_DEVCACHE_TS_TMP_PATCHES)

cache: $(AKASH_DEVCACHE)

Expand Down
2 changes: 1 addition & 1 deletion script/ts-patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eo pipefail

generated_dir="$AKASH_TS_ROOT/src/generated"
tmp_dir="$AKASH_DEVCACHE_TS_TMP/patches"
tmp_dir="AKASH_DEVCACHE_TS_TMP_PATCHES"

if [ ! -d "$generated_dir" ]; then
echo "Directory $generated_dir does not exist. Skipping..."
Expand Down

0 comments on commit c318567

Please sign in to comment.