@infomaximum/package-cli 2.22.6 → 2.23.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/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.23.0](https://github.com/Infomaximum/package-cli/compare/v2.22.6...v2.23.0) (2025-04-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * добавлен флаг для генерации схемы ([576b9a4](https://github.com/Infomaximum/package-cli/commit/576b9a4798f717941520b73084924672d6428715))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * arrows ([32b11ab](https://github.com/Infomaximum/package-cli/commit/32b11abf760c7113df187ef87498616fa6237527))
16
+ * исправлены преобразования кода ([56796ad](https://github.com/Infomaximum/package-cli/commit/56796adc51fed92620b5b6b8f7cfb254e3da2b80))
17
+
5
18
  ### [2.22.6](https://github.com/Infomaximum/package-cli/compare/v2.22.5...v2.22.6) (2025-04-04)
6
19
 
7
20
 
@@ -8,6 +8,7 @@ export const registerIntegrationDebugCommand = (integrationCommand) => {
8
8
  widgetDebugCommand
9
9
  .description("Отладка проекта интеграции")
10
10
  .option("--entityKey <key>", "Ключ сущности для которой запускается отладка")
11
+ .option("--isGenerateSchema", "Сгенерировать output_variables по output", false)
11
12
  .option("--series", "Выполняет серию запусков отладки сущности", false)
12
13
  .action((options) => {
13
14
  const config = getConfigIntegrationFromFile();
@@ -5,10 +5,20 @@ export declare const TERSER_OPTIONS: (isBeautifyCode: boolean) => {
5
5
  format: {
6
6
  comments: false;
7
7
  beautify: boolean;
8
+ keep_numbers: true;
9
+ braces: true;
8
10
  };
9
11
  compress: {
10
12
  booleans: false;
11
13
  keep_fnames: false;
12
14
  toplevel: true;
15
+ join_vars: false;
16
+ sequences: false;
17
+ unsafe_undefined: false;
18
+ hoist_vars: false;
19
+ hoist_funs: false;
20
+ hoist_props: false;
21
+ typeofs: false;
22
+ arrows: true;
13
23
  };
14
24
  };
@@ -7,10 +7,20 @@ export const TERSER_OPTIONS = (isBeautifyCode) => ({
7
7
  format: {
8
8
  comments: false,
9
9
  beautify: isBeautifyCode,
10
+ keep_numbers: true,
11
+ braces: true,
10
12
  },
11
13
  compress: {
12
14
  booleans: false,
13
15
  keep_fnames: false,
14
16
  toplevel: true,
17
+ join_vars: false,
18
+ sequences: false,
19
+ unsafe_undefined: false,
20
+ hoist_vars: false,
21
+ hoist_funs: false,
22
+ hoist_props: false,
23
+ typeofs: false,
24
+ arrows: true,
15
25
  },
16
26
  });
@@ -5,13 +5,14 @@ import { assertSimple } from "@infomaximum/assert";
5
5
  import { INTEGRATION_CONFIG_RC_EXT, INTEGRATION_CONFIG_RC_FILE_NAME, } from "../const.js";
6
6
  import { systemRequire } from "../../utils.js";
7
7
  const runDebug = (options, rcConfig) => {
8
- const { entityKey, series } = options;
8
+ const { entityKey, series, isGenerateSchema } = options;
9
9
  const debuggingConfig = rcConfig === null || rcConfig === void 0 ? void 0 : rcConfig.debugging;
10
10
  assertSimple(!!debuggingConfig, `Не задана конфигурация для отладки в файле: ${INTEGRATION_CONFIG_RC_FILE_NAME}${INTEGRATION_CONFIG_RC_EXT}`);
11
11
  const executor = new IntegrationExecutor(globalThis.integration, {
12
12
  entityKey,
13
13
  debuggingConfig,
14
14
  series,
15
+ isGenerateSchema,
15
16
  });
16
17
  try {
17
18
  executor === null || executor === void 0 ? void 0 : executor.execute();
@@ -1 +1 @@
1
- export declare const INTEGRATION_PACKAGE_JSON_TEMPLATE = "{\n \"name\": \"template_integration\",\n \"version\": \"1.0.0\",\n \"main\": \"src/index.ts\",\n \"scripts\": {\n \"build\": \"im-package-cli integration build\",\n \"build:script\": \"im-package-cli integration build --type=script --beautify\",\n \"dev\": \"im-package-cli integration build --watch --beautify\",\n \"serve\": \"im-package-cli integration build --watch --fetchToServer --beautify\",\n \"lint\": \"tsc --noEmit && eslint src/ --ext .ts,.tsx --quiet\",\n \"test\": \"vitest --run\",\n \"test:coverage\": \"vitest --run --coverage\",\n \"test:ui\": \"vitest --ui\"\n },\n \"devDependencies\": {\n \"@babel/plugin-transform-block-scoping\": \"^7.25.9\",\n \"@eslint/js\": \"^9.23.0\",\n \"@infomaximum/integration-sdk\": \"^{{integrationSdkVersion}}\",\n \"@infomaximum/package-cli\": \"^{{packageCliVersion}}\",\n \"@types/node\": \"^0\",\n \"dotenv\": \"^16.4.7\",\n \"eslint\": \"^9.23.0\",\n \"globals\": \"^15.14.0\",\n \"tsx\": \"^4.19.3\",\n \"typescript\": \"^5.8.2\",\n \"typescript-eslint\": \"^8.29.0\",\n \"vitest\": \"^3.0.4\",\n \"@vitest/coverage-v8\": \"3.0.7\",\n \"@vitest/ui\": \"3.0.7\"\n }\n}\n";
1
+ export declare const INTEGRATION_PACKAGE_JSON_TEMPLATE = "{\n \"name\": \"template_integration\",\n \"version\": \"1.0.0\",\n \"main\": \"src/index.ts\",\n \"scripts\": {\n \"build\": \"im-package-cli integration build\",\n \"build:script\": \"im-package-cli integration build --type=script --beautify\",\n \"dev\": \"im-package-cli integration build --watch --beautify\",\n \"serve\": \"im-package-cli integration build --watch --fetchToServer --beautify\",\n \"lint\": \"tsc --noEmit && eslint src/ --ext .ts,.tsx --quiet\",\n \"test\": \"vitest --run\",\n \"test:coverage\": \"vitest --run --coverage\",\n \"test:ui\": \"vitest --ui\",\n \"debug\": \"node --import tsx ./node_modules/.bin/im-package-cli integration debug\"\n },\n \"devDependencies\": {\n \"@babel/plugin-transform-block-scoping\": \"^7.25.9\",\n \"@eslint/js\": \"^9.23.0\",\n \"@infomaximum/integration-sdk\": \"^{{integrationSdkVersion}}\",\n \"@infomaximum/package-cli\": \"^{{packageCliVersion}}\",\n \"@types/node\": \"^0\",\n \"dotenv\": \"^16.4.7\",\n \"eslint\": \"^9.23.0\",\n \"globals\": \"^15.14.0\",\n \"tsx\": \"^4.19.3\",\n \"typescript\": \"^5.8.2\",\n \"typescript-eslint\": \"^8.29.0\",\n \"vitest\": \"^3.0.4\",\n \"@vitest/coverage-v8\": \"3.0.7\",\n \"@vitest/ui\": \"3.0.7\"\n }\n}\n";
@@ -13,7 +13,8 @@ export const INTEGRATION_PACKAGE_JSON_TEMPLATE = `\
13
13
  "lint": "tsc --noEmit && eslint src/ --ext .ts,.tsx --quiet",
14
14
  "test": "vitest --run",
15
15
  "test:coverage": "vitest --run --coverage",
16
- "test:ui": "vitest --ui"
16
+ "test:ui": "vitest --ui",
17
+ "debug": "node --import tsx ./node_modules/.bin/im-package-cli integration debug"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@babel/plugin-transform-block-scoping": "^7.25.9",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/package-cli",
3
- "version": "2.22.6",
3
+ "version": "2.23.0",
4
4
  "exports": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "@babel/core": "^7.23.6",
27
27
  "@babel/plugin-transform-runtime": "^7.23.6",
28
28
  "@infomaximum/assert": "^1.1.3",
29
- "@infomaximum/integration-debugger": "^1.6.2",
29
+ "@infomaximum/integration-debugger": "^1.7.0",
30
30
  "@infomaximum/json-modify-webpack-plugin": "^1.1.0",
31
31
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
32
32
  "@saneksa/babel-plugin-function-transform": "^1.0.0",
@@ -71,7 +71,7 @@
71
71
  "zip-webpack-plugin": "^4.0.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@infomaximum/integration-sdk": "^2.0.0",
74
+ "@infomaximum/integration-sdk": "^2.3.0",
75
75
  "@types/babel__core": "^7.20.5",
76
76
  "@types/fs-extra": "^11.0.4",
77
77
  "@types/node": "^20.9.0",