@ama-sdk/schematics 11.5.0-prerelease.2 → 11.5.0-prerelease.4
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 +9 -9
- 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/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/schematics/typescript/shell/index.d.ts.map +1 -1
- package/schematics/typescript/shell/index.js +14 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "11.5.0-prerelease.
|
|
3
|
+
"version": "11.5.0-prerelease.4",
|
|
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.5.0-prerelease.
|
|
60
|
+
"@ama-sdk/core": "^11.5.0-prerelease.4",
|
|
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.5.0-prerelease.
|
|
65
|
+
"@o3r/schematics": "^11.5.0-prerelease.4",
|
|
66
66
|
"@openapitools/openapi-generator-cli": "~2.14.0",
|
|
67
67
|
"@schematics/angular": "~18.2.0"
|
|
68
68
|
},
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"tslib": "^2.6.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@ama-sdk/core": "^11.5.0-prerelease.
|
|
82
|
+
"@ama-sdk/core": "^11.5.0-prerelease.4",
|
|
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.5.0-prerelease.
|
|
89
|
-
"@o3r/eslint-plugin": "^11.5.0-prerelease.
|
|
90
|
-
"@o3r/schematics": "^11.5.0-prerelease.
|
|
91
|
-
"@o3r/telemetry": "^11.5.0-prerelease.
|
|
92
|
-
"@o3r/test-helpers": "^11.5.0-prerelease.
|
|
88
|
+
"@o3r/build-helpers": "^11.5.0-prerelease.4",
|
|
89
|
+
"@o3r/eslint-plugin": "^11.5.0-prerelease.4",
|
|
90
|
+
"@o3r/schematics": "^11.5.0-prerelease.4",
|
|
91
|
+
"@o3r/telemetry": "^11.5.0-prerelease.4",
|
|
92
|
+
"@o3r/test-helpers": "^11.5.0-prerelease.4",
|
|
93
93
|
"@openapitools/openapi-generator-cli": "~2.14.0",
|
|
94
94
|
"@schematics/angular": "~18.2.0",
|
|
95
95
|
"@stylistic/eslint-plugin-ts": "~2.4.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAIL,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAC,4CAA4C,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAIL,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAC,4CAA4C,EAAC,MAAM,UAAU,CAAC;AAsJ3E;;;GAGG;AACH,eAAO,MAAM,uBAAuB,YAAa,4CAA4C,wBAG5F,CAAC"}
|
|
@@ -119,23 +119,20 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
119
119
|
if (options.specPackageRegistry && specScope) {
|
|
120
120
|
const workspaceRootNpmrcPath = node_path_1.posix.join(tree.root.path, '.npmrc');
|
|
121
121
|
const standaloneNpmrcPath = node_path_1.posix.join(targetPath, '.npmrc');
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
npmrc = tree.readText(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
else {
|
|
137
|
-
tree.create(standaloneNpmrcPath, npmrc);
|
|
138
|
-
}
|
|
122
|
+
const editNpmrc = (npmrcPath, create = false) => {
|
|
123
|
+
const exists = tree.exists(npmrcPath);
|
|
124
|
+
let npmrc = exists ? tree.readText(npmrcPath) : '';
|
|
125
|
+
npmrc = `@${specScope}:registry=${options.specPackageRegistry}\n` + npmrc;
|
|
126
|
+
if (exists) {
|
|
127
|
+
tree.overwrite(npmrcPath, npmrc);
|
|
128
|
+
}
|
|
129
|
+
else if (create) {
|
|
130
|
+
tree.create(npmrcPath, npmrc);
|
|
131
|
+
}
|
|
132
|
+
return exists;
|
|
133
|
+
};
|
|
134
|
+
const workspaceRootNpmrcExists = editNpmrc(workspaceRootNpmrcPath);
|
|
135
|
+
editNpmrc(standaloneNpmrcPath, !workspaceRootNpmrcExists);
|
|
139
136
|
}
|
|
140
137
|
}
|
|
141
138
|
const baseRule = (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./templates/base'), [
|