@o3r/logger 13.0.0-prerelease.3 → 13.0.0-prerelease.4

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/logger",
3
- "version": "13.0.0-prerelease.3",
3
+ "version": "13.0.0-prerelease.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -16,8 +16,8 @@
16
16
  "@angular/platform-browser-dynamic": "^20.0.0",
17
17
  "@fullstory/browser": "^2.0.0",
18
18
  "@ngrx/store": "^20.0.0",
19
- "@o3r/core": "^13.0.0-prerelease.3",
20
- "@o3r/schematics": "^13.0.0-prerelease.3",
19
+ "@o3r/core": "^13.0.0-prerelease.4",
20
+ "@o3r/schematics": "^13.0.0-prerelease.4",
21
21
  "@schematics/angular": "^20.0.0",
22
22
  "logrocket": "^10.0.0",
23
23
  "logrocket-ngrx": "^0.2.1",
@@ -56,7 +56,7 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@o3r/schematics": "^13.0.0-prerelease.3",
59
+ "@o3r/schematics": "^13.0.0-prerelease.4",
60
60
  "tslib": "^2.6.2"
61
61
  },
62
62
  "engines": {
@@ -1,4 +1,4 @@
1
- import type { Rule } from '@angular-devkit/schematics';
1
+ import { type Rule } from '@angular-devkit/schematics';
2
2
  import type { NgAddSchematicsSchema } from './schema';
3
3
  /**
4
4
  * Add Otter logger to an Angular Project
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAgDlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA6BlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
4
  const path = require("node:path");
5
- const schematics_1 = require("@o3r/schematics");
5
+ const schematics_1 = require("@angular-devkit/schematics");
6
+ const schematics_2 = require("@o3r/schematics");
6
7
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
7
8
  /**
8
9
  * List of external dependencies to be added to the project as peer dependencies
@@ -22,30 +23,14 @@ const devDependenciesToInstall = [];
22
23
  */
23
24
  function ngAddFn(options) {
24
25
  /* ng add rules */
25
- return (tree, context) => {
26
- const workspaceProject = options.projectName ? (0, schematics_1.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
27
- const projectDirectory = workspaceProject?.root || '.';
28
- const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
29
- const externalDependenciesInfo = (0, schematics_1.getExternalDependenciesInfo)({
30
- devDependenciesToInstall,
31
- dependenciesToInstall,
32
- projectType: workspaceProject?.projectType,
33
- o3rPackageJsonPath: packageJsonPath,
34
- projectPackageJson
35
- }, context.logger);
36
- return (0, schematics_1.setupDependencies)({
37
- projectName: options.projectName,
38
- dependencies: {
39
- ...(0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion),
40
- ...externalDependenciesInfo
41
- }
42
- });
43
- };
26
+ return (0, schematics_1.chain)([
27
+ (0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall })
28
+ ]);
44
29
  }
45
30
  /**
46
31
  * Add Otter logger to an Angular Project
47
32
  * @param options
48
33
  */
49
- const ngAdd = (options) => (0, schematics_1.createOtterSchematic)(ngAddFn)(options);
34
+ const ngAdd = (options) => (0, schematics_2.createOtterSchematic)(ngAddFn)(options);
50
35
  exports.ngAdd = ngAdd;
51
36
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,4 @@
1
- import type { SchematicOptionObject } from '@o3r/schematics';
2
- export interface NgAddSchematicsSchema extends SchematicOptionObject {
3
- /** Project name */
4
- projectName?: string | undefined;
5
- /** Use a pinned version for otter packages */
6
- exactO3rVersion?: boolean;
1
+ import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
2
+ export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
7
3
  }
8
4
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;CAAG"}