@dynamicweb/cli 1.0.6 → 1.0.7

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.
@@ -111,11 +111,6 @@ async function handleFiles(argv) {
111
111
  }
112
112
  }
113
113
 
114
- function convertToDataFormat(filePath, resolvedPath) {
115
- const relativePath = `/Files${filePath.substring(resolvedPath.length)}`;
116
- return path.format(path.parse(relativePath)).replace(/\\/g, '/');
117
- }
118
-
119
114
  function getFilesInDirectory(dirPath) {
120
115
  return fs.readdirSync(dirPath)
121
116
  .map(file => path.join(dirPath, file))
@@ -131,7 +126,7 @@ async function processDirectory(env, user, dirPath, outPath, originalDir, create
131
126
  .map(subDir => path.join(dirPath, subDir))
132
127
  .filter(subDir => fs.statSync(subDir).isDirectory());
133
128
  for (let subDir of subDirectories) {
134
- await processDirectory(env, user, subDir, isRoot ? outPath : path.join(outPath, path.basename(dirPath)), originalDir, createEmpty, overwrite);
129
+ await processDirectory(env, user, subDir, isRoot ? outPath : path.join(outPath, path.basename(dirPath)), originalDir, createEmpty, false, overwrite);
135
130
  }
136
131
  }
137
132
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dynamicweb/cli",
3
3
  "type": "module",
4
4
  "description": "Dynamicweb CLI is a commandline tool for interacting with Dynamicweb 10 solutions.",
5
- "version": "1.0.6",
5
+ "version": "1.0.7",
6
6
  "main": "bin/index.js",
7
7
  "files": [
8
8
  "bin/*"