@o3r/schematics 11.5.0-prerelease.6 → 11.5.0-prerelease.61

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "11.5.0-prerelease.6",
3
+ "version": "11.5.0-prerelease.61",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  "@angular-devkit/core": "~18.2.0",
31
31
  "@angular-devkit/schematics": "~18.2.0",
32
32
  "@angular/cli": "~18.2.0",
33
- "@o3r/telemetry": "^11.5.0-prerelease.6",
33
+ "@o3r/telemetry": "^11.5.0-prerelease.61",
34
34
  "@schematics/angular": "~18.2.0",
35
35
  "eslint": "^8.57.0",
36
36
  "rxjs": "^7.8.1",
@@ -78,16 +78,16 @@
78
78
  "@angular/core": "~18.2.0",
79
79
  "@angular/platform-browser": "~18.2.0",
80
80
  "@angular/platform-browser-dynamic": "~18.2.0",
81
- "@babel/core": "~7.25.0",
82
- "@babel/preset-typescript": "~7.25.0",
81
+ "@babel/core": "~7.26.0",
82
+ "@babel/preset-typescript": "~7.26.0",
83
83
  "@compodoc/compodoc": "^1.1.19",
84
84
  "@nx/eslint": "~19.5.0",
85
85
  "@nx/eslint-plugin": "~19.5.0",
86
86
  "@nx/jest": "~19.5.0",
87
87
  "@nx/js": "~19.5.0",
88
- "@o3r/build-helpers": "^11.5.0-prerelease.6",
89
- "@o3r/eslint-plugin": "^11.5.0-prerelease.6",
90
- "@o3r/telemetry": "^11.5.0-prerelease.6",
88
+ "@o3r/build-helpers": "^11.5.0-prerelease.61",
89
+ "@o3r/eslint-plugin": "^11.5.0-prerelease.61",
90
+ "@o3r/telemetry": "^11.5.0-prerelease.61",
91
91
  "@schematics/angular": "~18.2.0",
92
92
  "@stylistic/eslint-plugin-ts": "~2.4.0",
93
93
  "@types/inquirer": "~8.2.10",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAIvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAqCtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAIvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAoCtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAEtD,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
+ const public_api_1 = require("../../src/public_api");
4
5
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
6
  const path = require("node:path");
6
7
  /**
@@ -9,10 +10,9 @@ const path = require("node:path");
9
10
  */
10
11
  function ngAddFn(options) {
11
12
  const schematicsDependencies = ['@angular-devkit/architect', '@angular-devkit/schematics', '@angular-devkit/core', '@schematics/angular', 'globby'];
12
- return async (_, context) => {
13
+ return (_, context) => {
13
14
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
14
- const { getExternalDependenciesVersionRange, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
15
- const dependencies = Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath, context.logger)).reduce((acc, [dep, range]) => {
15
+ const dependencies = Object.entries((0, public_api_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath, context.logger)).reduce((acc, [dep, range]) => {
16
16
  acc[dep] = {
17
17
  inManifest: [{
18
18
  range,
@@ -21,7 +21,7 @@ function ngAddFn(options) {
21
21
  };
22
22
  return acc;
23
23
  }, {});
24
- Object.entries(getExternalDependenciesVersionRange(schematicsDependencies, packageJsonPath, context.logger))
24
+ Object.entries((0, public_api_1.getExternalDependenciesVersionRange)(schematicsDependencies, packageJsonPath, context.logger))
25
25
  .forEach(([dep, range]) => {
26
26
  dependencies[dep] = {
27
27
  inManifest: [{
@@ -30,7 +30,7 @@ function ngAddFn(options) {
30
30
  }]
31
31
  };
32
32
  });
33
- return setupDependencies({
33
+ return (0, public_api_1.setupDependencies)({
34
34
  projectName: options.projectName,
35
35
  dependencies,
36
36
  skipInstall: false
@@ -41,9 +41,8 @@ function ngAddFn(options) {
41
41
  * Add Otter schematics to an Angular Project
42
42
  * @param options
43
43
  */
44
- const ngAdd = (options) => async () => {
45
- const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => require('@o3r/schematics'));
46
- return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
44
+ const ngAdd = (options) => () => {
45
+ return (0, public_api_1.createSchematicWithMetricsIfInstalled)(ngAddFn)(options);
47
46
  };
48
47
  exports.ngAdd = ngAdd;
49
48
  //# sourceMappingURL=index.js.map