@o3r/core 10.3.0-prerelease.63 → 10.3.0-prerelease.65
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.65",
|
|
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.65",
|
|
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.65",
|
|
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.65",
|
|
78
78
|
"@types/jest": "~29.5.2",
|
|
79
79
|
"nx": "~18.3.0",
|
|
80
80
|
"@typescript-eslint/parser": "^7.2.0",
|
|
@@ -59,7 +59,7 @@ function updateAdditionalModules(options, dependenciesSetupConfig) {
|
|
|
59
59
|
if ((0, ast_utils_1.isImported)(sourceFile, 'StoreDevtoolsModule', ngrxStoreDevtoolsDep) || (0, ast_utils_1.isImported)(sourceFile, 'additionalModules', '../environments/environment')) {
|
|
60
60
|
return tree;
|
|
61
61
|
}
|
|
62
|
-
const addImportToModuleFile = (name, file, moduleFunction) => additionalRules.push((0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code
|
|
62
|
+
const addImportToModuleFile = (name, file, moduleFunction) => additionalRules.push((0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `\n${external(name, file)}${moduleFunction}`));
|
|
63
63
|
addImportToModuleFile('additionalModules', '../environments/environment');
|
|
64
64
|
return (0, schematics_1.chain)(additionalRules)(tree, context);
|
|
65
65
|
};
|
|
@@ -79,7 +79,7 @@ function updateStore(options, projectType) {
|
|
|
79
79
|
}
|
|
80
80
|
let recorder = tree.beginUpdate(moduleFilePath);
|
|
81
81
|
const { moduleIndex } = (0, schematics_2.getModuleIndex)(sourceFile, sourceFileContent);
|
|
82
|
-
const addImportToModuleFile = (name, file, moduleFunction) => additionalRules.push((0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code
|
|
82
|
+
const addImportToModuleFile = (name, file, moduleFunction) => additionalRules.push((0, utility_1.addRootImport)(options.projectName, ({ code, external }) => code `\n${external(name, file)}${moduleFunction}`));
|
|
83
83
|
const insertImportToModuleFile = (name, file, isDefault) => recorder = (0, schematics_2.insertImportToModuleFile)(name, file, sourceFile, recorder, moduleFilePath, isDefault);
|
|
84
84
|
const insertBeforeModule = (line) => recorder = (0, schematics_2.insertBeforeModule)(line, sourceFileContent, recorder, moduleIndex);
|
|
85
85
|
addImportToModuleFile('EffectsModule', '@ngrx/effects', '.forRoot([])');
|