From a04ad5f389488c587192f85f015a1a12c0891263 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 11 Jan 2024 13:33:26 +0530 Subject: [PATCH] sync remixd version after publishing --- gulpfile.js | 10 +++++++++- package.json | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index f5d0819a9f..833f2f361e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -66,7 +66,6 @@ task('syncLibVersions', async function () { 'remix-tests', 'remix-url-resolver', 'remix-ws-templates', - 'remixd', 'ghaction-helper' ] @@ -77,6 +76,15 @@ task('syncLibVersions', async function () { await Promise.resolve(); }); +/** + * @dev Task to sync remixd version from 'dist' folder after publishing + */ +task('syncRemixdVersion', async function () { + const distPackageJSON = require(__dirname + '/dist/libs/remixd/package.json') + fs.writeFileSync(__dirname + '/libs/remixd/package.json', JSON.stringify(distPackageJSON, null, 2), 'utf8') + await Promise.resolve(); +}) + async function setBranchHead(branchName, head) { try { console.log(`Setting ${branchName} branch head to ${head}`) diff --git a/package.json b/package.json index 49f86df23e..214dc3911e 100644 --- a/package.json +++ b/package.json @@ -51,13 +51,14 @@ "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remix-ws-templates,remixd,remix-ui-tree-view,remix-ui-modal-dialog,remix-ui-toaster,remix-ui-helper,remix-ui-debugger-ui,remix-ui-workspace,remix-ui-static-analyser,remix-ui-checkbox,remix-ui-settings,remix-core-plugin,remix-ui-renderer,remix-ui-publish-to-storage,remix-ui-solidity-compiler,solidity-unit-testing,remix-ui-plugin-manager,remix-ui-terminal,remix-ui-editor,remix-ui-app,remix-ui-tabs,remix-ui-panel,remix-ui-run-tab,remix-ui-permission-handler,remix-ui-search,remix-ui-file-decorators,remix-ui-tooltip-popup,ghaction-helper", "build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remix-ws-templates,remixd,ghaction-helper", "test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-tests,remix-url-resolver", - "publish:remixd": "yarn build remixd && cd ./dist/libs/remixd && yarn publish", + "publish:remixd": "yarn build remixd && cd ./dist/libs/remixd && yarn publish && yarn run bumpVersion:remixd", "publish:libs": "yarn run build:libs && lerna publish --skip-git && yarn run bumpVersion:libs", "publishDev:libs": "yarn run build:libs && lerna publish --npm-tag alpha --skip-git && yarn run bumpVersion:libs", "build:e2e": "node apps/remix-ide-e2e/src/buildGroupTests.js && tsc -p apps/remix-ide-e2e/tsconfig.e2e.json", "build:desktop": "rm -rf apps/remixdesktop/build/remix-ide && mkdir apps/remixdesktop/build && NX_DESKTOP_FROM_DIST=true nx build remix-ide --configuration=desktop && cp -r dist/apps/remix-ide apps/remixdesktop/build/remix-ide", "babel": "babel", "watch:e2e": "nodemon", + "bumpVersion:remixd": "gulp & gulp syncRemixdVersion;", "bumpVersion:libs": "gulp & gulp syncLibVersions;", "updateBeta": "gulp & gulp updateBetaToMaster;", "updateLive": "gulp & gulp updateLiveToBeta;",