Skip to content

Commit a04ad5f

Browse files
committed
sync remixd version after publishing
1 parent 5521e5f commit a04ad5f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

gulpfile.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ task('syncLibVersions', async function () {
6666
'remix-tests',
6767
'remix-url-resolver',
6868
'remix-ws-templates',
69-
'remixd',
7069
'ghaction-helper'
7170
]
7271

@@ -77,6 +76,15 @@ task('syncLibVersions', async function () {
7776
await Promise.resolve();
7877
});
7978

79+
/**
80+
* @dev Task to sync remixd version from 'dist' folder after publishing
81+
*/
82+
task('syncRemixdVersion', async function () {
83+
const distPackageJSON = require(__dirname + '/dist/libs/remixd/package.json')
84+
fs.writeFileSync(__dirname + '/libs/remixd/package.json', JSON.stringify(distPackageJSON, null, 2), 'utf8')
85+
await Promise.resolve();
86+
})
87+
8088
async function setBranchHead(branchName, head) {
8189
try {
8290
console.log(`Setting ${branchName} branch head to ${head}`)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@
5151
"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",
5252
"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",
5353
"test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-tests,remix-url-resolver",
54-
"publish:remixd": "yarn build remixd && cd ./dist/libs/remixd && yarn publish",
54+
"publish:remixd": "yarn build remixd && cd ./dist/libs/remixd && yarn publish && yarn run bumpVersion:remixd",
5555
"publish:libs": "yarn run build:libs && lerna publish --skip-git && yarn run bumpVersion:libs",
5656
"publishDev:libs": "yarn run build:libs && lerna publish --npm-tag alpha --skip-git && yarn run bumpVersion:libs",
5757
"build:e2e": "node apps/remix-ide-e2e/src/buildGroupTests.js && tsc -p apps/remix-ide-e2e/tsconfig.e2e.json",
5858
"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",
5959
"babel": "babel",
6060
"watch:e2e": "nodemon",
61+
"bumpVersion:remixd": "gulp & gulp syncRemixdVersion;",
6162
"bumpVersion:libs": "gulp & gulp syncLibVersions;",
6263
"updateBeta": "gulp & gulp updateBetaToMaster;",
6364
"updateLive": "gulp & gulp updateLiveToBeta;",

0 commit comments

Comments
 (0)