@o3r/application 9.3.0-alpha.6 → 9.3.0-alpha.61

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/application",
3
- "version": "9.3.0-alpha.6",
3
+ "version": "9.3.0-alpha.61",
4
4
  "description": "This module provides development help to monitor your Otter Application",
5
5
  "keywords": [
6
6
  "application",
@@ -25,12 +25,12 @@
25
25
  "@angular-devkit/schematics": "~16.2.0",
26
26
  "@angular/common": "~16.2.0",
27
27
  "@angular/core": "~16.2.0",
28
- "@o3r/core": "^9.3.0-alpha.6",
29
- "@o3r/dev-tools": "^9.3.0-alpha.6",
30
- "@o3r/logger": "^9.3.0-alpha.6",
31
- "@o3r/routing": "^9.3.0-alpha.6",
32
- "@o3r/schematics": "^9.3.0-alpha.6",
33
- "@o3r/testing": "^9.3.0-alpha.6",
28
+ "@o3r/core": "^9.3.0-alpha.61",
29
+ "@o3r/dev-tools": "^9.3.0-alpha.61",
30
+ "@o3r/logger": "^9.3.0-alpha.61",
31
+ "@o3r/routing": "^9.3.0-alpha.61",
32
+ "@o3r/schematics": "^9.3.0-alpha.61",
33
+ "@o3r/testing": "^9.3.0-alpha.61",
34
34
  "@schematics/angular": "~16.2.0",
35
35
  "rxjs": "^7.8.1",
36
36
  "typescript": "~5.1.6"
@@ -50,7 +50,7 @@
50
50
  "tslib": "^2.5.3"
51
51
  },
52
52
  "engines": {
53
- "node": ">=16.0.0"
53
+ "node": ">=18.0.0"
54
54
  },
55
55
  "schematics": "./collection.json",
56
56
  "module": "fesm2022/o3r-application.mjs",
@@ -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;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CA6E1D"}
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;AAG/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAiF1D"}
@@ -11,11 +11,12 @@ function ngAdd(options) {
11
11
  /* ng add rules */
12
12
  return async (tree, context) => {
13
13
  try {
14
- const { addImportToModuleFile, getAppModuleFilePath, getProjectDepType, getProjectRootDir, insertImportToModuleFile, ngAddPackages, getO3rPeerDeps } = await Promise.resolve().then(() => require('@o3r/schematics'));
14
+ const { addImportToModuleFile, getAppModuleFilePath, getWorkspaceConfig, insertImportToModuleFile, ngAddPackages, getO3rPeerDeps, getProjectNewDependenciesType } = await Promise.resolve().then(() => require('@o3r/schematics'));
15
15
  const { getDecoratorMetadata, isImported } = await Promise.resolve().then(() => require('@schematics/angular/utility/ast-utils'));
16
16
  const ts = await Promise.resolve().then(() => require('typescript'));
17
17
  const depsInfo = getO3rPeerDeps(path.resolve(__dirname, '..', '..', 'package.json'));
18
- const workingDirectory = getProjectRootDir(tree, options.projectName);
18
+ const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
19
+ const workingDirectory = workspaceProject?.root;
19
20
  const addAngularAnimationPreferences = () => {
20
21
  const moduleFilePath = getAppModuleFilePath(tree, context, options.projectName);
21
22
  if (!moduleFilePath) {
@@ -35,12 +36,13 @@ function ngAdd(options) {
35
36
  tree.commitUpdate(recorder);
36
37
  return tree;
37
38
  };
38
- const dependencyType = getProjectDepType(tree);
39
+ const dependencyType = getProjectNewDependenciesType(workspaceProject);
39
40
  return () => (0, schematics_1.chain)([
40
41
  ngAddPackages(depsInfo.o3rPeerDeps, {
41
42
  skipConfirmation: true,
42
43
  version: depsInfo.packageVersion,
43
44
  parentPackageInfo: depsInfo.packageName,
45
+ projectName: options.projectName,
44
46
  dependencyType,
45
47
  workingDirectory
46
48
  }),