From fe71defa9542669931ac875b9112aa1d682cb38b Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Thu, 15 Dec 2022 17:49:02 +0800
Subject: [PATCH] fix .gitlab-ci.yml

---
 .gitlab-ci.yml     | 2 --
 Makefile           | 3 +--
 config/generate.sh | 2 ++
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 59b6fc8..15c7e4f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,8 +20,6 @@ publish_npm:
     - mkdir config/clients
     - make proto
     - cd ./config
-    - cd ./clients
-    - ls
     - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
     - yarn pub
     - echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
diff --git a/Makefile b/Makefile
index c14d429..e4ff372 100644
--- a/Makefile
+++ b/Makefile
@@ -17,11 +17,10 @@ TSC_MIC_VERSION=$(shell tsc --version | awk '{print $$2;}' | cut -d. -f3)
 # Генерация js
 proto: proto-js
 
-proto-js: protoc-check js-check generate-js $(PROTOTSFILES)
+proto-js: protoc-check js-check $(PROTOTSFILES) generate-js
 	@echo "Generated all protobuf JavaScrypt files"
 
 %.ts: %.proto
-	@echo "Generating ts files"
 	@protoc -I=$(PROTODIR) \
 	--plugin=@protoc-gen-ts_proto \
  	--ts_proto_opt=env=browser,outputServices=generic-definitions,outputJsonMethods=false,esModuleInterop=true,useOptionals=messages,exportCommonSymbols=false,useDate=false,useExactTypes=false \
diff --git a/config/generate.sh b/config/generate.sh
index bcf7e76..95ea8dc 100755
--- a/config/generate.sh
+++ b/config/generate.sh
@@ -78,5 +78,7 @@ echo "---deleting created tmp files"
 npm uninstall protobufjs@6.11.3
 find ./config/clients -name 'index.ts' -delete
 find ./config/clients/*/** -name 'index.ts' -delete
+find ./ -maxdepth 1 -name '*.json' -delete
+find ./ -maxdepth 1 -name '*.ts' -delete
 
 echo "---process finished"
\ No newline at end of file
-- 
GitLab