@o3r/third-party 12.3.0-prerelease.9 → 12.4.0-prerelease.0

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/third-party",
3
- "version": "12.3.0-prerelease.9",
3
+ "version": "12.4.0-prerelease.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,13 +12,14 @@
12
12
  "otter-module"
13
13
  ],
14
14
  "dependencies": {
15
+ "@o3r/schematics": "^12.4.0-prerelease.0",
15
16
  "tslib": "^2.6.2",
16
17
  "uuid": "^11.0.5"
17
18
  },
18
19
  "peerDependencies": {
19
20
  "@angular-devkit/schematics": "^19.0.0",
20
- "@o3r/core": "^12.3.0-prerelease.9",
21
- "@o3r/schematics": "^12.3.0-prerelease.9",
21
+ "@o3r/core": "^12.4.0-prerelease.0",
22
+ "@o3r/schematics": "^12.4.0-prerelease.0",
22
23
  "@schematics/angular": "^19.0.0",
23
24
  "rxjs": "^7.8.1",
24
25
  "typescript": "^5.5.4"
@@ -2,7 +2,7 @@ import type { SchematicOptionObject } from '@o3r/schematics';
2
2
  export interface NgAddIframeSchematicsSchema extends SchematicOptionObject {
3
3
  /** Path to the component */
4
4
  path: string;
5
- /** Skip the linter process */
5
+ /** Skip the linter process which includes the run of EsLint and EditorConfig rules */
6
6
  skipLinter: boolean;
7
7
  }
8
8
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/iframe-to-component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/iframe-to-component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IAEb,sFAAsF;IACtF,UAAU,EAAE,OAAO,CAAC;CACrB"}
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "skipLinter": {
12
12
  "type": "boolean",
13
- "description": "Skip the linter process",
13
+ "description": "Skip the linter process which includes EsLint and EditorConfig rules applying",
14
14
  "default": false
15
15
  }
16
16
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA4BlB;;;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":"AAEA,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAOpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAoBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,KAAG,IAEtD,CAAC"}
@@ -4,26 +4,20 @@ exports.ngAdd = void 0;
4
4
  const fs = require("node:fs");
5
5
  const path = require("node:path");
6
6
  const schematics_1 = require("@angular-devkit/schematics");
7
- const reportMissingSchematicsDep = (logger) => (reason) => {
8
- logger.error(`[ERROR]: Adding @o3r/third-party has failed.
9
- If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the configuration package. Please run 'ng add @o3r/core' .
10
- Otherwise, use the error message as guidance.`);
11
- throw reason;
12
- };
7
+ const schematics_2 = require("@o3r/schematics");
13
8
  /**
14
9
  * Add Otter third-party to an Angular Project
15
10
  * @param options
16
11
  */
17
12
  function ngAddFn(options) {
18
- return async (tree) => {
13
+ return (tree) => {
19
14
  const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
20
15
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
21
- const { getPackageInstallConfig, registerPackageCollectionSchematics, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
22
16
  return (0, schematics_1.chain)([
23
- registerPackageCollectionSchematics(packageJson),
24
- setupDependencies({
17
+ (0, schematics_2.registerPackageCollectionSchematics)(packageJson),
18
+ (0, schematics_2.setupDependencies)({
25
19
  projectName: options.projectName,
26
- dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
20
+ dependencies: (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
27
21
  })
28
22
  ]);
29
23
  };
@@ -32,9 +26,8 @@ function ngAddFn(options) {
32
26
  * Add Otter third-party to an Angular Project
33
27
  * @param options
34
28
  */
35
- const ngAdd = (options) => async (_, { logger }) => {
36
- const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
37
- return createOtterSchematic(ngAddFn)(options);
29
+ const ngAdd = (options) => () => {
30
+ return (0, schematics_2.createOtterSchematic)(ngAddFn)(options);
38
31
  };
39
32
  exports.ngAdd = ngAdd;
40
33
  //# sourceMappingURL=index.js.map