symlink relative paths

This commit is contained in:
Gleb Bahmutov
2017-06-29 18:07:48 -04:00
parent f33aeabfa0
commit bf7b2cd673
3 changed files with 15 additions and 16 deletions
+10 -10
View File
@@ -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)
+3 -2
View File
@@ -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
+2 -4
View File
@@ -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
}