diff --git a/nx.json b/nx.json index 8b6e92da797c..ba27fca216a1 100644 --- a/nx.json +++ b/nx.json @@ -28,12 +28,12 @@ }, "namedInputs": { "sharedGlobals": [ - "{workspaceRoot}/scripts", - "{workspaceRoot}/.circleci/cache-version.txt" + "{workspaceRoot}/scripts" ], "default": [ "{projectRoot}/**/*", - "sharedGlobals" + "sharedGlobals", + "{workspaceRoot}/.circleci/cache-version.txt" ], "production": [ "default", diff --git a/package.json b/package.json index de739788bb54..a24981db367a 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "binary-smoke-test": "node ./scripts/binary.js smoke", "binary-upload": "node ./scripts/binary.js upload", "binary-zip": "node ./scripts/binary.js zip", - "build": "lerna run build --stream && lerna run build-cli --stream", + "build": "lerna run build --stream && yarn workspace @packages/electron build-binary && lerna run build-cli --stream", "build-prod": "lerna run build-prod --stream && node ./cli/scripts/post-build.js && lerna run build-prod --stream --scope", "build-v8-snapshot-dev": "node --max-old-space-size=8192 tooling/v8-snapshot/scripts/setup-v8-snapshot-in-cypress.js --env=dev", "build-v8-snapshot-prod": "node --max-old-space-size=8192 tooling/v8-snapshot/scripts/setup-v8-snapshot-in-cypress.js", diff --git a/packages/electron/package.json b/packages/electron/package.json index e376d318c25e..4d62d5aa49fc 100644 --- a/packages/electron/package.json +++ b/packages/electron/package.json @@ -4,7 +4,7 @@ "private": true, "main": "index.js", "scripts": { - "build": "node ./bin/cypress-electron --install", + "build-binary": "node ./bin/cypress-electron --install", "clean-deps": "rimraf node_modules", "postinstall": "echo '@packages/electron needs: yarn build'", "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",