@ama-sdk/schematics 14.0.0-next.0 → 14.0.0-next.10

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.
Files changed (20) hide show
  1. package/cli/update-spec-from-npm.cjs +5 -5
  2. package/package.json +44 -50
  3. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.generator.d.ts → open-api-cli-generator.d.ts} +3 -3
  4. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.generator.d.ts.map → open-api-cli-generator.d.ts.map} +1 -1
  5. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.generator.js → open-api-cli-generator.js} +3 -3
  6. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.options.d.ts → open-api-cli-options.d.ts} +1 -1
  7. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.options.d.ts.map → open-api-cli-options.d.ts.map} +1 -1
  8. package/schematics/code-generator/open-api-cli-generator/{open-api-cli.options.js → open-api-cli-options.js} +1 -1
  9. package/schematics/helpers/node-install.d.ts +1 -1
  10. package/schematics/ng-update/typescript/v10.3/update-openapiversion.d.ts +1 -1
  11. package/schematics/ng-update/typescript/v10.3/update-openapiversion.js +1 -1
  12. package/schematics/typescript/core/index.js +1 -1
  13. package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
  14. package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
  15. package/schematics/typescript/mock/index.js +1 -1
  16. package/schematics/typescript/mock/templates/__dasherizeModelName__.mock.ts.template +1 -1
  17. package/schematics/typescript/shell/templates/base/eslint.config.mjs.template +1 -0
  18. package/schematics/typescript/shell/templates/base/src/constants/servers.ts.template +1 -0
  19. package/schematics/typescript/shell/templates/base/src/index.ts.template +1 -1
  20. package/schematics/typescript/shell/templates/base/tsconfig.doc.json +2 -1
@@ -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 public_api_1 = require("../src/public_api");
12
+ const schematics_1 = require("@ama-sdk/schematics");
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 = [public_api_1.SPEC_JSON_EXTENSION, public_api_1.SPEC_YAML_EXTENSION, SPEC_YML_EXTENSION];
21
+ const supportedExtensions = [schematics_1.SPEC_JSON_EXTENSION, schematics_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: './${public_api_1.LOCAL_SPEC_FILENAME}.${public_api_1.SPEC_YAML_EXTENSION}')
29
+ --output The path where the spec file should be copied (default: './${schematics_1.LOCAL_SPEC_FILENAME}.${schematics_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 = `.${public_api_1.SPEC_YAML_EXTENSION}`;
61
+ specSourceExtension = `.${schematics_1.SPEC_YAML_EXTENSION}`;
62
62
  }
63
- specDestinationPath = `./${public_api_1.LOCAL_SPEC_FILENAME}${specSourceExtension}`;
63
+ specDestinationPath = `./${schematics_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,13 +1,12 @@
1
1
  {
2
2
  "name": "@ama-sdk/schematics",
3
- "version": "14.0.0-next.0",
3
+ "version": "14.0.0-next.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "Swagger specification SDK Generator by schematics",
8
- "typings": "./src/public_api.d.ts",
9
- "main": "./src/public_api.js",
10
8
  "types": "./src/public_api.d.ts",
9
+ "main": "./src/public_api.js",
11
10
  "scripts": {
12
11
  "nx": "nx",
13
12
  "ng": "yarn nx",
@@ -62,92 +61,87 @@
62
61
  }
63
62
  },
64
63
  "peerDependencies": {
65
- "@ama-sdk/core": "^14.0.0-next.0",
64
+ "@ama-sdk/core": "~14.0.0-next.10",
66
65
  "@angular-devkit/core": "^20.0.0",
67
66
  "@angular-devkit/schematics-cli": "^20.0.0",
68
67
  "@angular/cli": "^20.0.0",
69
- "@o3r/schematics": "^14.0.0-next.0",
70
- "@o3r/telemetry": "^14.0.0-next.0",
68
+ "@o3r/schematics": "~14.0.0-next.10",
69
+ "@o3r/telemetry": "~14.0.0-next.10",
71
70
  "@openapitools/openapi-generator-cli": "^2.15.0",
72
71
  "openapi-types": "^12.0.0",
73
- "ts-node": "~10.9.2",
74
- "type-fest": "^4.30.1",
75
- "typescript": "^5.8.0"
72
+ "type-fest": "^5.3.1",
73
+ "typescript": "^5.9.0"
76
74
  },
77
75
  "dependencies": {
78
- "@angular-devkit/core": "~20.2.0",
79
- "@angular-devkit/schematics": "~20.2.0",
80
- "@o3r/schematics": "^14.0.0-next.0",
76
+ "@angular-devkit/core": "~20.3.13",
77
+ "@angular-devkit/schematics": "~20.3.13",
78
+ "@o3r/schematics": "~14.0.0-next.10",
81
79
  "chokidar": "^4.0.3",
82
80
  "globby": "^11.1.0",
83
- "js-yaml": "^4.1.0",
84
- "minimatch": "~10.0.0",
81
+ "js-yaml": "^4.1.1",
82
+ "minimatch": "~10.1.0",
85
83
  "minimist": "^1.2.6",
86
84
  "rxjs": "^7.8.1",
87
85
  "semver": "^7.5.2",
88
86
  "tslib": "^2.6.2"
89
87
  },
90
88
  "devDependencies": {
91
- "@ama-sdk/core": "^14.0.0-next.0",
92
- "@angular-devkit/schematics-cli": "~20.2.0",
93
- "@angular/cli": "~20.2.0",
89
+ "@ama-sdk/core": "~14.0.0-next.10",
90
+ "@angular-devkit/schematics-cli": "~20.3.13",
91
+ "@angular/cli": "~20.3.13",
94
92
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
95
- "@nx/eslint-plugin": "~21.5.0",
96
- "@nx/jest": "~21.5.0",
97
- "@o3r/build-helpers": "^14.0.0-next.0",
98
- "@o3r/eslint-plugin": "^14.0.0-next.0",
99
- "@o3r/telemetry": "^14.0.0-next.0",
100
- "@o3r/test-helpers": "^14.0.0-next.0",
101
- "@openapitools/openapi-generator-cli": "~2.23.0",
102
- "@schematics/angular": "~20.2.0",
103
- "@stylistic/eslint-plugin": "~5.3.0",
104
- "@types/jest": "~29.5.2",
93
+ "@nx/eslint-plugin": "~21.6.0",
94
+ "@nx/jest": "~21.6.0",
95
+ "@o3r/build-helpers": "~14.0.0-next.10",
96
+ "@o3r/eslint-plugin": "~14.0.0-next.10",
97
+ "@o3r/telemetry": "~14.0.0-next.10",
98
+ "@o3r/test-helpers": "~14.0.0-next.10",
99
+ "@openapitools/openapi-generator-cli": "~2.25.0",
100
+ "@schematics/angular": "~20.3.13",
101
+ "@stylistic/eslint-plugin": "~5.6.0",
102
+ "@types/jest": "~30.0.0",
105
103
  "@types/js-yaml": "^4.0.5",
106
104
  "@types/minimist": "^1.2.2",
107
- "@types/node": "^22.0.0",
108
- "@types/pid-from-port": "^1.1.0",
105
+ "@types/node": "~24.10.0",
109
106
  "@types/semver": "^7.3.13",
110
- "@typescript-eslint/parser": "~8.43.0",
111
- "angular-eslint": "~20.2.0",
107
+ "@typescript-eslint/parser": "~8.51.0",
108
+ "angular-eslint": "~20.6.0",
112
109
  "commit-and-tag-version": "^12.0.0",
113
- "copyfiles": "^2.4.1",
114
110
  "cpy-cli": "^6.0.0",
115
- "eslint": "~9.35.0",
111
+ "eslint": "~9.39.0",
116
112
  "eslint-import-resolver-node": "~0.3.9",
117
113
  "eslint-import-resolver-typescript": "~4.4.0",
118
114
  "eslint-plugin-import": "~2.32.0",
119
115
  "eslint-plugin-import-newlines": "~1.4.0",
120
- "eslint-plugin-jest": "~29.0.0",
121
- "eslint-plugin-jsdoc": "~54.7.0",
116
+ "eslint-plugin-jest": "~29.11.0",
117
+ "eslint-plugin-jsdoc": "~61.5.0",
122
118
  "eslint-plugin-prefer-arrow": "~1.2.3",
123
- "eslint-plugin-unicorn": "~60.0.0",
124
- "eslint-plugin-unused-imports": "~4.2.0",
119
+ "eslint-plugin-unicorn": "~62.0.0",
120
+ "eslint-plugin-unused-imports": "~4.3.0",
125
121
  "globals": "^16.0.0",
126
122
  "isomorphic-fetch": "~3.0.0",
127
- "jest": "~29.7.0",
123
+ "jest": "~30.2.0",
128
124
  "jest-junit": "~16.0.0",
129
- "jest-util": "~29.7.0",
125
+ "jest-util": "~30.2.0",
130
126
  "jsonc-eslint-parser": "~2.4.0",
131
127
  "mem-fs": "^4.0.0",
132
128
  "npm-run-all2": "^8.0.0",
133
- "nx": "~21.5.0",
129
+ "nx": "~21.6.0",
134
130
  "openapi-types": "^12.0.0",
135
- "pid-from-port": "^1.1.3",
136
131
  "semver": "^7.5.2",
137
132
  "ts-jest": "~29.4.0",
138
- "ts-node": "~10.9.2",
139
- "type-fest": "^4.30.1",
133
+ "type-fest": "^5.3.1",
140
134
  "typescript": "~5.9.2",
141
- "typescript-eslint": "~8.43.0"
135
+ "typescript-eslint": "~8.51.0"
142
136
  },
143
137
  "generatorDependencies": {
144
138
  "@angular-eslint/eslint-plugin": "~20.0.0",
145
- "@commitlint/cli": "^19.0.0",
146
- "@commitlint/config-conventional": "^19.0.0",
147
- "@swc/cli": "~0.7.7",
148
- "@swc/core": "~1.13.0",
149
- "@swc/helpers": "~0.5.0",
150
- "@typescript-eslint/eslint-plugin": "~8.43.0",
139
+ "@commitlint/cli": "^20.2.0",
140
+ "@commitlint/config-conventional": "^20.2.0",
141
+ "@swc/cli": "~0.7.9",
142
+ "@swc/core": "~1.15.3",
143
+ "@swc/helpers": "~0.5.17",
144
+ "@typescript-eslint/eslint-plugin": "~8.51.0",
151
145
  "jest-junit": "~16.0.0",
152
146
  "lint-staged": "^16.0.0",
153
147
  "minimist": "^1.2.6",
@@ -1,7 +1,7 @@
1
1
  import { CodeGenerator } from '../code-generator';
2
- import { OpenApiCliOptions } from './open-api-cli.options';
2
+ import { OpenApiCliOptions } from './open-api-cli-options';
3
3
  /**
4
- * Manage the schematic to generate a sdk using the @openapitools/openapi-generator-cli
4
+ * Manage the schematic to generate a sdk using the `@openapitools/openapi-generator-cli`
5
5
  */
6
6
  export declare class OpenApiCliGenerator extends CodeGenerator<OpenApiCliOptions> {
7
7
  protected readonly packageManager: 'npm' | 'yarn';
@@ -30,4 +30,4 @@ export declare class OpenApiCliGenerator extends CodeGenerator<OpenApiCliOptions
30
30
  rootDirectory?: string;
31
31
  }) => (generatorOptions?: OpenApiCliOptions) => Promise<undefined>;
32
32
  }
33
- //# sourceMappingURL=open-api-cli.generator.d.ts.map
33
+ //# sourceMappingURL=open-api-cli-generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-api-cli.generator.d.ts","sourceRoot":"","sources":["../../../../schematics/code-generator/open-api-cli-generator/open-api-cli.generator.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa,CAAC,iBAAiB,CAAC;IACvE,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,KAAK,GAAG,MAAM,CAAC;IAClD,SAAS,KAAK,oBAAoB,IAAI,KAAK,GAAG,MAAM,CAEnD;IAED,kBAAkB;IAClB,SAAS,CAAC,QAAQ,CAAC,aAAa,6BAA6B;gBAEjD,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,EAAE,CAAA;KAAE;IAK9D;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAelC;;;;OAIG;IACH,OAAO,CAAC,YAAY;IA4BpB,kBAAkB;IAClB,SAAS,CAAC,iBAAiB,oCAA2C;IAEtE,kBAAkB;IAClB,SAAS,CAAC,uBAAuB,GAAI,iBAAgB;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO,MAIpE,mBAAmB,iBAAiB,wBAclD;CACH"}
1
+ {"version":3,"file":"open-api-cli-generator.d.ts","sourceRoot":"","sources":["../../../../schematics/code-generator/open-api-cli-generator/open-api-cli-generator.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,aAAa,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa,CAAC,iBAAiB,CAAC;IACvE,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,KAAK,GAAG,MAAM,CAAC;IAClD,SAAS,KAAK,oBAAoB,IAAI,KAAK,GAAG,MAAM,CAEnD;IAED,kBAAkB;IAClB,SAAS,CAAC,QAAQ,CAAC,aAAa,6BAA6B;gBAEjD,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,EAAE,CAAA;KAAE;IAK9D;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAelC;;;;OAIG;IACH,OAAO,CAAC,YAAY;IA4BpB,kBAAkB;IAClB,SAAS,CAAC,iBAAiB,oCAA2C;IAEtE,kBAAkB;IAClB,SAAS,CAAC,uBAAuB,GAAI,iBAAgB;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAO,MAIpE,mBAAmB,iBAAiB,wBAclD;CACH"}
@@ -5,9 +5,9 @@ const node_child_process_1 = require("node:child_process");
5
5
  const path = require("node:path");
6
6
  const node_install_1 = require("../../helpers/node-install");
7
7
  const code_generator_1 = require("../code-generator");
8
- const open_api_cli_options_1 = require("./open-api-cli.options");
8
+ const open_api_cli_options_1 = require("./open-api-cli-options");
9
9
  /**
10
- * Manage the schematic to generate a sdk using the @openapitools/openapi-generator-cli
10
+ * Manage the schematic to generate a sdk using the `@openapitools/openapi-generator-cli`
11
11
  */
12
12
  class OpenApiCliGenerator extends code_generator_1.CodeGenerator {
13
13
  get packageManagerRunner() {
@@ -93,4 +93,4 @@ class OpenApiCliGenerator extends code_generator_1.CodeGenerator {
93
93
  }
94
94
  }
95
95
  exports.OpenApiCliGenerator = OpenApiCliGenerator;
96
- //# sourceMappingURL=open-api-cli.generator.js.map
96
+ //# sourceMappingURL=open-api-cli-generator.js.map
@@ -58,4 +58,4 @@ export type OpenApiCliOptions = CodegenTaskOptions & {
58
58
  * Default options to run our custom typescript generator
59
59
  */
60
60
  export declare const defaultTypescriptGeneratorOptions: Readonly<OpenApiCliOptions>;
61
- //# sourceMappingURL=open-api-cli.options.d.ts.map
61
+ //# sourceMappingURL=open-api-cli-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-api-cli.options.d.ts","sourceRoot":"","sources":["../../../../schematics/code-generator/open-api-cli-generator/open-api-cli.options.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG;IACnD;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,iBAAiB,CAUhE,CAAC"}
1
+ {"version":3,"file":"open-api-cli-options.d.ts","sourceRoot":"","sources":["../../../../schematics/code-generator/open-api-cli-generator/open-api-cli-options.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG;IACnD;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,iBAAiB,CAUhE,CAAC"}
@@ -16,4 +16,4 @@ exports.defaultTypescriptGeneratorOptions = {
16
16
  generatorKey: '',
17
17
  openapiNormalizer: ''
18
18
  };
19
- //# sourceMappingURL=open-api-cli.options.js.map
19
+ //# sourceMappingURL=open-api-cli-options.js.map
@@ -6,7 +6,7 @@ import type { SupportedPackageManagers } from '@o3r/schematics';
6
6
  */
7
7
  export declare function getPackageManagerName(enforcedNpmManager?: SupportedPackageManagers | '' | null): SupportedPackageManagers;
8
8
  /**
9
- * Duplication of the interface not exposed by the @angular-devkit/schematics
9
+ * Duplication of the interface not exposed by the `@angular-devkit/schematics`
10
10
  */
11
11
  export interface NodePackageInstallTaskOptions {
12
12
  packageManager?: 'yarn' | 'npm' | '';
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from '@angular-devkit/schematics';
2
2
  /**
3
- * Update open api version used in the project to match with the one used in @ama-sdk/schematics:typescript-core
3
+ * Update open api version used in the project to match with the one used in `@ama-sdk/schematics:typescript-core`
4
4
  */
5
5
  export declare const updateOpenApiVersionInProject: () => Rule;
6
6
  //# sourceMappingURL=update-openapiversion.d.ts.map
@@ -5,7 +5,7 @@ const schematics_1 = require("@angular-devkit/schematics");
5
5
  const schematics_2 = require("@o3r/schematics");
6
6
  const semver = require("semver");
7
7
  /**
8
- * Update open api version used in the project to match with the one used in @ama-sdk/schematics:typescript-core
8
+ * Update open api version used in the project to match with the one used in `@ama-sdk/schematics:typescript-core`
9
9
  */
10
10
  const updateOpenApiVersionInProject = () => {
11
11
  const overwriteOpenApiVersion = (pathOfWorkspace) => {
@@ -7,7 +7,7 @@ const node_url_1 = require("node:url");
7
7
  const schematics_1 = require("@angular-devkit/schematics");
8
8
  const schematics_2 = require("@o3r/schematics");
9
9
  const semver = require("semver");
10
- const open_api_cli_generator_1 = require("../../code-generator/open-api-cli-generator/open-api-cli.generator");
10
+ const open_api_cli_generator_1 = require("../../code-generator/open-api-cli-generator/open-api-cli-generator");
11
11
  const generators_1 = require("../../helpers/generators");
12
12
  const tree_glob_1 = require("../../helpers/tree-glob");
13
13
  const copy_referenced_files_1 = require("./helpers/copy-referenced-files");
@@ -47,7 +47,7 @@ function ngGenerateMockFn(options) {
47
47
  if (!(new RegExp(`./${dasherizeModelName}/index`).test(currentComponentIndex))) {
48
48
  currentComponentIndex = `export * from './${dasherizeModelName}/index';\n` + currentComponentIndex;
49
49
  }
50
- currentComponentIndex = `${currentComponentIndex.split('\n').filter((e) => !!e).sort().join('\n')}\n`;
50
+ currentComponentIndex = `${currentComponentIndex.split('\n').filter((e) => !!e).toSorted().join('\n')}\n`;
51
51
  tree.overwrite(barrelPath, currentComponentIndex);
52
52
  }
53
53
  return tree;
@@ -77,7 +77,7 @@ export interface Combine<%= apiModel %>Config <% if (identified) { %>extends Com
77
77
  * @param items the items to be combined
78
78
  * @param config the combine configuration
79
79
  */
80
- export function combine<%= dapiModels %>(
80
+ export function combine<%= apiModels %>(
81
81
  items: RecursivePartial<<%= apiModel %>>[] = [<%= apiModel %>Repository.DEFAULT],
82
82
  <% if (!identified) { %>_<% } %>config: Partial<Combine<%= apiModel %>Config> = {}
83
83
  ): CombineResult<Mock<%= apiModel %>> {
@@ -52,6 +52,7 @@ export default [
52
52
  name: '<%= projectPackageName %>/ignores',
53
53
  ignores: [
54
54
  '/src/api',
55
+ '/src/constants',
55
56
  '/src/models/base',
56
57
  '/src/spec/api-mocks.ts',
57
58
  '/src/spec/operation-adapter.ts',
@@ -1,4 +1,4 @@
1
1
  export * from './api';
2
+ export * from './constants/servers';
2
3
  export * from './helpers';
3
4
  export * from './models';
4
-
@@ -17,6 +17,7 @@
17
17
  "include": [
18
18
  "./src/api/**/*.ts",
19
19
  "./src/models/**/*.ts",
20
- "./src/helpers/**/*.ts"
20
+ "./src/helpers/**/*.ts",
21
+ "./src/constants/**/*.ts"
21
22
  ]
22
23
  }