@o3r/core 10.3.0-prerelease.42 → 10.3.0-prerelease.44
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "10.3.0-prerelease.
|
|
3
|
+
"version": "10.3.0-prerelease.44",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@ngrx/store": "~17.2.0",
|
|
27
27
|
"@nrwl/devkit": "~18.3.0",
|
|
28
28
|
"@nx/angular": "~18.3.0",
|
|
29
|
-
"@o3r/telemetry": "^10.3.0-prerelease.
|
|
29
|
+
"@o3r/telemetry": "^10.3.0-prerelease.44",
|
|
30
30
|
"@schematics/angular": "~17.3.0",
|
|
31
31
|
"chokidar": "^3.5.2",
|
|
32
32
|
"globby": "^11.1.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@o3r/schematics": "^10.3.0-prerelease.
|
|
67
|
+
"@o3r/schematics": "^10.3.0-prerelease.44",
|
|
68
68
|
"tslib": "^2.6.2",
|
|
69
69
|
"uuid": "^9.0.0"
|
|
70
70
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@ngrx/router-store": "~17.2.0",
|
|
75
75
|
"@ngrx/effects": "~17.2.0",
|
|
76
76
|
"@ngrx/store-devtools": "~17.2.0",
|
|
77
|
-
"@o3r/store-sync": "^10.3.0-prerelease.
|
|
77
|
+
"@o3r/store-sync": "^10.3.0-prerelease.44",
|
|
78
78
|
"@types/jest": "~29.5.2",
|
|
79
79
|
"nx": "~18.3.0",
|
|
80
80
|
"@typescript-eslint/parser": "^7.2.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/component/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8F,IAAI,EAAoD,MAAM,4BAA4B,CAAC;AA0BhM,OAAO,EAAE,4CAA4C,EAAE,MAAM,UAAU,CAAC;AAExE,eAAO,MAAM,gBAAgB,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/component/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8F,IAAI,EAAoD,MAAM,4BAA4B,CAAC;AA0BhM,OAAO,EAAE,4CAA4C,EAAE,MAAM,UAAU,CAAC;AAExE,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAmQ5C;;;GAGG;AACH,eAAO,MAAM,4BAA4B,iEAAwE,CAAC"}
|
|
@@ -143,14 +143,17 @@ function ngGenerateComponentContainerFn(options) {
|
|
|
143
143
|
let specSourceFile = ts.createSourceFile(o3rSpecPath, tree.readText(o3rSpecPath), ts.ScriptTarget.ES2020, true);
|
|
144
144
|
const recorder = tree.beginUpdate(o3rSpecPath);
|
|
145
145
|
const lastImport = [...specSourceFile.statements].reverse().find((statement) => ts.isImportDeclaration(statement));
|
|
146
|
-
const changes = [
|
|
146
|
+
const changes = [
|
|
147
|
+
(0, ast_utils_1.insertImport)(specSourceFile, o3rSpecPath, 'Component', '@angular/core'),
|
|
148
|
+
new change_1.InsertChange(o3rSpecPath, lastImport?.getEnd() || 0, `
|
|
147
149
|
@Component({
|
|
148
150
|
template: '',
|
|
149
151
|
selector: '${properties.presenterComponentSelector}',
|
|
150
152
|
standalone: true
|
|
151
153
|
})
|
|
152
154
|
class Mock${properties.presenterComponentName} {}
|
|
153
|
-
`)
|
|
155
|
+
`)
|
|
156
|
+
];
|
|
154
157
|
(0, change_1.applyToUpdateRecorder)(recorder, changes);
|
|
155
158
|
tree.commitUpdate(recorder);
|
|
156
159
|
specSourceFile = ts.createSourceFile(o3rSpecPath, tree.readText(o3rSpecPath), ts.ScriptTarget.ES2020, true);
|
|
@@ -14,12 +14,12 @@ const shouldOtterLinterBeInstalled = async (context) => {
|
|
|
14
14
|
try {
|
|
15
15
|
require.resolve(`${linterPackageName}/package.json`);
|
|
16
16
|
if (context.interactive) {
|
|
17
|
-
useOtterLinter = await (0, prompt_1.askConfirmation)(`You already have eslint installed. Would you like to add otter config rules for eslint
|
|
17
|
+
useOtterLinter = await (0, prompt_1.askConfirmation)(`You already have eslint installed. Would you like to add otter config rules for eslint?
|
|
18
18
|
Otherwise, you can add them later via this command: ng add @o3r/eslint-config-otter`, true);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
catch {
|
|
22
|
-
context.logger.info(`eslint package not installed. Skipping otter linter phase
|
|
22
|
+
context.logger.info(`eslint package not installed. Skipping otter linter phase!
|
|
23
23
|
You can add otter linter config rules later to the project via this command: ng add @o3r/eslint-config-otter`);
|
|
24
24
|
}
|
|
25
25
|
return useOtterLinter;
|