@o3r/core 12.5.0-prerelease.23 → 12.5.0-prerelease.3
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 +11 -10
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +2 -3
- package/schematics/rule-factories/additional-modules/index.d.ts.map +1 -1
- package/schematics/rule-factories/additional-modules/index.js +18 -16
- package/schematics/rule-factories/store/index.d.ts.map +1 -1
- package/schematics/rule-factories/store/index.js +8 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "12.5.0-prerelease.
|
|
3
|
+
"version": "12.5.0-prerelease.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@ngrx/entity": "^19.0.0",
|
|
40
40
|
"@ngrx/store": "^19.0.0",
|
|
41
41
|
"@nx/angular": "~20.8.0",
|
|
42
|
-
"@o3r/telemetry": "^12.5.0-prerelease.
|
|
42
|
+
"@o3r/telemetry": "^12.5.0-prerelease.3",
|
|
43
43
|
"@schematics/angular": "^19.0.0",
|
|
44
44
|
"chokidar": "^4.0.3",
|
|
45
45
|
"globby": "^11.1.0",
|
|
@@ -78,11 +78,12 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
81
|
+
"@o3r/schematics": "^12.5.0-prerelease.3",
|
|
82
82
|
"tslib": "^2.6.2",
|
|
83
83
|
"uuid": "^11.0.5"
|
|
84
84
|
},
|
|
85
85
|
"generatorDependencies": {
|
|
86
|
+
"@angular/material": "~19.2.0",
|
|
86
87
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
87
88
|
"@ngrx/effects": "~19.2.0",
|
|
88
89
|
"@ngrx/entity": "~19.2.0",
|
|
@@ -90,19 +91,19 @@
|
|
|
90
91
|
"@ngrx/store": "~19.2.0",
|
|
91
92
|
"@ngrx/store-devtools": "~19.2.0",
|
|
92
93
|
"@nx/eslint-plugin": "~20.8.0",
|
|
93
|
-
"@o3r/store-sync": "^12.5.0-prerelease.
|
|
94
|
+
"@o3r/store-sync": "^12.5.0-prerelease.3",
|
|
94
95
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
95
96
|
"@types/jest": "~29.5.2",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "~8.
|
|
97
|
-
"@typescript-eslint/parser": "~8.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "~8.34.0",
|
|
98
|
+
"@typescript-eslint/parser": "~8.34.0",
|
|
98
99
|
"angular-eslint": "~19.4.0",
|
|
99
100
|
"cpy-cli": "^5.0.0",
|
|
100
|
-
"eslint": "~9.
|
|
101
|
+
"eslint": "~9.28.0",
|
|
101
102
|
"eslint-import-resolver-node": "~0.3.9",
|
|
102
103
|
"eslint-import-resolver-typescript": "~3.10.0",
|
|
103
|
-
"eslint-plugin-import": "~2.
|
|
104
|
+
"eslint-plugin-import": "~2.31.0",
|
|
104
105
|
"eslint-plugin-import-newlines": "~1.4.0",
|
|
105
|
-
"eslint-plugin-jest": "~28.
|
|
106
|
+
"eslint-plugin-jest": "~28.13.0",
|
|
106
107
|
"eslint-plugin-jsdoc": "~50.8.0",
|
|
107
108
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
108
109
|
"eslint-plugin-unicorn": "~56.0.0",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"jest-preset-angular": "~14.5.0",
|
|
114
115
|
"jsonc-eslint-parser": "~2.4.0",
|
|
115
116
|
"nx": "~20.8.0",
|
|
116
|
-
"typescript-eslint": "~8.
|
|
117
|
+
"typescript-eslint": "~8.34.0",
|
|
117
118
|
"zone.js": "~0.15.0"
|
|
118
119
|
},
|
|
119
120
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAuGpC;;;GAGG;AACH,eAAO,MAAM,KAAK,wBAAgC,CAAC"}
|
|
@@ -52,10 +52,8 @@ function ngAddFn(options) {
|
|
|
52
52
|
return (0, schematics_1.chain)([
|
|
53
53
|
(0, schematics_2.setupSchematicsParamsForProject)({ '*:ng-add': { registerDevtool: options.withDevtool } }, options.projectName),
|
|
54
54
|
options.exactO3rVersion ? (0, schematics_2.setupSchematicsParamsForProject)({ '*:*': { exactO3rVersion: true } }, options.projectName) : (0, schematics_1.noop)(),
|
|
55
|
-
// Warning: this should always be executed before the setup dependencies as it modifies the options.dependencies
|
|
56
55
|
options.projectName ? (0, index_1.prepareProject)(options, dependenciesSetupConfig) : (0, schematics_1.noop)(),
|
|
57
56
|
(0, schematics_2.registerPackageCollectionSchematics)(corePackageJsonContent),
|
|
58
|
-
(0, schematics_3.setupDependencies)(dependenciesSetupConfig),
|
|
59
57
|
async (t, c) => {
|
|
60
58
|
const { preset, externalPresets, ...forwardOptions } = options;
|
|
61
59
|
const presetOptions = { projectName: forwardOptions.projectName, exactO3rVersion: forwardOptions.exactO3rVersion, forwardOptions, isUsingEslintLegacy: (0, utils_1.isUsingLegacyConfig)(t) };
|
|
@@ -73,7 +71,8 @@ function ngAddFn(options) {
|
|
|
73
71
|
externalPresetRunner?.rule || (0, schematics_1.noop)()
|
|
74
72
|
])(t, c);
|
|
75
73
|
},
|
|
76
|
-
options.projectName ? (0, schematics_2.displayModuleListRule)({ packageName: options.projectName }) : (0, schematics_1.noop)()
|
|
74
|
+
options.projectName ? (0, schematics_2.displayModuleListRule)({ packageName: options.projectName }) : (0, schematics_1.noop)(),
|
|
75
|
+
(0, schematics_3.setupDependencies)(dependenciesSetupConfig)
|
|
77
76
|
]);
|
|
78
77
|
};
|
|
79
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/additional-modules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/additional-modules/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AAuBzB;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CA4MrL"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateAdditionalModules = updateAdditionalModules;
|
|
4
|
+
const fs = require("node:fs");
|
|
4
5
|
const path = require("node:path");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
8
|
const utility_1 = require("@schematics/angular/utility");
|
|
8
9
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
9
10
|
const change_1 = require("@schematics/angular/utility/change");
|
|
11
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
10
12
|
const ts = require("typescript");
|
|
11
|
-
const
|
|
13
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', '..', 'package.json');
|
|
14
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
|
12
15
|
const ngrxStoreDevtoolsDep = '@ngrx/store-devtools';
|
|
13
16
|
/**
|
|
14
17
|
* Add additional modules for dev only
|
|
@@ -21,22 +24,21 @@ function updateAdditionalModules(options, dependenciesSetupConfig) {
|
|
|
21
24
|
/**
|
|
22
25
|
* Update package.json to add additional modules dependencies
|
|
23
26
|
* @param tree
|
|
24
|
-
* @param context
|
|
25
27
|
*/
|
|
26
|
-
const updatePackageJson = (tree
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
const updatePackageJson = (tree) => {
|
|
29
|
+
const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
|
|
30
|
+
const types = (0, schematics_2.getProjectNewDependenciesTypes)(workspaceProject);
|
|
31
|
+
dependenciesSetupConfig.dependencies.chokidar = {
|
|
32
|
+
inManifest: [{
|
|
33
|
+
range: packageJson.peerDependencies.chokidar,
|
|
34
|
+
types: [dependencies_1.NodeDependencyType.Dev]
|
|
35
|
+
}]
|
|
36
|
+
};
|
|
37
|
+
dependenciesSetupConfig.dependencies[ngrxStoreDevtoolsDep] = {
|
|
38
|
+
inManifest: [{
|
|
39
|
+
range: packageJson.generatorDependencies[ngrxStoreDevtoolsDep],
|
|
40
|
+
types
|
|
41
|
+
}]
|
|
40
42
|
};
|
|
41
43
|
return tree;
|
|
42
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAoBzB;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,uBAAuB,EAAE,wBAAwB,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACjK,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,IAAI,CAmIrD"}
|
|
@@ -48,21 +48,17 @@ function updateStore(options, projectType) {
|
|
|
48
48
|
const updatePackageJson = (tree, context) => {
|
|
49
49
|
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
50
50
|
const workspaceProject = (options.projectName && workspaceConfig?.projects?.[options.projectName]) || undefined;
|
|
51
|
-
const projectDirectory = workspaceProject?.root || '.';
|
|
52
|
-
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
53
51
|
const appDeps = [ngrxEffectsDep, ngrxRouterStore, ngrxRouterStoreDevToolDep];
|
|
54
52
|
const corePeerDeps = [ngrxEntityDep, ngrxStoreDep];
|
|
55
53
|
const dependenciesList = projectType === 'application' ? [...corePeerDeps, ...appDeps] : [...corePeerDeps];
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}, context.logger)
|
|
65
|
-
};
|
|
54
|
+
Object.entries((0, schematics_2.getExternalDependenciesVersionRange)(dependenciesList, corePackageJsonPath, context.logger)).forEach(([dep, range]) => {
|
|
55
|
+
options.dependenciesSetupConfig.dependencies[dep] = {
|
|
56
|
+
inManifest: [{
|
|
57
|
+
range,
|
|
58
|
+
types: (0, schematics_2.getProjectNewDependenciesTypes)(workspaceProject)
|
|
59
|
+
}]
|
|
60
|
+
};
|
|
61
|
+
});
|
|
66
62
|
};
|
|
67
63
|
/**
|
|
68
64
|
* Edit main module with the translation required configuration
|