@ama-sdk/schematics 11.2.0-prerelease.50 → 11.2.0-prerelease.52
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/package.json +8 -8
- package/schematics/helpers/read-package.js +1 -1
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen-tests.jar +0 -0
- package/schematics/java/client-core/swagger-codegen-java-client/target/javaClient-swagger-codegen.jar +0 -0
- package/schematics/migrate/index.d.ts.map +1 -1
- package/schematics/migrate/index.js +2 -1
- package/schematics/ng-add/index.js +3 -3
- package/schematics/typescript/core/index.js +1 -1
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "11.2.0-prerelease.
|
|
3
|
+
"version": "11.2.0-prerelease.52",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@ama-sdk/core": "^11.2.0-prerelease.
|
|
60
|
+
"@ama-sdk/core": "^11.2.0-prerelease.52",
|
|
61
61
|
"@angular-devkit/core": "~18.2.0",
|
|
62
62
|
"@angular-devkit/schematics": "~18.2.0",
|
|
63
63
|
"@angular-devkit/schematics-cli": "^18.0.5",
|
|
64
64
|
"@angular/cli": "~18.2.0",
|
|
65
|
-
"@o3r/schematics": "^11.2.0-prerelease.
|
|
65
|
+
"@o3r/schematics": "^11.2.0-prerelease.52",
|
|
66
66
|
"@openapitools/openapi-generator-cli": "~2.13.0",
|
|
67
67
|
"@schematics/angular": "~18.2.0"
|
|
68
68
|
},
|
|
@@ -79,16 +79,16 @@
|
|
|
79
79
|
"tslib": "^2.6.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@ama-sdk/core": "^11.2.0-prerelease.
|
|
82
|
+
"@ama-sdk/core": "^11.2.0-prerelease.52",
|
|
83
83
|
"@angular-devkit/schematics-cli": "^18.0.5",
|
|
84
84
|
"@angular-eslint/eslint-plugin": "~18.3.0",
|
|
85
85
|
"@angular/cli": "~18.2.0",
|
|
86
86
|
"@nx/eslint-plugin": "~19.5.0",
|
|
87
87
|
"@nx/jest": "~19.5.0",
|
|
88
|
-
"@o3r/build-helpers": "^11.2.0-prerelease.
|
|
89
|
-
"@o3r/eslint-plugin": "^11.2.0-prerelease.
|
|
90
|
-
"@o3r/schematics": "^11.2.0-prerelease.
|
|
91
|
-
"@o3r/test-helpers": "^11.2.0-prerelease.
|
|
88
|
+
"@o3r/build-helpers": "^11.2.0-prerelease.52",
|
|
89
|
+
"@o3r/eslint-plugin": "^11.2.0-prerelease.52",
|
|
90
|
+
"@o3r/schematics": "^11.2.0-prerelease.52",
|
|
91
|
+
"@o3r/test-helpers": "^11.2.0-prerelease.52",
|
|
92
92
|
"@openapitools/openapi-generator-cli": "~2.13.0",
|
|
93
93
|
"@schematics/angular": "~18.2.0",
|
|
94
94
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
@@ -6,7 +6,7 @@ const path = require("node:path");
|
|
|
6
6
|
/** Get generator package.json */
|
|
7
7
|
const readPackageJson = async () => {
|
|
8
8
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
9
|
-
return JSON.parse(await node_fs_1.promises.readFile(packageJsonPath, { encoding: '
|
|
9
|
+
return JSON.parse(await node_fs_1.promises.readFile(packageJsonPath, { encoding: 'utf8' }));
|
|
10
10
|
};
|
|
11
11
|
exports.readPackageJson = readPackageJson;
|
|
12
12
|
//# sourceMappingURL=read-package.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/migrate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/migrate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAsC1D;;;GAGG;AACH,eAAO,MAAM,OAAO,YAAa,8BAA8B,wBAG9D,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.migrate = void 0;
|
|
4
4
|
const schematics_1 = require("@o3r/schematics");
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
6
7
|
const update_regen_script_1 = require("../ng-update/typescript/v11.0/update-regen-script");
|
|
7
8
|
const semver_1 = require("semver");
|
|
8
9
|
const is_typescript_project_1 = require("../helpers/is-typescript-project");
|
|
@@ -20,7 +21,7 @@ const tsMigrationMap = {
|
|
|
20
21
|
* @param options
|
|
21
22
|
*/
|
|
22
23
|
function migrateFn(options) {
|
|
23
|
-
const currentVersion =
|
|
24
|
+
const currentVersion = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.resolve)(__dirname, '..', '..', 'package.json'), { encoding: 'utf8' })).version;
|
|
24
25
|
const to = options.to || currentVersion;
|
|
25
26
|
const minimumVersion = (0, semver_1.minVersion)(to);
|
|
26
27
|
return (tree, context) => {
|
|
@@ -56,7 +56,7 @@ exports.updatePackageJsonScripts = updatePackageJsonScripts;
|
|
|
56
56
|
* @param tree
|
|
57
57
|
*/
|
|
58
58
|
const createOpenApiToolsConfig = (tree) => {
|
|
59
|
-
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: '
|
|
59
|
+
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: 'utf8' }));
|
|
60
60
|
const openApiGeneratorVersion = amaSdkSchematicsPackageJsonContent.openApiSupportedVersion.replace(/\^|~/, '');
|
|
61
61
|
const openApiDefaultStorageDir = '.openapi-generator';
|
|
62
62
|
if (tree.exists(openApiConfigPath)) {
|
|
@@ -85,7 +85,7 @@ const createOpenApiToolsConfig = (tree) => {
|
|
|
85
85
|
*/
|
|
86
86
|
const installOpenApiToolsCli = async (tree, context) => {
|
|
87
87
|
const packageJsonContent = tree.readJson(packageJsonPath);
|
|
88
|
-
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: '
|
|
88
|
+
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: 'utf8' }));
|
|
89
89
|
const amaSdkSchematicsOpenApiCliVersion = amaSdkSchematicsPackageJsonContent.peerDependencies?.['@openapitools/openapi-generator-cli'] || '';
|
|
90
90
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
91
91
|
packageJsonContent.devDependencies = { ...packageJsonContent.devDependencies, '@openapitools/openapi-generator-cli': amaSdkSchematicsOpenApiCliVersion };
|
|
@@ -114,7 +114,7 @@ const registerPackageSchematics = async (tree, context) => {
|
|
|
114
114
|
if (!tree.exists('angular.json')) {
|
|
115
115
|
return () => tree;
|
|
116
116
|
}
|
|
117
|
-
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: '
|
|
117
|
+
const amaSdkSchematicsPackageJsonContent = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', 'package.json'), { encoding: 'utf8' }));
|
|
118
118
|
const amaSdkSchematicsVersion = amaSdkSchematicsPackageJsonContent.version?.replace(/^v/, '');
|
|
119
119
|
const schematicsDependencies = ['@o3r/schematics'];
|
|
120
120
|
for (const dependency of schematicsDependencies) {
|
|
@@ -129,7 +129,7 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
129
129
|
else {
|
|
130
130
|
const specPath = path.isAbsolute(generatorOptions.specPath) || !options.directory ?
|
|
131
131
|
generatorOptions.specPath : path.join(options.directory, generatorOptions.specPath);
|
|
132
|
-
specContent = (0, node_fs_1.readFileSync)(specPath, { encoding: '
|
|
132
|
+
specContent = (0, node_fs_1.readFileSync)(specPath, { encoding: 'utf8' }).toString();
|
|
133
133
|
if (path.relative(process.cwd(), specPath).startsWith('..')) {
|
|
134
134
|
// TODO would be better to create files on tree instead of FS
|
|
135
135
|
// https://github.com/AmadeusITGroup/otter/issues/2078
|
|
Binary file
|