@offckb/cli 0.1.0-rc8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cmd/install.js +1 -1
- package/dist/util.js +1 -1
- package/package.json +1 -1
package/dist/cmd/install.js
CHANGED
|
@@ -104,7 +104,7 @@ function unZipFile(filePath, extractDir, useTar = false) {
|
|
|
104
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
105
|
// Ensure the destination directory exists, if not create it
|
|
106
106
|
if (!fs.existsSync(extractDir)) {
|
|
107
|
-
fs.mkdirSync(extractDir);
|
|
107
|
+
fs.mkdirSync(extractDir, { recursive: true });
|
|
108
108
|
}
|
|
109
109
|
if (useTar === true) {
|
|
110
110
|
return yield decompressTarGzAsync(filePath, extractDir);
|
package/dist/util.js
CHANGED
|
@@ -58,7 +58,7 @@ function isFolderExists(folderPath) {
|
|
|
58
58
|
exports.isFolderExists = isFolderExists;
|
|
59
59
|
function copyFolderSync(source, destination) {
|
|
60
60
|
if (!fs.existsSync(destination)) {
|
|
61
|
-
fs.mkdirSync(destination);
|
|
61
|
+
fs.mkdirSync(destination, { recursive: true });
|
|
62
62
|
}
|
|
63
63
|
const files = fs.readdirSync(source);
|
|
64
64
|
for (const file of files) {
|