From 0b1a8686aae0b116532cf613015ae8aa7ff553d8 Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Thu, 18 Jan 2024 17:37:05 +0530 Subject: [PATCH 1/2] Remove unnecessary playground scripts and update package.json --- package.json | 1 - playground/bump-react-comp.sh | 13 ------------- playground/package.json | 3 +-- 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100755 playground/bump-react-comp.sh diff --git a/package.json b/package.json index eca20aeb6..d44a71c75 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "bump:playground:version": "cd playground && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:webcomp:version": "cd web-component && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:lib:version": "cd library && npm --no-git-tag-version --allow-same-version version $VERSION", - "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run bump:playground:version && npm run install:reactcomp:webcomponent && npm run install:reactcomp:playground", "install:reactcomp:playground": "cd playground && npm run install:reactcomp", "install:reactcomp:webcomponent": "cd web-component && npm run install:reactcomp", "get:name": "cd library && npm run get:name", diff --git a/playground/bump-react-comp.sh b/playground/bump-react-comp.sh deleted file mode 100755 index 91f28f81d..000000000 --- a/playground/bump-react-comp.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -#Use in CI only -#Purpos of this script is to use it to install/bump provided version of the React component - -# sleep for 120 seconds before using latest version in web-component, because sometimes NPM needs additional few seconds to `save` package in registry -sleep 2m -echo "Log all versions of the package on npm registry" -npm show @asyncapi/react-component versions -echo "Log latest version of the package on npm registry" -npm show @asyncapi/react-component dist-tags.latest -echo "Starting installation" -npm install @asyncapi/react-component@$VERSION --save --loglevel verbose \ No newline at end of file diff --git a/playground/package.json b/playground/package.json index 7d67d00f6..552613736 100644 --- a/playground/package.json +++ b/playground/package.json @@ -30,8 +30,7 @@ "scripts": { "start": "react-app-rewired start", "test": "react-app-rewired test", - "build": "react-app-rewired build", - "install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh" + "build": "react-app-rewired build" }, "browserslist": { "production": [ From e0b619d12e54a486aed1eaf58c0397dea0ee243c Mon Sep 17 00:00:00 2001 From: Vishvamsinh Vaghela Date: Thu, 18 Jan 2024 18:18:22 +0530 Subject: [PATCH 2/2] script updates --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index d44a71c75..9667e7884 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "bump:playground:version": "cd playground && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:webcomp:version": "cd web-component && npm --no-git-tag-version --allow-same-version version $VERSION", "bump:lib:version": "cd library && npm --no-git-tag-version --allow-same-version version $VERSION", + "bump:version": "npm run bump:lib:version && npm run bump:webcomp:version && npm run bump:playground:version && npm run install:reactcomp:webcomponent", "install:reactcomp:playground": "cd playground && npm run install:reactcomp", "install:reactcomp:webcomponent": "cd web-component && npm run install:reactcomp", "get:name": "cd library && npm run get:name",