mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-21 22:49:16 -05:00
Issue 281 - add @packages/root (#282)
* link: create fake @packages/root * server: switch to loading @packages/root * server: update tests after using @packages/root * load root package in other places * load root package in build using @packages/root * update tests that mock root package * server: fix server start whenever loading root package in updater * fix updater test * uncomment code
This commit is contained in:
@@ -23,6 +23,8 @@ packages = require("./util/packages")
|
||||
Darwin = require("./darwin")
|
||||
Linux = require("./linux")
|
||||
|
||||
rootPackage = require("@packages/root")
|
||||
|
||||
sign = Promise.promisify(signOsxApp)
|
||||
fs = Promise.promisifyAll(fse)
|
||||
|
||||
@@ -105,6 +107,7 @@ buildCypressApp = (platform, version, options = {}) ->
|
||||
fs.outputJsonAsync(distDir("package.json"), {
|
||||
name: "cypress"
|
||||
productName: "Cypress",
|
||||
description: rootPackage.description
|
||||
version: version
|
||||
main: "index.js"
|
||||
scripts: {}
|
||||
@@ -248,11 +251,6 @@ buildCypressApp = (platform, version, options = {}) ->
|
||||
.then(removeDevElectronApp)
|
||||
.then(copyPackageProxies(buildAppDir))
|
||||
.then(runSmokeTest)
|
||||
|
||||
# older build steps
|
||||
# .then(@runProjectTest) # if run larger tests need to cleanup symlinks
|
||||
# .then(@runFailingProjectTest)
|
||||
# .then(@cleanupCy)
|
||||
.then(codeSign) ## codesign after running smoke tests due to changing .cy
|
||||
.then(verifyAppCanOpen)
|
||||
.return({
|
||||
|
||||
Reference in New Issue
Block a user