@squiz/dxp-cli-next 5.19.0 → 5.19.1
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.
|
@@ -88,7 +88,7 @@ class ComponentPreUpload {
|
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
for (const [uriName, uriValue] of Object.entries((_a = component.definition.mockedUris) !== null && _a !== void 0 ? _a : {})) {
|
|
90
90
|
if (uriValue.type === 'file') {
|
|
91
|
-
const newUriPath = `mocked-uri.${
|
|
91
|
+
const newUriPath = `mocked-uri.${path.basename(uriValue.path)}`;
|
|
92
92
|
yield fs.copyFile(path.resolve(component.baseDir, uriValue.path), path.resolve(outputDir, newUriPath));
|
|
93
93
|
uriValue.path = newUriPath;
|
|
94
94
|
}
|
|
@@ -99,13 +99,13 @@ const createAddProjectCommand = () => {
|
|
|
99
99
|
"request_delay": INT (ms),
|
|
100
100
|
"max_dir_depth": INT,
|
|
101
101
|
"max_files_stored": INT,
|
|
102
|
-
"run": true
|
|
102
|
+
"run": true
|
|
103
103
|
}`);
|
|
104
104
|
(0, utils_1.logDebug)(`File created successfully at ${crawlConfigExample}`);
|
|
105
105
|
const templateDedupeConfigExample = path_1.default.join(stageConfigDir, dxp_porter_shared_1.Stage.templateDedupe, 'config.json.example');
|
|
106
106
|
yield promises_1.default.writeFile(templateDedupeConfigExample, `{
|
|
107
107
|
"sensitivity": INT,
|
|
108
|
-
"run": true
|
|
108
|
+
"run": true
|
|
109
109
|
}`);
|
|
110
110
|
(0, utils_1.logDebug)(`File created successfully at ${templateDedupeConfigExample}`);
|
|
111
111
|
// Default example configs for other stages
|