@ama-sdk/schematics 12.1.0-prerelease.53 → 12.1.0-prerelease.55

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.
@@ -9,7 +9,7 @@ const promises_1 = require("node:fs/promises");
9
9
  const node_module_1 = require("node:module");
10
10
  const node_path_1 = require("node:path");
11
11
  const minimist = require("minimist");
12
- const schematics_1 = require("@ama-sdk/schematics");
12
+ const public_api_1 = require("../src/public_api");
13
13
  const argv = minimist(process.argv.slice(2));
14
14
  const packageName = argv._[0];
15
15
  const { help, output, 'package-path': packagePath, quiet } = argv;
@@ -18,7 +18,7 @@ const noop = () => { };
18
18
  const logger = quiet ? { error: noop, warn: noop, log: noop, info: noop, debug: noop } : console;
19
19
  const SPEC_YML_EXTENSION = 'yml';
20
20
  const DEFAULT_SPEC_EXPORT_PATH_IN_NPM_MODULE = 'openapi';
21
- const supportedExtensions = [schematics_1.SPEC_JSON_EXTENSION, schematics_1.SPEC_YAML_EXTENSION, SPEC_YML_EXTENSION];
21
+ const supportedExtensions = [public_api_1.SPEC_JSON_EXTENSION, public_api_1.SPEC_YAML_EXTENSION, SPEC_YML_EXTENSION];
22
22
  if (help) {
23
23
  // eslint-disable-next-line no-console -- even if we call the CLI with `--quiet` we want to log the help information
24
24
  console.log(`This script can be used to update your local spec file from a given locally installed npm package.
@@ -26,7 +26,7 @@ if (help) {
26
26
 
27
27
  package-name The full identifier of the npm package (e.g. @my-scope/my-package)
28
28
  --package-path The relative path inside the npm package where to find the spec file (default: './openapi.yml')
29
- --output The path where the spec file should be copied (default: './${schematics_1.LOCAL_SPEC_FILENAME}.${schematics_1.SPEC_YAML_EXTENSION}')
29
+ --output The path where the spec file should be copied (default: './${public_api_1.LOCAL_SPEC_FILENAME}.${public_api_1.SPEC_YAML_EXTENSION}')
30
30
  --quiet Don't log anything
31
31
  `);
32
32
  process.exit(0);
@@ -58,9 +58,9 @@ const run = async () => {
58
58
  if (!specDestinationPath) {
59
59
  let specSourceExtension = (0, node_path_1.extname)(specSourcePath);
60
60
  if (specSourceExtension === `.${SPEC_YML_EXTENSION}`) {
61
- specSourceExtension = `.${schematics_1.SPEC_YAML_EXTENSION}`;
61
+ specSourceExtension = `.${public_api_1.SPEC_YAML_EXTENSION}`;
62
62
  }
63
- specDestinationPath = `./${schematics_1.LOCAL_SPEC_FILENAME}${specSourceExtension}`;
63
+ specDestinationPath = `./${public_api_1.LOCAL_SPEC_FILENAME}${specSourceExtension}`;
64
64
  if ((0, node_fs_1.existsSync)(openApiConfigDefaultPath)) {
65
65
  const openApiConfig = JSON.parse(await (0, promises_1.readFile)(openApiConfigDefaultPath, { encoding: 'utf8' }));
66
66
  const generators = Object.values(openApiConfig['generator-cli']?.generators ?? {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ama-sdk/schematics",
3
- "version": "12.1.0-prerelease.53",
3
+ "version": "12.1.0-prerelease.55",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -49,6 +49,9 @@
49
49
  "@angular/compiler": {
50
50
  "optional": true
51
51
  },
52
+ "@o3r/telemetry": {
53
+ "optional": true
54
+ },
52
55
  "@openapitools/openapi-generator-cli": {
53
56
  "optional": true
54
57
  },
@@ -60,11 +63,12 @@
60
63
  }
61
64
  },
62
65
  "peerDependencies": {
63
- "@ama-sdk/core": "^12.1.0-prerelease.53",
66
+ "@ama-sdk/core": "^12.1.0-prerelease.55",
64
67
  "@angular-devkit/core": "^19.0.0",
65
68
  "@angular-devkit/schematics-cli": "^19.0.0",
66
69
  "@angular/cli": "^19.0.0",
67
- "@o3r/schematics": "^12.1.0-prerelease.53",
70
+ "@o3r/schematics": "^12.1.0-prerelease.55",
71
+ "@o3r/telemetry": "^12.1.0-prerelease.55",
68
72
  "@openapitools/openapi-generator-cli": "^2.15.0",
69
73
  "openapi-types": "^12.0.0",
70
74
  "ts-node": "~10.9.2",
@@ -83,17 +87,17 @@
83
87
  "tslib": "^2.6.2"
84
88
  },
85
89
  "devDependencies": {
86
- "@ama-sdk/core": "^12.1.0-prerelease.53",
90
+ "@ama-sdk/core": "^12.1.0-prerelease.55",
87
91
  "@angular-devkit/schematics-cli": "~19.1.0",
88
92
  "@angular/cli": "~19.1.0",
89
93
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
90
94
  "@nx/eslint-plugin": "~20.4.0",
91
95
  "@nx/jest": "~20.4.0",
92
- "@o3r/build-helpers": "^12.1.0-prerelease.53",
93
- "@o3r/eslint-plugin": "^12.1.0-prerelease.53",
94
- "@o3r/schematics": "^12.1.0-prerelease.53",
95
- "@o3r/telemetry": "^12.1.0-prerelease.53",
96
- "@o3r/test-helpers": "^12.1.0-prerelease.53",
96
+ "@o3r/build-helpers": "^12.1.0-prerelease.55",
97
+ "@o3r/eslint-plugin": "^12.1.0-prerelease.55",
98
+ "@o3r/schematics": "^12.1.0-prerelease.55",
99
+ "@o3r/telemetry": "^12.1.0-prerelease.55",
100
+ "@o3r/test-helpers": "^12.1.0-prerelease.55",
97
101
  "@openapitools/openapi-generator-cli": "~2.16.0",
98
102
  "@schematics/angular": "~19.1.0",
99
103
  "@stylistic/eslint-plugin": "~3.1.0",
@@ -111,7 +115,7 @@
111
115
  "cpy-cli": "^5.0.0",
112
116
  "eslint": "~9.21.0",
113
117
  "eslint-import-resolver-node": "~0.3.9",
114
- "eslint-import-resolver-typescript": "~3.6.3",
118
+ "eslint-import-resolver-typescript": "~3.8.0",
115
119
  "eslint-plugin-import": "~2.31.0",
116
120
  "eslint-plugin-import-newlines": "~1.4.0",
117
121
  "eslint-plugin-jest": "~28.11.0",