builder-util
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -45,3 +45,2 @@ /// <reference types="node" /> | ||
export declare function copyDir(src: string, destination: string, options?: CopyDirOptions): Promise<any>; | ||
export declare function copyDirUsingHardLinks(source: string, destination: string): Promise<string>; | ||
export declare const DO_NOT_USE_HARD_LINKS: (file: string) => boolean; | ||
@@ -48,0 +47,0 @@ export declare const USE_HARD_LINKS: (file: string) => boolean; |
@@ -124,3 +124,2 @@ "use strict"; | ||
exports.copyDir = copyDir; | ||
exports.copyDirUsingHardLinks = copyDirUsingHardLinks; | ||
@@ -153,8 +152,2 @@ var _fsExtraP; | ||
var _util; | ||
function _load_util() { | ||
return _util = require("./util"); | ||
} | ||
var _promise; | ||
@@ -320,14 +313,4 @@ | ||
} | ||
// https://unix.stackexchange.com/questions/202430/how-to-copy-a-directory-recursively-using-hardlinks-for-each-file | ||
function copyDirUsingHardLinks(source, destination) { | ||
const promise = (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(destination); | ||
if (process.platform !== "darwin") { | ||
return promise.then(() => (0, (_util || _load_util()).exec)("cp", ["-d", "--recursive", "--preserve=mode", "--link", "-T" /* to merge */, source + "/", destination + "/"])); | ||
} | ||
return promise.then(() => (0, (_util || _load_util()).exec)("pax", ["-rwl", "-p", "amp" /* Do not preserve file access times, Do not preserve file modification times, Preserve the file mode bits */, ".", destination], { | ||
cwd: source | ||
})); | ||
} | ||
const DO_NOT_USE_HARD_LINKS = exports.DO_NOT_USE_HARD_LINKS = file => false; | ||
const USE_HARD_LINKS = exports.USE_HARD_LINKS = file => true; | ||
//# sourceMappingURL=fs.js.map |
{ | ||
"name": "builder-util", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"main": "out/util.js", | ||
@@ -14,3 +14,3 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"app-builder-bin": "1.2.1", | ||
"app-builder-bin": "1.3.1", | ||
"temp-file": "^3.1.1", | ||
@@ -17,0 +17,0 @@ "fs-extra-p": "^4.5.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188677
2376
+ Addedapp-builder-bin@1.3.1(transitive)
+ Addedapp-builder-bin-linux@1.3.1(transitive)
+ Addedapp-builder-bin-mac@1.3.1(transitive)
+ Addedapp-builder-bin-win@1.3.1(transitive)
- Removedapp-builder-bin@1.2.1(transitive)
- Removedapp-builder-bin-linux@1.2.1(transitive)
- Removedapp-builder-bin-mac@1.2.1(transitive)
- Removedapp-builder-bin-win@1.2.1(transitive)
Updatedapp-builder-bin@1.3.1