@o3r/rules-engine 11.6.0-prerelease.47 → 11.6.0-prerelease.48
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RulesEngineExtractorBuilderSchema } from './schema';
|
|
2
|
-
export * from './schema';
|
|
1
|
+
import { type RulesEngineExtractorBuilderSchema } from './schema';
|
|
2
|
+
export type * from './schema';
|
|
3
3
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<RulesEngineExtractorBuilderSchema & import("@angular-devkit/core").JsonObject>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../builders/rules-engine-extractor/index.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,KAAK,iCAAiC,EACvC,MAAM,UAAU,CAAC;AAIlB,mBAAmB,UAAU,CAAC;;AAI9B,wBAmGI"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
3
|
const node_fs_1 = require("node:fs");
|
|
5
4
|
const node_path_1 = require("node:path");
|
|
6
5
|
const architect_1 = require("@angular-devkit/architect");
|
|
7
6
|
const extractors_1 = require("@o3r/extractors");
|
|
8
|
-
const globby_1 = tslib_1.__importDefault(require("globby"));
|
|
9
7
|
const helpers_1 = require("./helpers");
|
|
10
|
-
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports -- default import not working when used inside Otter mono-repository
|
|
9
|
+
const globby = require('globby');
|
|
11
10
|
const SCHEMA_FOLDER = 'fact-schemas';
|
|
12
11
|
exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderWithMetricsIfInstalled)(async (options, context) => {
|
|
13
12
|
context.reportRunning();
|
|
@@ -62,14 +61,14 @@ exports.default = (0, architect_1.createBuilder)((0, extractors_1.createBuilderW
|
|
|
62
61
|
.map(({ schemaFile }) => ({ fullPath: (0, node_path_1.resolve)((0, node_path_1.dirname)(metadataFilePath), schemaFile), relativePath: schemaFile }))), [])
|
|
63
62
|
.map(({ fullPath, relativePath }) => node_fs_1.promises.copyFile(fullPath, (0, node_path_1.resolve)(basePath, relativePath))));
|
|
64
63
|
/** Facts from the current project */
|
|
65
|
-
const newFactList = (await Promise.all((await Promise.all(options.factFilePatterns.map((pattern) => (
|
|
64
|
+
const newFactList = (await Promise.all((await Promise.all(options.factFilePatterns.map((pattern) => globby(pattern, { cwd: context.currentDirectory }))))
|
|
66
65
|
.flat()
|
|
67
66
|
.map((file, idx, arr) => {
|
|
68
67
|
context.reportProgress(idx, arr.length, `Parsing fact from ${file}`);
|
|
69
68
|
return extractor.extractFacts((0, node_path_1.resolve)(context.currentDirectory, file), schemaFolder, `./${SCHEMA_FOLDER}`);
|
|
70
69
|
}))).flat();
|
|
71
70
|
/** Operators from the current project */
|
|
72
|
-
const newOperatorList = (await Promise.all(options.operatorFilePatterns.map((pattern) => (
|
|
71
|
+
const newOperatorList = (await Promise.all(options.operatorFilePatterns.map((pattern) => globby(pattern, { cwd: context.currentDirectory })))).flat()
|
|
73
72
|
.flatMap((file, idx, arr) => {
|
|
74
73
|
context.reportProgress(idx, arr.length, `Parsing operator from ${file}`);
|
|
75
74
|
return extractor.extractOperators((0, node_path_1.resolve)(context.currentDirectory, file));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/rules-engine",
|
|
3
|
-
"version": "11.6.0-prerelease.
|
|
3
|
+
"version": "11.6.0-prerelease.48",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -49,17 +49,18 @@
|
|
|
49
49
|
"@ngrx/entity": "^18.0.0",
|
|
50
50
|
"@ngrx/store": "^18.0.0",
|
|
51
51
|
"@ngx-translate/core": "^15.0.0",
|
|
52
|
-
"@o3r/core": "^11.6.0-prerelease.
|
|
53
|
-
"@o3r/extractors": "^11.6.0-prerelease.
|
|
54
|
-
"@o3r/logger": "^11.6.0-prerelease.
|
|
55
|
-
"@o3r/schematics": "^11.6.0-prerelease.
|
|
52
|
+
"@o3r/core": "^11.6.0-prerelease.48",
|
|
53
|
+
"@o3r/extractors": "^11.6.0-prerelease.48",
|
|
54
|
+
"@o3r/logger": "^11.6.0-prerelease.48",
|
|
55
|
+
"@o3r/schematics": "^11.6.0-prerelease.48",
|
|
56
56
|
"@schematics/angular": "^18.2.0",
|
|
57
57
|
"globby": "^11.1.0",
|
|
58
58
|
"jasmine": "^5.0.0",
|
|
59
59
|
"jsonpath-plus": "^9.0.0 || ^10.0.0",
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
61
61
|
"typescript": "^5.5.4",
|
|
62
|
-
"typescript-json-schema": "^0.65.0"
|
|
62
|
+
"typescript-json-schema": "^0.65.0",
|
|
63
|
+
"ts-node": "~10.9.2"
|
|
63
64
|
},
|
|
64
65
|
"peerDependenciesMeta": {
|
|
65
66
|
"@angular-devkit/core": {
|