mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-21 06:29:16 -05:00
symlink relative paths
This commit is contained in:
+10
-10
@@ -182,16 +182,16 @@ module.exports = (platform, version, options = {}) ->
|
||||
smokeTest()
|
||||
|
||||
Promise.resolve()
|
||||
# .then(cleanupPlatform)
|
||||
# .then(buildPackages)
|
||||
# .then(copyPackages)
|
||||
# .then(npmInstallPackages)
|
||||
# .then(createRootPackage)
|
||||
# .then(symlinkPackages)
|
||||
# .then(convertCoffeeToJs)
|
||||
# .then(removeTypeScript)
|
||||
# .then(cleanJs)
|
||||
# .then(symlinkDistPackages)
|
||||
.then(cleanupPlatform)
|
||||
.then(buildPackages)
|
||||
.then(copyPackages)
|
||||
.then(npmInstallPackages)
|
||||
.then(createRootPackage)
|
||||
.then(symlinkPackages)
|
||||
.then(convertCoffeeToJs)
|
||||
.then(removeTypeScript)
|
||||
.then(cleanJs)
|
||||
.then(symlinkDistPackages)
|
||||
.then(elBuilder)
|
||||
.then(symlinkBuildPackages)
|
||||
.then(runSmokeTest)
|
||||
|
||||
@@ -140,9 +140,10 @@ symlinkAll = (pathToDistPackages, pathTo) ->
|
||||
## ./packages/foo -> node_modules/@packages/foo
|
||||
pkg = removePackageJson(pkg)
|
||||
dest = pathTo("node_modules", "@packages", path.basename(pkg))
|
||||
relativeDest = path.relative(dest + '/..', pkg)
|
||||
|
||||
console.log(toBase(pkg), "link ->", toBase(dest))
|
||||
fs.ensureSymlinkAsync(pkg, dest)
|
||||
console.log(relativeDest, "link ->", dest)
|
||||
fs.ensureSymlinkAsync(relativeDest, dest)
|
||||
.catch((err) ->
|
||||
if not err.message.includes "EEXIST"
|
||||
throw err
|
||||
|
||||
@@ -33,7 +33,7 @@ linuxZip = (src, dest) ->
|
||||
console.log("linux zip: #{cmd}")
|
||||
execa.shell(cmd)
|
||||
.then((result) ->
|
||||
console.log("✅ tar finished")
|
||||
console.log("✅ zip finished")
|
||||
dest
|
||||
)
|
||||
.catch((err) ->
|
||||
@@ -43,9 +43,7 @@ linuxZip = (src, dest) ->
|
||||
)
|
||||
|
||||
zippers = {
|
||||
# until the CLI tool can unzip both ".zip" and ".tar.gz" files,
|
||||
# must use Mac platform to build the .zip file
|
||||
linux: macZip,
|
||||
linux: linuxZip
|
||||
darwin: macZip
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user