@o3r/dynamic-content 12.3.0-prerelease.47 → 12.3.0-prerelease.49

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/dynamic-content",
3
- "version": "12.3.0-prerelease.47",
3
+ "version": "12.3.0-prerelease.49",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,8 +42,8 @@
42
42
  "@angular/core": "^19.0.0",
43
43
  "@angular/platform-browser-dynamic": "^19.0.0",
44
44
  "@ngrx/store": "^19.0.0",
45
- "@o3r/core": "^12.3.0-prerelease.47",
46
- "@o3r/schematics": "^12.3.0-prerelease.47",
45
+ "@o3r/core": "^12.3.0-prerelease.49",
46
+ "@o3r/schematics": "^12.3.0-prerelease.49",
47
47
  "@schematics/angular": "^19.0.0",
48
48
  "cheerio": "^1.0.0-rc.10",
49
49
  "express-interceptor": "^1.2.0",
@@ -72,6 +72,7 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
+ "@o3r/schematics": "^12.3.0-prerelease.49",
75
76
  "tslib": "^2.6.2"
76
77
  },
77
78
  "engines": {
@@ -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;AACpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAyBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAKtD,CAAC"}
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;AAMpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAkBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
@@ -2,23 +2,18 @@
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
6
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
6
- const reportMissingSchematicsDep = (logger) => (reason) => {
7
- logger.error(`[ERROR]: Adding @o3r/apis-manager has failed.
8
- You need to install '@o3r/schematics' to be able to use the o3r apis-manager package. Please run 'ng add @o3r/schematics' .`);
9
- throw reason;
10
- };
11
7
  /**
12
8
  * Add Otter dynamic-content to an Angular Project
13
9
  * @param options
14
10
  */
15
11
  function ngAddFn(options) {
16
12
  /* ng add rules */
17
- return async (tree) => {
18
- const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
19
- return setupDependencies({
13
+ return (tree) => {
14
+ return (0, schematics_1.setupDependencies)({
20
15
  projectName: options.projectName,
21
- dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
16
+ dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
22
17
  });
23
18
  };
24
19
  }
@@ -26,9 +21,6 @@ function ngAddFn(options) {
26
21
  * Add Otter dynamic-content to an Angular Project
27
22
  * @param options
28
23
  */
29
- const ngAdd = (options) => async (_, { logger }) => {
30
- const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
31
- return createOtterSchematic(ngAddFn)(options);
32
- };
24
+ const ngAdd = (options) => (0, schematics_1.createOtterSchematic)(ngAddFn)(options);
33
25
  exports.ngAdd = ngAdd;
34
26
  //# sourceMappingURL=index.js.map