@sap-ux/create 0.5.113 → 0.6.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/README.md CHANGED
@@ -21,6 +21,22 @@ npx sap-ux
21
21
  ## add
22
22
  Calling `sap-ux add` allows adding a feature to a project.
23
23
 
24
+ ### html
25
+ Calling `sap-ux add html` will add html files for local preview and testing to the project. It will use the configuration from the `preview-middleware` from the `ui5.yaml` as default but also allows pointing to a different yaml e.g.:
26
+ ```sh
27
+ sap-ux change add html ui5-test.yaml
28
+ ```
29
+
30
+ ## change
31
+ Calling `sap-ux change` allows changing a feature of a project.
32
+
33
+ ### data-source
34
+ Calling `sap-ux change data-source` allows replacing the OData Source of the base application in an adaptation project.
35
+ ```sh
36
+ sap-ux change data-source /path/to/adaptation-project
37
+ ```
38
+ If the project path is not provided, the current working directory will be used.
39
+
24
40
  ## remove
25
41
  Calling `sap-ux remove` allows removing a feature to a project.
26
42
 
@@ -32,4 +48,4 @@ Calling `sap-ux generate adaptation-project` allows generating a new adaptation
32
48
  ```sh
33
49
  sap-ux generate adaptation-project --id my.adp --reference the.original.app --url http://my.sapsystem.example
34
50
  ```
35
- Additional options are `--skip-install` to skip running `npm install` after the project generation and `--simulate` to only simulate the files that would be generated instead of writing them to the file system.
51
+ Additional options are `--skip-install` to skip running `npm install` after the project generation and `--simulate` to only simulate the files that would be generated instead of writing them to the file system.
@@ -44,7 +44,7 @@ function addCardsEditorConfig(basePath, simulate, skipInstall) {
44
44
  const logger = (0, tracing_1.getLogger)();
45
45
  try {
46
46
  logger.debug(`Called add cards-editor-config for path '${basePath}', simulate is '${simulate}'`);
47
- (0, validation_1.validateBasePath)(basePath);
47
+ yield (0, validation_1.validateBasePath)(basePath);
48
48
  const fs = yield (0, cards_editor_config_writer_1.enableCardsEditor)(basePath);
49
49
  if (!simulate) {
50
50
  yield new Promise((resolve) => fs.commit(resolve));
@@ -0,0 +1,8 @@
1
+ import type { Command } from 'commander';
2
+ /**
3
+ * Adds a command to add the virtual html files hosted by the preview middleware to the file system.
4
+ *
5
+ * @param cmd - commander command for adding navigation inbounds config command
6
+ */
7
+ export declare function addLocalHtmlFiles(cmd: Command): void;
8
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.addLocalHtmlFiles = void 0;
13
+ const tracing_1 = require("../../tracing");
14
+ const validation_1 = require("../../validation");
15
+ const preview_middleware_1 = require("@sap-ux/preview-middleware");
16
+ const path_1 = require("path");
17
+ const ui5_config_1 = require("@sap-ux/ui5-config");
18
+ const mem_fs_editor_1 = require("mem-fs-editor");
19
+ const mem_fs_1 = require("mem-fs");
20
+ /**
21
+ * Adds a command to add the virtual html files hosted by the preview middleware to the file system.
22
+ *
23
+ * @param cmd - commander command for adding navigation inbounds config command
24
+ */
25
+ function addLocalHtmlFiles(cmd) {
26
+ cmd.command('html [path]')
27
+ .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
28
+ .option('-s, --simulate', 'simulate only do not write config; sets also --verbose')
29
+ .option('-v, --verbose', 'show verbose information')
30
+ .action((path, options) => __awaiter(this, void 0, void 0, function* () {
31
+ if (options.verbose === true || options.simulate) {
32
+ (0, tracing_1.setLogLevelVerbose)();
33
+ }
34
+ yield addHtmlFiles(path || process.cwd(), !!options.simulate, options.config);
35
+ }));
36
+ }
37
+ exports.addLocalHtmlFiles = addLocalHtmlFiles;
38
+ /**
39
+ * Adds the virtual html files hosted by the preview middleware to the file system.
40
+ *
41
+ * @param basePath - path to application root
42
+ * @param simulate - if true, do not write but just show what would be change; otherwise write
43
+ * @param yamlPath - path to the ui5*.yaml file
44
+ */
45
+ function addHtmlFiles(basePath, simulate, yamlPath) {
46
+ var _a, _b;
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const logger = (0, tracing_1.getLogger)();
49
+ try {
50
+ logger.debug(`Called add html for path '${basePath}', simulate is '${simulate}'`);
51
+ const ui5ConfigPath = (0, path_1.isAbsolute)(yamlPath) ? yamlPath : (0, path_1.join)(basePath, yamlPath);
52
+ yield (0, validation_1.validateBasePath)(basePath, ui5ConfigPath);
53
+ const fs = (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
54
+ const ui5Conf = yield ui5_config_1.UI5Config.newInstance(fs.read(ui5ConfigPath));
55
+ const preview = (_a = ui5Conf.findCustomMiddleware('fiori-tools-preview')) !== null && _a !== void 0 ? _a : ui5Conf.findCustomMiddleware('preview-middleware');
56
+ yield (0, preview_middleware_1.generatePreviewFiles)(basePath, (_b = preview === null || preview === void 0 ? void 0 : preview.configuration) !== null && _b !== void 0 ? _b : {}, fs, logger);
57
+ if (!simulate) {
58
+ yield new Promise((resolve) => fs.commit(resolve));
59
+ }
60
+ else {
61
+ yield (0, tracing_1.traceChanges)(fs);
62
+ }
63
+ }
64
+ catch (error) {
65
+ logger.error(`Error while executing add html '${error.message}'`);
66
+ logger.debug(error);
67
+ }
68
+ });
69
+ }
70
+ //# sourceMappingURL=html.js.map
@@ -7,6 +7,7 @@ const smartlinks_config_1 = require("./smartlinks-config");
7
7
  const cds_plugin_ui_1 = require("./cds-plugin-ui");
8
8
  const navigation_config_1 = require("./navigation-config");
9
9
  const cards_editor_1 = require("./cards-editor");
10
+ const html_1 = require("./html");
10
11
  /**
11
12
  * Return 'create-fiori add *' commands. Commands include also the handler action.
12
13
  *
@@ -24,6 +25,8 @@ function getAddCommands() {
24
25
  (0, navigation_config_1.addInboundNavigationConfigCommand)(addCommands);
25
26
  // create-fiori add cards-editor
26
27
  (0, cards_editor_1.addCardsEditorConfigCommand)(addCommands);
28
+ // create-fiori add html
29
+ (0, html_1.addLocalHtmlFiles)(addCommands);
27
30
  return addCommands;
28
31
  }
29
32
  exports.getAddCommands = getAddCommands;
@@ -49,7 +49,7 @@ function addMockserverConfig(basePath, simulate, skipInstall, interactive) {
49
49
  const logger = (0, tracing_1.getLogger)();
50
50
  try {
51
51
  logger.debug(`Called add mockserver-config for path '${basePath}', simulate is '${simulate}', skip install is '${skipInstall}'`);
52
- (0, validation_1.validateBasePath)(basePath);
52
+ yield (0, validation_1.validateBasePath)(basePath);
53
53
  const webappPath = yield (0, project_access_1.getWebappPath)(basePath);
54
54
  const config = { webappPath };
55
55
  if (interactive) {
@@ -41,7 +41,7 @@ function addInboundNavigationConfig(basePath, simulate) {
41
41
  const logger = (0, tracing_1.getLogger)();
42
42
  try {
43
43
  logger.debug(`Called add inbound navigation-config for path '${basePath}', simulate is '${simulate}'`);
44
- (0, validation_1.validateBasePath)(basePath);
44
+ yield (0, validation_1.validateBasePath)(basePath);
45
45
  const { config, fs } = yield (0, app_config_writer_1.promptInboundNavigationConfig)(basePath);
46
46
  if (config) {
47
47
  yield (0, app_config_writer_1.generateInboundNavigationConfig)(basePath, config, true, fs);
@@ -41,7 +41,7 @@ function addSmartLinksConfig(basePath, simulate) {
41
41
  const logger = (0, tracing_1.getLogger)();
42
42
  try {
43
43
  logger.debug(`Called add smartlinks-config for path '${basePath}', simulate is '${simulate}'`);
44
- (0, validation_1.validateBasePath)(basePath);
44
+ yield (0, validation_1.validateBasePath)(basePath);
45
45
  const config = yield (0, app_config_writer_1.getSmartLinksTargetFromPrompt)(basePath, logger);
46
46
  const fs = yield (0, app_config_writer_1.generateSmartLinksConfig)(basePath, config, logger);
47
47
  yield (0, tracing_1.traceChanges)(fs);
@@ -0,0 +1,8 @@
1
+ import type { Command } from 'commander';
2
+ /**
3
+ * Add a new sub-command to change the data source of an adaptation project to the given command.
4
+ *
5
+ * @param {Command} cmd - The command to add the change data-source sub-command to.
6
+ */
7
+ export declare function addChangeDataSourceCommand(cmd: Command): void;
8
+ //# sourceMappingURL=change-data-source.d.ts.map
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.addChangeDataSourceCommand = void 0;
13
+ const adp_tooling_1 = require("@sap-ux/adp-tooling");
14
+ const tracing_1 = require("../../tracing");
15
+ const fs_1 = require("fs");
16
+ const path_1 = require("path");
17
+ const ui5_config_1 = require("@sap-ux/ui5-config");
18
+ const common_1 = require("../../common");
19
+ const project_access_1 = require("@sap-ux/project-access");
20
+ let loginAttempts = 3;
21
+ /**
22
+ * Add a new sub-command to change the data source of an adaptation project to the given command.
23
+ *
24
+ * @param {Command} cmd - The command to add the change data-source sub-command to.
25
+ */
26
+ function addChangeDataSourceCommand(cmd) {
27
+ cmd.command('data-source [path]')
28
+ .option('-s, --simulate', 'simulate only do not write or install')
29
+ .option('-c, --config <string>', 'Path to project configuration file in YAML format', 'ui5.yaml')
30
+ .action((path, options) => __awaiter(this, void 0, void 0, function* () {
31
+ yield changeDataSource(path, Object.assign({}, options), !!options.simulate, options.config);
32
+ }));
33
+ }
34
+ exports.addChangeDataSourceCommand = addChangeDataSourceCommand;
35
+ /**
36
+ * Changes the data source of an adaptation project.
37
+ *
38
+ * @param {string} basePath - The path to the adaptation project.
39
+ * @param {PromptDefaults} defaults - The default values for the prompts.
40
+ * @param {boolean} simulate - If set to true, then no files will be written to the filesystem.
41
+ * @param {string} yamlPath - The path to the project configuration file in YAML format.
42
+ */
43
+ function changeDataSource(basePath, defaults, simulate, yamlPath) {
44
+ var _a, _b, _c;
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const logger = (0, tracing_1.getLogger)();
47
+ try {
48
+ if (!basePath) {
49
+ basePath = process.cwd();
50
+ }
51
+ if ((yield (0, project_access_1.getAppType)(basePath)) !== 'Fiori Adaptation') {
52
+ throw new Error('This command can only be used for an Adaptation Project');
53
+ }
54
+ checkEnvironment(basePath);
55
+ const variant = getVariant(basePath);
56
+ const ui5ConfigPath = (0, path_1.isAbsolute)(yamlPath) ? yamlPath : (0, path_1.join)(basePath, yamlPath);
57
+ const ui5Conf = yield ui5_config_1.UI5Config.newInstance((0, fs_1.readFileSync)(ui5ConfigPath, 'utf-8'));
58
+ const customMiddlerware = (_a = ui5Conf.findCustomMiddleware('fiori-tools-preview')) !== null && _a !== void 0 ? _a : ui5Conf.findCustomMiddleware('preview-middleware');
59
+ const adp = (_b = customMiddlerware === null || customMiddlerware === void 0 ? void 0 : customMiddlerware.configuration) === null || _b === void 0 ? void 0 : _b.adp;
60
+ if (!adp) {
61
+ throw new Error('No system configuration found in ui5.yaml');
62
+ }
63
+ const manifest = yield (0, adp_tooling_1.getManifest)(variant.reference, adp, logger);
64
+ const dataSources = manifest['sap.app'].dataSources;
65
+ if (!dataSources) {
66
+ throw new Error('No data sources found in the manifest');
67
+ }
68
+ const answers = yield (0, common_1.promptYUIQuestions)((0, adp_tooling_1.getPromptsForChangeDataSource)(dataSources), false);
69
+ const fs = yield (0, adp_tooling_1.generateChange)(basePath, "appdescr_app_changeDataSource" /* ChangeType.CHANGE_DATA_SOURCE */, {
70
+ variant,
71
+ dataSources,
72
+ answers
73
+ });
74
+ if (!simulate) {
75
+ yield new Promise((resolve) => fs.commit(resolve));
76
+ }
77
+ else {
78
+ yield (0, tracing_1.traceChanges)(fs);
79
+ }
80
+ }
81
+ catch (error) {
82
+ logger.error(error.message);
83
+ if (((_c = error.response) === null || _c === void 0 ? void 0 : _c.status) === 401 && loginAttempts) {
84
+ loginAttempts--;
85
+ logger.error(`Authentication failed. Please check your credentials. Login attempts left: ${loginAttempts}`);
86
+ yield changeDataSource(basePath, defaults, simulate, yamlPath);
87
+ return;
88
+ }
89
+ logger.debug(error);
90
+ }
91
+ });
92
+ }
93
+ /**
94
+ * Get the app descriptor variant.
95
+ *
96
+ * @param {string} basePath - The path to the adaptation project.
97
+ * @returns {DescriptorVariant} The app descriptor variant.
98
+ */
99
+ function getVariant(basePath) {
100
+ return JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(basePath, 'webapp', 'manifest.appdescr_variant'), 'utf-8'));
101
+ }
102
+ /**
103
+ * Check if the project is a CF project.
104
+ *
105
+ * @param {string} basePath - The path to the adaptation project.
106
+ * @throws {Error} If the project is a CF project.
107
+ */
108
+ function checkEnvironment(basePath) {
109
+ const configJsonPath = (0, path_1.join)(basePath, '.adp', 'config.json');
110
+ if ((0, fs_1.existsSync)(configJsonPath)) {
111
+ const config = JSON.parse((0, fs_1.readFileSync)(configJsonPath, 'utf-8'));
112
+ if (config.environment === 'CF') {
113
+ throw new Error('Changing data source is not supported for CF projects.');
114
+ }
115
+ }
116
+ }
117
+ //# sourceMappingURL=change-data-source.js.map
@@ -0,0 +1,8 @@
1
+ import { Command } from 'commander';
2
+ /**
3
+ * Return 'create-fiori change *' commands. Commands include also the handler action.
4
+ *
5
+ * @returns - commander command containing change <feature> commands
6
+ */
7
+ export declare function getChangeCommands(): Command;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getChangeCommands = void 0;
4
+ const commander_1 = require("commander");
5
+ const change_data_source_1 = require("./change-data-source");
6
+ /**
7
+ * Return 'create-fiori change *' commands. Commands include also the handler action.
8
+ *
9
+ * @returns - commander command containing change <feature> commands
10
+ */
11
+ function getChangeCommands() {
12
+ const addCommands = new commander_1.Command('change');
13
+ // create-fiori change data-source
14
+ (0, change_data_source_1.addChangeDataSourceCommand)(addCommands);
15
+ return addCommands;
16
+ }
17
+ exports.getChangeCommands = getChangeCommands;
18
+ //# sourceMappingURL=index.js.map
package/dist/cli/index.js CHANGED
@@ -8,6 +8,7 @@ const tracing_1 = require("../tracing");
8
8
  const add_1 = require("./add");
9
9
  const remove_1 = require("./remove");
10
10
  const generate_1 = require("./generate");
11
+ const change_1 = require("./change");
11
12
  /*
12
13
  * We've chosen 'commander' over 'minimist' and 'yargs' for this CLI implementation. Reasons:
13
14
  * (if it still up: https://npmtrends.com/commander-vs-minimist-vs-yargs)
@@ -51,6 +52,8 @@ function getCommanderProgram() {
51
52
  program.addCommand((0, add_1.getAddCommands)());
52
53
  // Handler for create-fiori remove <feature> ..
53
54
  program.addCommand((0, remove_1.getRemoveCommands)());
55
+ // Handler for create-fiori change <feature> ..
56
+ program.addCommand((0, change_1.getChangeCommands)());
54
57
  // Override exit so calling this command without arguments does not result in an exit code 1, which causes an error message when running from npm init
55
58
  program.exitOverride();
56
59
  return program;
@@ -45,7 +45,7 @@ function removeMockserverConfiguration(basePath, force) {
45
45
  const logger = (0, tracing_1.getLogger)();
46
46
  try {
47
47
  logger.debug(`Called remove mockserver-config for path '${basePath}', force is '${force}'`);
48
- (0, validation_1.validateBasePath)(basePath);
48
+ yield (0, validation_1.validateBasePath)(basePath);
49
49
  const fs = (0, mockserver_config_writer_1.removeMockserverConfig)(basePath);
50
50
  yield (0, tracing_1.traceChanges)(fs);
51
51
  const hasDeletions = (0, validation_1.hasFileDeletes)(fs);
@@ -50,6 +50,24 @@ function enhanceListQuestion(listQuestion, prompt, answers) {
50
50
  : mapppedChoices.findIndex((choice) => choice.value === initialValue);
51
51
  });
52
52
  }
53
+ /**
54
+ * Indicates if the question is optional.
55
+ *
56
+ * @param question question to be checked
57
+ * @param answers rpeviously given answers
58
+ * @returns message of the question
59
+ */
60
+ function extractMessage(question, answers) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const message = isFunction(question.message) ? yield question.message(answers) : question.message;
63
+ if (question.guiOptions && !question.guiOptions.mandatory) {
64
+ return `${message} (optional)`;
65
+ }
66
+ else {
67
+ return message;
68
+ }
69
+ });
70
+ }
53
71
  /**
54
72
  * Converts a YUI question to a simple prompts question.
55
73
  *
@@ -63,7 +81,7 @@ function convertQuestion(question, answers) {
63
81
  const prompt = {
64
82
  type: (_b = QUESTION_TYPE_MAP[(_a = question.type) !== null && _a !== void 0 ? _a : 'input']) !== null && _b !== void 0 ? _b : question.type,
65
83
  name: question.name,
66
- message: isFunction(question.message) ? yield question.message(answers) : yield question.message,
84
+ message: yield extractMessage(question, answers),
67
85
  validate: (value) => __awaiter(this, void 0, void 0, function* () { var _c; return isFunction(question.validate) ? yield question.validate(value, answers) : (_c = question.validate) !== null && _c !== void 0 ? _c : true; }),
68
86
  initial: () => (isFunction(question.default) ? question.default(answers) : question.default)
69
87
  };
@@ -3,8 +3,9 @@ import type { Editor } from 'mem-fs-editor';
3
3
  * Validate base path of app, throw error if file is missing.
4
4
  *
5
5
  * @param basePath - base path of the app, where package.json and ui5.yaml resides
6
+ * @param ui5YamlPath - optional path to ui5.yaml file
6
7
  */
7
- export declare function validateBasePath(basePath: string): void;
8
+ export declare function validateBasePath(basePath: string, ui5YamlPath?: string): Promise<void>;
8
9
  /**
9
10
  * Return if an instance of mem-fs editor recorded any deletion.
10
11
  *
@@ -1,23 +1,36 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.hasFileDeletes = exports.validateBasePath = void 0;
13
+ const project_access_1 = require("@sap-ux/project-access");
4
14
  const fs_1 = require("fs");
5
15
  const path_1 = require("path");
6
16
  /**
7
17
  * Validate base path of app, throw error if file is missing.
8
18
  *
9
19
  * @param basePath - base path of the app, where package.json and ui5.yaml resides
20
+ * @param ui5YamlPath - optional path to ui5.yaml file
10
21
  */
11
- function validateBasePath(basePath) {
12
- const packageJsonPath = (0, path_1.join)(basePath, 'package.json');
13
- if (!(0, fs_1.existsSync)(packageJsonPath)) {
14
- throw Error(`Required file '${packageJsonPath}' does not exist.`);
15
- }
16
- const ui5YamlPath = (0, path_1.join)(basePath, 'ui5.yaml');
17
- const webappPath = (0, path_1.join)(basePath, 'webapp');
18
- if (!(0, fs_1.existsSync)(ui5YamlPath) && !(0, fs_1.existsSync)(webappPath)) {
19
- throw Error(`There must be either a folder '${webappPath}' or a config file '${ui5YamlPath}'`);
20
- }
22
+ function validateBasePath(basePath, ui5YamlPath) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const packageJsonPath = (0, path_1.join)(basePath, 'package.json');
25
+ if (!(0, fs_1.existsSync)(packageJsonPath)) {
26
+ throw Error(`Required file '${packageJsonPath}' does not exist.`);
27
+ }
28
+ ui5YamlPath !== null && ui5YamlPath !== void 0 ? ui5YamlPath : (ui5YamlPath = (0, path_1.join)(basePath, 'ui5.yaml'));
29
+ const webappPath = yield (0, project_access_1.getWebappPath)(basePath);
30
+ if (!(0, fs_1.existsSync)(ui5YamlPath) && !(0, fs_1.existsSync)(webappPath)) {
31
+ throw Error(`There must be either a folder '${webappPath}' or a config file '${ui5YamlPath}'`);
32
+ }
33
+ });
21
34
  }
22
35
  exports.validateBasePath = validateBasePath;
23
36
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.5.113",
4
+ "version": "0.6.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -27,14 +27,20 @@
27
27
  "chalk": "4.1.2",
28
28
  "commander": "9.4.0",
29
29
  "diff": "5.1.0",
30
+ "mem-fs": "2.1.0",
31
+ "mem-fs-editor": "9.4.0",
30
32
  "prompts": "2.4.2",
31
- "@sap-ux/adp-tooling": "0.11.6",
32
- "@sap-ux/app-config-writer": "0.3.80",
33
- "@sap-ux/cap-config-writer": "0.5.3",
33
+ "@sap-ux/adp-tooling": "0.11.7",
34
+ "@sap-ux/app-config-writer": "0.3.81",
35
+ "@sap-ux/cap-config-writer": "0.5.4",
34
36
  "@sap-ux/cards-editor-config-writer": "0.3.9",
37
+ "@sap-ux/inquirer-common": "0.3.1",
35
38
  "@sap-ux/logger": "0.5.1",
36
39
  "@sap-ux/mockserver-config-writer": "0.5.8",
37
- "@sap-ux/project-access": "1.22.3"
40
+ "@sap-ux/preview-middleware": "0.14.0",
41
+ "@sap-ux/project-access": "1.22.3",
42
+ "@sap-ux/ui5-config": "0.22.10",
43
+ "@sap-ux/system-access": "0.4.5"
38
44
  },
39
45
  "devDependencies": {
40
46
  "@types/diff": "5.0.9",
@@ -42,7 +48,7 @@
42
48
  "@types/mem-fs": "1.1.2",
43
49
  "@types/mem-fs-editor": "7.0.1",
44
50
  "@types/prompts": "2.4.4",
45
- "@sap-ux/inquirer-common": "0.3.0",
51
+ "@sap-ux/inquirer-common": "0.3.1",
46
52
  "@sap-ux/store": "0.6.0"
47
53
  },
48
54
  "scripts": {