@o3r/schematics 8.2.0-alpha.90 → 8.2.0-alpha.93

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/schematics",
3
- "version": "8.2.0-alpha.90",
3
+ "version": "8.2.0-alpha.93",
4
4
  "description": "Schematics module of the Otter framework",
5
5
  "main": "./src/index.js",
6
6
  "keywords": [
@@ -53,9 +53,9 @@
53
53
  "@nrwl/jest": "~15.9.0",
54
54
  "@nrwl/js": "~15.9.0",
55
55
  "@nrwl/linter": "~15.9.0",
56
- "@o3r/build-helpers": "^8.2.0-alpha.90",
57
- "@o3r/dev-tools": "^8.2.0-alpha.90",
58
- "@o3r/eslint-plugin": "^8.2.0-alpha.90",
56
+ "@o3r/build-helpers": "^8.2.0-alpha.93",
57
+ "@o3r/dev-tools": "^8.2.0-alpha.93",
58
+ "@o3r/eslint-plugin": "^8.2.0-alpha.93",
59
59
  "@schematics/angular": "~15.2.0",
60
60
  "@types/jest": "~28.1.2",
61
61
  "@types/node": "^17.0.45",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AA+B/E;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAuB5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AA+B/E;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAsB5B"}
@@ -34,22 +34,23 @@ class DevInstall extends tasks_1.NodePackageInstallTask {
34
34
  function ngAdd() {
35
35
  const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'comment-json', 'eslint', 'globby'];
36
36
  return async (tree, context) => {
37
+ context.logger.info('Running ng add for schematics');
37
38
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
38
39
  const treePackageJson = tree.readJson('./package.json');
39
40
  const packageJsonContent = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
40
41
  const getDependencyVersion = (dependency) => packageJsonContent?.dependencies?.[dependency] || packageJsonContent?.peerDependencies?.[dependency];
41
- schematicsDependencies.forEach((dependency) => {
42
+ for (const dependency of schematicsDependencies) {
42
43
  const version = getDependencyVersion(dependency);
43
44
  context.logger.info(`Installing ${dependency}${version || ''}`);
44
45
  treePackageJson.devDependencies = { ...packageJsonContent.devDependencies, [dependency]: version };
45
46
  context.addTask(new DevInstall({
46
- packageName: `${dependency}${version ? '@' + version : ''}`,
47
47
  hideOutput: false,
48
+ packageName: `${dependency}${version ? '@' + version : ''}`,
48
49
  quiet: false
49
50
  }));
50
- });
51
+ await (0, rxjs_1.lastValueFrom)(context.engine.executePostTasks());
52
+ }
51
53
  tree.overwrite('./package.json', JSON.stringify(treePackageJson));
52
- await (0, rxjs_1.lastValueFrom)(context.engine.executePostTasks());
53
54
  return () => tree;
54
55
  };
55
56
  }