diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 710bef8a056f74946d91817fda0c677295856cd1..46eecc8135762d065bafa1e404e91a9b84cfccab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,9 +17,11 @@ publish_npm:
       changes:
         - config/package.json
   script:
+    - npm install -g typescript@4.7.4
+    - npm install -g ts-proto@1.115.5
     - mkdir clients
-    - npm install ts-proto@1.115.5
     - make proto
+    - ls
     - cd ./config
     - rsync -a --prune-empty-dirs ../clients ./
     - |
@@ -31,10 +33,9 @@ publish_npm:
           echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}"
         } >> .npmrc
       fi
-    - NPM_PACKAGE_CURRENT_VERSION=$(npm show ${NPM_PACKAGE_NAME} version)
-    - echo -E "$(jq --arg version $NPM_PACKAGE_CURRENT_VERSION '.version = $version' package.json)" > package.json
+    - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
     - yarn pub
-    - echo "Successfully published version ${NPM_PACKAGE_CURRENT_VERSION} of ${NPM_PACKAGE_NAME} to GitLab's NPM registry"
+    - echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
     - rm -rf ./clients
     - cd ..
     - rm -rf ./clients
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 5de7249c2eaaeda87e2848c0525ccc9c95b17abb..d1e1bd49e703d8754d9e2fa2b477971fc6501656 100644
--- a/Makefile
+++ b/Makefile
@@ -53,22 +53,22 @@ ifeq (,$(shell which npm))
 	$(error "NPM not found. Run for linux: \"sudo apt install npm\", for mac: \"brew install npm\" \
 	or visit \"https://docs.npmjs.com/getting-started\" for more.\n")
 endif
-#ifeq (,$(shell which protoc-gen-ts_proto))
-#	$(error "Ts-proto plugin for protoc not found. \
-#	Run \"npm install -g ts-proto@1.115.5\" \
-#	or visit \"https://github.com/stephenh/ts-proto\" for more.\n")
-#endif
-#ifeq (,$(shell which tsc))
-#	$(error "Typescript not found. \
-#	Run \"npm install -g typescript@4.7.4\" \
-#	or visit \"https://github.com/microsoft/TypeScript\" for more.\n")
-#endif
-#ifneq ($(shell expr $(TSC_MAJOR_VERSION) \>= 4), 1)
-#  	 $(error "Current version is outdated. Please update typescript \n")
-#endif
-#ifneq ($(shell expr $(TSC_MINOR_VERSION) \>= 7), 1)
-#  	 $(error "Current version is lower than 4.7 Please update typescript \n")
-#endif
-#ifneq ($(shell expr $(TSC_MIC_VERSION) \>= 4), 1)
-#  	 $(error "Current version is lower than 4.7.4 Please update typescript \n")
-#endif
\ No newline at end of file
+ifeq (,$(shell which protoc-gen-ts_proto))
+	$(error "Ts-proto plugin for protoc not found. \
+	Run \"npm install -g ts-proto@1.115.5\" \
+	or visit \"https://github.com/stephenh/ts-proto\" for more.\n")
+endif
+ifeq (,$(shell which tsc))
+	$(error "Typescript not found. \
+	Run \"npm install -g typescript@4.7.4\" \
+	or visit \"https://github.com/microsoft/TypeScript\" for more.\n")
+endif
+ifneq ($(shell expr $(TSC_MAJOR_VERSION) \>= 4), 1)
+  	 $(error "Current version is outdated. Please update typescript \n")
+endif
+ifneq ($(shell expr $(TSC_MINOR_VERSION) \>= 7), 1)
+  	 $(error "Current version is lower than 4.7 Please update typescript \n")
+endif
+ifneq ($(shell expr $(TSC_MIC_VERSION) \>= 4), 1)
+  	 $(error "Current version is lower than 4.7.4 Please update typescript \n")
+endif
\ No newline at end of file