@squiz/dxp-cli-next 5.19.0 → 5.19.1-develop.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.${uriName}.json`;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "5.19.0",
3
+ "version": "5.19.1-develop.1",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/dxp/dxp-cli-next"
6
6
  },
@@ -42,7 +42,7 @@
42
42
  "@apidevtools/swagger-parser": "10.1.0",
43
43
  "@squiz/component-cli-lib": "1.68.0",
44
44
  "@squiz/dxp-porter-shared": "0.4.0",
45
- "@squiz/local-component-dev-ui": "^0.2.2",
45
+ "@squiz/local-component-dev-ui": "^0.3.0",
46
46
  "@squiz/render-runtime-lib": "^1.69.0",
47
47
  "axios": "1.1.3",
48
48
  "cli-color": "2.0.3",