@sap-ux/deploy-config-generator-shared 0.2.4 → 1.0.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.
@@ -1,17 +1,11 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DeploymentGenerator = void 0;
7
- const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
8
- const utils_1 = require("../utils");
9
- const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
1
+ import Generator from 'yeoman-generator';
2
+ import { initI18n } from '../utils/index.js';
3
+ import { DefaultLogger, LogWrapper } from '@sap-ux/fiori-generator-shared';
10
4
  /**
11
5
  * Base class for deployment generators.
12
6
  */
13
- class DeploymentGenerator extends yeoman_generator_1.default {
14
- static _logger = fiori_generator_shared_1.DefaultLogger;
7
+ export class DeploymentGenerator extends Generator {
8
+ static _logger = DefaultLogger;
15
9
  /**
16
10
  * Deployment generator constructor.
17
11
  *
@@ -27,7 +21,7 @@ class DeploymentGenerator extends yeoman_generator_1.default {
27
21
  this._configureLogging(this.options.logLevel, this.options.logger, this.options.vscode);
28
22
  }
29
23
  async initializing() {
30
- await (0, utils_1.initI18n)();
24
+ await initI18n();
31
25
  }
32
26
  /**
33
27
  * Get the logger instance.
@@ -46,8 +40,7 @@ class DeploymentGenerator extends yeoman_generator_1.default {
46
40
  * @returns - log wrapper instance
47
41
  */
48
42
  _configureLogging(logLevel, vscLogger, vscode) {
49
- return new fiori_generator_shared_1.LogWrapper(this.rootGeneratorName(), this.log, logLevel, vscLogger, vscode);
43
+ return new LogWrapper(this.rootGeneratorName(), this.log, logLevel, vscLogger, vscode);
50
44
  }
51
45
  }
52
- exports.DeploymentGenerator = DeploymentGenerator;
53
46
  //# sourceMappingURL=generator.js.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { DeploymentGenerator } from './base/generator';
2
- export * from './utils';
3
- export { getConfirmMtaContinuePrompt } from './prompts';
1
+ export { DeploymentGenerator } from './base/generator.js';
2
+ export * from './utils/index.js';
3
+ export { getConfirmMtaContinuePrompt } from './prompts/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,23 +1,4 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getConfirmMtaContinuePrompt = exports.DeploymentGenerator = void 0;
18
- var generator_1 = require("./base/generator");
19
- Object.defineProperty(exports, "DeploymentGenerator", { enumerable: true, get: function () { return generator_1.DeploymentGenerator; } });
20
- __exportStar(require("./utils"), exports);
21
- var prompts_1 = require("./prompts");
22
- Object.defineProperty(exports, "getConfirmMtaContinuePrompt", { enumerable: true, get: function () { return prompts_1.getConfirmMtaContinuePrompt; } });
1
+ export { DeploymentGenerator } from './base/generator.js';
2
+ export * from './utils/index.js';
3
+ export { getConfirmMtaContinuePrompt } from './prompts/index.js';
23
4
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfirmMtaContinuePrompt = getConfirmMtaContinuePrompt;
4
- const utils_1 = require("../utils");
1
+ import { t } from '../utils/index.js';
5
2
  /**
6
3
  * Enumeration of prompt names
7
4
  */
@@ -14,12 +11,12 @@ var promptNames;
14
11
  *
15
12
  * @returns the CAP MTA continue question.
16
13
  */
17
- function getConfirmMtaContinuePrompt() {
14
+ export function getConfirmMtaContinuePrompt() {
18
15
  return [
19
16
  {
20
17
  type: 'confirm',
21
18
  name: promptNames.addCapMtaContinue,
22
- message: (0, utils_1.t)('prompts.confirmCAPMtaContinue.message'),
19
+ message: t('prompts.confirmCAPMtaContinue.message'),
23
20
  default: false
24
21
  }
25
22
  ];
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showOverwriteQuestion = showOverwriteQuestion;
4
1
  /**
5
2
  * Show overwrite question if certain conditions are met.
6
3
  *
@@ -10,7 +7,7 @@ exports.showOverwriteQuestion = showOverwriteQuestion;
10
7
  * @param overwriteOption - if the overwrite option is set
11
8
  * @returns - if the overwrite question should be shown
12
9
  */
13
- function showOverwriteQuestion(configExists, launchDeployConfigAsSubGenerator = true, launchStandaloneFromYui, overwriteOption) {
10
+ export function showOverwriteQuestion(configExists, launchDeployConfigAsSubGenerator = true, launchStandaloneFromYui, overwriteOption) {
14
11
  // Don't show this question in wrapper generator
15
12
  const showQuestion = launchDeployConfigAsSubGenerator && !launchStandaloneFromYui ? false : Boolean(!overwriteOption);
16
13
  return showQuestion && configExists;
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TargetName = exports.mtaYaml = exports.mtaPkg = exports.mtaExecutable = exports.cdsPkg = exports.cdsExecutable = void 0;
4
- exports.cdsExecutable = 'cds';
5
- exports.cdsPkg = '@sap/cds-dk';
6
- exports.mtaExecutable = 'mta';
7
- exports.mtaPkg = 'mta';
8
- exports.mtaYaml = 'mta.yaml';
9
- var TargetName;
1
+ export const cdsExecutable = 'cds';
2
+ export const cdsPkg = '@sap/cds-dk';
3
+ export const mtaExecutable = 'mta';
4
+ export const mtaPkg = 'mta';
5
+ export const mtaYaml = 'mta.yaml';
6
+ export var TargetName;
10
7
  (function (TargetName) {
11
8
  TargetName["ABAP"] = "abap";
12
9
  TargetName["CF"] = "cf";
13
- })(TargetName || (exports.TargetName = TargetName = {}));
10
+ })(TargetName || (TargetName = {}));
14
11
  //# sourceMappingURL=constants.js.map
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateDestinationName = generateDestinationName;
4
- exports.getDestination = getDestination;
5
- const btp_utils_1 = require("@sap-ux/btp-utils");
1
+ import { isAppStudio, listDestinations } from '@sap-ux/btp-utils';
6
2
  /**
7
3
  * Generate a destination name based on the service path.
8
4
  * Remove leading & trailing '/'. Substitute '/' for '_'.
@@ -11,7 +7,7 @@ const btp_utils_1 = require("@sap-ux/btp-utils");
11
7
  * @param servicePath - used to create a meaningful dest name
12
8
  * @returns destination name
13
9
  */
14
- function generateDestinationName(prefix, servicePath) {
10
+ export function generateDestinationName(prefix, servicePath) {
15
11
  return `${prefix}_${servicePath?.replace(/(^\/)|(\/$)/g, '').replace(/\//g, '_')}`;
16
12
  }
17
13
  /**
@@ -20,10 +16,10 @@ function generateDestinationName(prefix, servicePath) {
20
16
  * @param destName - name of the destination
21
17
  * @returns destination object
22
18
  */
23
- async function getDestination(destName) {
19
+ export async function getDestination(destName) {
24
20
  let destination;
25
- if ((0, btp_utils_1.isAppStudio)() && destName) {
26
- const destinations = await (0, btp_utils_1.listDestinations)({ stripS4HCApiHosts: true });
21
+ if (isAppStudio() && destName) {
22
+ const destinations = await listDestinations({ stripS4HCApiHosts: true });
27
23
  destination = destinations[destName];
28
24
  }
29
25
  return destination;
@@ -1,4 +1,4 @@
1
- import { type AppWizard } from '@sap-devx/yeoman-ui-types';
1
+ import type { AppWizard } from '@sap-devx/yeoman-ui-types';
2
2
  export declare enum ERROR_TYPE {
3
3
  ABORT_SIGNAL = "ABORT_SIGNAL",
4
4
  NO_MANIFEST = "NO_MANIFEST",
@@ -1,26 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorHandler = exports.ERROR_TYPE = void 0;
4
- exports.bail = bail;
5
- exports.handleErrorMessage = handleErrorMessage;
6
- const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
7
- const generator_1 = require("../base/generator");
8
- const i18n_1 = require("./i18n");
9
- const constants_1 = require("./constants");
10
- const yeoman_ui_types_1 = require("@sap-devx/yeoman-ui-types");
11
- var ERROR_TYPE;
1
+ import { getHostEnvironment, hostEnvironment } from '@sap-ux/fiori-generator-shared';
2
+ import { DeploymentGenerator } from '../base/generator.js';
3
+ import { t } from './i18n.js';
4
+ import { cdsExecutable, cdsPkg, mtaExecutable, mtaPkg } from './constants.js';
5
+ import { MessageType } from '@sap-devx/yeoman-ui-types';
6
+ export var ERROR_TYPE;
12
7
  (function (ERROR_TYPE) {
13
8
  ERROR_TYPE["ABORT_SIGNAL"] = "ABORT_SIGNAL";
14
9
  ERROR_TYPE["NO_MANIFEST"] = "NO_MANIFEST";
15
10
  ERROR_TYPE["NO_APP_NAME"] = "NO_APP_NAME";
16
11
  ERROR_TYPE["NO_CDS_BIN"] = "NO_CDS_BIN";
17
12
  ERROR_TYPE["NO_MTA_BIN"] = "NO_MTA_BIN";
18
- })(ERROR_TYPE || (exports.ERROR_TYPE = ERROR_TYPE = {}));
13
+ })(ERROR_TYPE || (ERROR_TYPE = {}));
19
14
  /**
20
15
  * Error messages for the deploy configuration generator.
21
16
  */
22
- class ErrorHandler {
23
- static cannotFindBinary = (bin, pkg) => (0, i18n_1.t)('errors.noBinary', { bin, pkg });
17
+ export class ErrorHandler {
18
+ static cannotFindBinary = (bin, pkg) => t('errors.noBinary', { bin, pkg });
24
19
  /**
25
20
  * Get the error message for the specified error type.
26
21
  *
@@ -31,27 +26,26 @@ class ErrorHandler {
31
26
  if (errorType) {
32
27
  return ErrorHandler._errorTypeToMsg[errorType]();
33
28
  }
34
- return (0, i18n_1.t)('errors.unknownError');
29
+ return t('errors.unknownError');
35
30
  }
36
31
  static _errorTypeToMsg = {
37
- [ERROR_TYPE.ABORT_SIGNAL]: () => (0, i18n_1.t)('errors.abortSignal'),
38
- [ERROR_TYPE.NO_MANIFEST]: () => (0, i18n_1.t)('errors.noManifest'),
39
- [ERROR_TYPE.NO_APP_NAME]: () => (0, i18n_1.t)('errors.noAppName'),
40
- [ERROR_TYPE.NO_CDS_BIN]: () => ErrorHandler.cannotFindBinary(constants_1.cdsExecutable, constants_1.cdsPkg),
41
- [ERROR_TYPE.NO_MTA_BIN]: () => ErrorHandler.cannotFindBinary(constants_1.mtaExecutable, constants_1.mtaPkg)
32
+ [ERROR_TYPE.ABORT_SIGNAL]: () => t('errors.abortSignal'),
33
+ [ERROR_TYPE.NO_MANIFEST]: () => t('errors.noManifest'),
34
+ [ERROR_TYPE.NO_APP_NAME]: () => t('errors.noAppName'),
35
+ [ERROR_TYPE.NO_CDS_BIN]: () => ErrorHandler.cannotFindBinary(cdsExecutable, cdsPkg),
36
+ [ERROR_TYPE.NO_MTA_BIN]: () => ErrorHandler.cannotFindBinary(mtaExecutable, mtaPkg)
42
37
  };
43
- static noBaseConfig = (baseConfig) => (0, i18n_1.t)('errors.noBaseConfig', { baseConfig });
44
- static unrecognizedTarget = (target) => (0, i18n_1.t)('errors.unrecognizedTarget', { target });
45
- static fileDoesNotExist = (filePath) => (0, i18n_1.t)('errors.fileDoesNotExist', { filePath });
46
- static folderDoesNotExist = (filePath) => (0, i18n_1.t)('errors.folderDoesNotExist', { filePath });
38
+ static noBaseConfig = (baseConfig) => t('errors.noBaseConfig', { baseConfig });
39
+ static unrecognizedTarget = (target) => t('errors.unrecognizedTarget', { target });
40
+ static fileDoesNotExist = (filePath) => t('errors.fileDoesNotExist', { filePath });
41
+ static folderDoesNotExist = (filePath) => t('errors.folderDoesNotExist', { filePath });
47
42
  }
48
- exports.ErrorHandler = ErrorHandler;
49
43
  /**
50
44
  * Bail out with an error message.
51
45
  *
52
46
  * @param errorMessage - Error message to be displayed
53
47
  */
54
- function bail(errorMessage) {
48
+ export function bail(errorMessage) {
55
49
  throw new Error(errorMessage);
56
50
  }
57
51
  /**
@@ -62,14 +56,14 @@ function bail(errorMessage) {
62
56
  * @param error.errorType - error type
63
57
  * @param error.errorMsg - error message
64
58
  */
65
- function handleErrorMessage(appWizard, { errorType, errorMsg }) {
59
+ export function handleErrorMessage(appWizard, { errorType, errorMsg }) {
66
60
  const error = errorMsg ?? ErrorHandler.getErrorMsgFromType(errorType);
67
- if ((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.cli) {
61
+ if (getHostEnvironment() === hostEnvironment.cli) {
68
62
  bail(error);
69
63
  }
70
64
  else {
71
- generator_1.DeploymentGenerator.logger?.debug(error);
72
- appWizard?.showError(error, yeoman_ui_types_1.MessageType.notification);
65
+ DeploymentGenerator.logger?.debug(error);
66
+ appWizard?.showError(error, MessageType.notification);
73
67
  }
74
68
  }
75
69
  //# sourceMappingURL=error-handler.js.map
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExtensionGenPromptOpts = getExtensionGenPromptOpts;
4
- const nodejs_utils_1 = require("@sap-ux/nodejs-utils");
1
+ import { findInstalledPackages } from '@sap-ux/nodejs-utils';
5
2
  /**
6
3
  * Find fiori generator extension generators and return the path to the first one found.
7
4
  *
@@ -11,7 +8,7 @@ const nodejs_utils_1 = require("@sap-ux/nodejs-utils");
11
8
  async function getExtensionGenPath(vscode) {
12
9
  let extensionGenPath;
13
10
  // Find generator extensions
14
- const foundSubGens = await (0, nodejs_utils_1.findInstalledPackages)('fiori-gen-ext', {
11
+ const foundSubGens = await findInstalledPackages('fiori-gen-ext', {
15
12
  keyword: 'fiori-generator-extension',
16
13
  vscWorkspaceConfig: vscode?.workspace?.getConfiguration()
17
14
  });
@@ -29,7 +26,7 @@ async function getExtensionGenPath(vscode) {
29
26
  * @param vscode - instance of vscode
30
27
  * @returns - the extension prompt options
31
28
  */
32
- async function getExtensionGenPromptOpts(createEnv, rootGeneratorName, vscode) {
29
+ export async function getExtensionGenPromptOpts(createEnv, rootGeneratorName, vscode) {
33
30
  let extGenPromptOpts;
34
31
  const extensionGenPath = await getExtensionGenPath(vscode);
35
32
  if (extensionGenPath) {
@@ -1,25 +1,17 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.i18n = void 0;
7
- exports.initI18n = initI18n;
8
- exports.t = t;
9
- const i18next_1 = __importDefault(require("i18next"));
10
- const deploy_config_generator_shared_i18n_json_1 = __importDefault(require("../translations/deploy-config-generator-shared.i18n.json"));
1
+ import i18next from 'i18next';
2
+ import translations from '../translations/deploy-config-generator-shared.i18n.json' with { type: 'json' };
11
3
  const deployConfigGenShared = 'deploy-config-generator-shared';
12
- exports.i18n = i18next_1.default.createInstance();
4
+ export const i18n = i18next.createInstance();
13
5
  /**
14
6
  * Initialize i18next with the translations for this module.
15
7
  */
16
- async function initI18n() {
17
- await exports.i18n.init({
8
+ export async function initI18n() {
9
+ await i18n.init({
18
10
  lng: 'en',
19
11
  fallbackLng: 'en',
20
12
  showSupportNotice: false
21
13
  });
22
- exports.i18n.addResourceBundle('en', deployConfigGenShared, deploy_config_generator_shared_i18n_json_1.default);
14
+ i18n.addResourceBundle('en', deployConfigGenShared, translations);
23
15
  }
24
16
  /**
25
17
  * Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
@@ -28,13 +20,11 @@ async function initI18n() {
28
20
  * @param options additional options
29
21
  * @returns {string} localized string stored for the given key
30
22
  */
31
- function t(key, options) {
23
+ export function t(key, options) {
32
24
  if (!options?.ns) {
33
25
  options = Object.assign(options ?? {}, { ns: deployConfigGenShared });
34
26
  }
35
- return exports.i18n.t(key, options);
27
+ return i18n.t(key, options);
36
28
  }
37
- initI18n().catch(() => {
38
- // Needed for lint
39
- });
29
+ void initI18n().catch(() => undefined);
40
30
  //# sourceMappingURL=i18n.js.map
@@ -1,8 +1,8 @@
1
- export { t, initI18n } from './i18n';
2
- export { showOverwriteQuestion } from './conditions';
3
- export { ErrorHandler, ERROR_TYPE, bail, handleErrorMessage } from './error-handler';
4
- export { getExtensionGenPromptOpts } from './extension-prompts';
5
- export * from './constants';
6
- export * from './destination';
7
- export * from './types';
1
+ export { t, initI18n } from './i18n.js';
2
+ export { showOverwriteQuestion } from './conditions.js';
3
+ export { ErrorHandler, ERROR_TYPE, bail, handleErrorMessage } from './error-handler.js';
4
+ export { getExtensionGenPromptOpts } from './extension-prompts.js';
5
+ export * from './constants.js';
6
+ export * from './destination.js';
7
+ export * from './types.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1,33 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.getExtensionGenPromptOpts = exports.handleErrorMessage = exports.bail = exports.ERROR_TYPE = exports.ErrorHandler = exports.showOverwriteQuestion = exports.initI18n = exports.t = void 0;
18
- var i18n_1 = require("./i18n");
19
- Object.defineProperty(exports, "t", { enumerable: true, get: function () { return i18n_1.t; } });
20
- Object.defineProperty(exports, "initI18n", { enumerable: true, get: function () { return i18n_1.initI18n; } });
21
- var conditions_1 = require("./conditions");
22
- Object.defineProperty(exports, "showOverwriteQuestion", { enumerable: true, get: function () { return conditions_1.showOverwriteQuestion; } });
23
- var error_handler_1 = require("./error-handler");
24
- Object.defineProperty(exports, "ErrorHandler", { enumerable: true, get: function () { return error_handler_1.ErrorHandler; } });
25
- Object.defineProperty(exports, "ERROR_TYPE", { enumerable: true, get: function () { return error_handler_1.ERROR_TYPE; } });
26
- Object.defineProperty(exports, "bail", { enumerable: true, get: function () { return error_handler_1.bail; } });
27
- Object.defineProperty(exports, "handleErrorMessage", { enumerable: true, get: function () { return error_handler_1.handleErrorMessage; } });
28
- var extension_prompts_1 = require("./extension-prompts");
29
- Object.defineProperty(exports, "getExtensionGenPromptOpts", { enumerable: true, get: function () { return extension_prompts_1.getExtensionGenPromptOpts; } });
30
- __exportStar(require("./constants"), exports);
31
- __exportStar(require("./destination"), exports);
32
- __exportStar(require("./types"), exports);
1
+ export { t, initI18n } from './i18n.js';
2
+ export { showOverwriteQuestion } from './conditions.js';
3
+ export { ErrorHandler, ERROR_TYPE, bail, handleErrorMessage } from './error-handler.js';
4
+ export { getExtensionGenPromptOpts } from './extension-prompts.js';
5
+ export * from './constants.js';
6
+ export * from './destination.js';
7
+ export * from './types.js';
33
8
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@sap-ux/deploy-config-generator-shared",
3
3
  "description": "Commonly used shared functionality and types to support the deploy config generator.",
4
- "version": "0.2.4",
4
+ "version": "1.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
8
8
  "directory": "packages/deploy-config-generator-shared"
9
9
  },
10
+ "type": "module",
10
11
  "license": "Apache-2.0",
11
12
  "main": "dist/index.js",
12
13
  "files": [
@@ -20,16 +21,17 @@
20
21
  "@vscode-logging/logger": "2.0.9",
21
22
  "i18next": "25.10.10",
22
23
  "yeoman-generator": "5.10.0",
23
- "@sap-ux/btp-utils": "1.2.1",
24
- "@sap-ux/nodejs-utils": "0.3.1",
25
- "@sap-ux/fiori-generator-shared": "0.15.4"
24
+ "@sap-ux/btp-utils": "2.0.0",
25
+ "@sap-ux/fiori-generator-shared": "1.0.0",
26
+ "@sap-ux/nodejs-utils": "1.0.0"
26
27
  },
27
28
  "devDependencies": {
29
+ "@jest/globals": "30.3.0",
28
30
  "@types/inquirer": "8.2.6",
29
31
  "@types/yeoman-generator": "5.2.14",
30
- "@sap-ux/axios-extension": "1.26.1",
31
- "@sap-ux/inquirer-common": "0.13.3",
32
- "@sap-ux/store": "1.6.0"
32
+ "@sap-ux/axios-extension": "2.0.0",
33
+ "@sap-ux/inquirer-common": "1.0.0",
34
+ "@sap-ux/store": "2.0.0"
33
35
  },
34
36
  "engines": {
35
37
  "node": ">=22.x"
@@ -40,8 +42,8 @@
40
42
  "watch": "tsc --watch",
41
43
  "lint": "eslint",
42
44
  "lint:fix": "eslint --fix",
43
- "test": "jest --ci --forceExit --detectOpenHandles --colors",
44
- "test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
45
+ "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors",
46
+ "test-u": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --ci --forceExit --detectOpenHandles --colors -u",
45
47
  "link": "pnpm link --global",
46
48
  "unlink": "pnpm unlink --global"
47
49
  }