@dynamicweb/cli 1.0.6 → 1.0.8
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/bin/commands/files.js +1 -6
- package/bin/commands/install.js +1 -1
- package/package.json +1 -1
package/bin/commands/files.js
CHANGED
|
@@ -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/bin/commands/install.js
CHANGED
|
@@ -25,7 +25,7 @@ async function handleInstall(argv) {
|
|
|
25
25
|
let env = await setupEnv(argv);
|
|
26
26
|
let user = await setupUser(argv, env);
|
|
27
27
|
let resolvedPath = path.resolve(argv.filePath)
|
|
28
|
-
await uploadFiles(env, user, [resolvedPath], 'System/AddIns/Local');
|
|
28
|
+
await uploadFiles(env, user, [resolvedPath], 'System/AddIns/Local', false, true);
|
|
29
29
|
await installAddin(env, user, resolvedPath)
|
|
30
30
|
}
|
|
31
31
|
|
package/package.json
CHANGED