diff --git a/make/setup-cache.mk b/make/setup-cache.mk index 76030c55..6c04189b 100644 --- a/make/setup-cache.mk +++ b/make/setup-cache.mk @@ -21,8 +21,6 @@ $(AKASH_DEVCACHE): mkdir -p $(AKASH_DEVCACHE_VERSIONS) 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) @@ -172,4 +170,4 @@ endif $(AKASH_TS_NODE_MODULES): $(AKASH_TS_PACKAGE_FILE) @echo "installing node modules..." cd $(AKASH_TS_ROOT) && npm install - @echo "node modules installed." \ No newline at end of file + @echo "node modules installed." diff --git a/script/protocgen-legacy.sh b/script/protocgen-legacy.sh index 9bf89b43..47640598 100755 --- a/script/protocgen-legacy.sh +++ b/script/protocgen-legacy.sh @@ -9,10 +9,14 @@ function cleanup { # put absolute path rm -rf "${AKASH_ROOT}/github.com" rm -rf "$AKASH_DEVCACHE_TS_TMP_GRPC_JS" + rm -rf "${AKASH_DEVCACHE_TS_TMP_PATCHES}" } trap cleanup EXIT ERR +mkdir -p "${AKASH_DEVCACHE_TS_TMP_GRPC_JS}" +mkdir -p "${AKASH_DEVCACHE_TS_TMP_PATCHES}" + script/ts-patches.sh preserve ts_generated="${AKASH_TS_ROOT}/src/generated"