@xyo-network/diviner-forecasting-method-arima 2.73.2 → 2.73.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/dist/docs.json +13 -13
- package/dist/index.d.mts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +102 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +60 -0
- package/dist/index.mjs.map +1 -0
- package/docs/functions/configurableArima.html +1 -1
- package/docs/types/PredictionPayload.html +1 -1
- package/docs/variables/arimaForecastingName.html +1 -1
- package/docs/variables/arimaOpts.html +1 -1
- package/docs/variables/commonOpts.html +1 -1
- package/docs/variables/seasonalArimaForecastingName.html +1 -1
- package/docs/variables/seasonalArimaOpts.html +1 -1
- package/package.json +34 -15
- package/tsconfig.json +1 -2
- package/tsup.config.ts +16 -0
- package/.tsconfig.build.cjs.json +0 -33
- package/.tsconfig.build.esm.json +0 -33
- package/dist/.tsconfig.build.cjs.tsbuildinfo +0 -1
- package/dist/.tsconfig.build.esm.tsbuildinfo +0 -1
- package/dist/cjs/arima/configurable/configurableArima.js +0 -26
- package/dist/cjs/arima/configurable/configurableArima.js.map +0 -1
- package/dist/cjs/arima/configurable/index.js +0 -5
- package/dist/cjs/arima/configurable/index.js.map +0 -1
- package/dist/cjs/arima/configured/arima.js +0 -8
- package/dist/cjs/arima/configured/arima.js.map +0 -1
- package/dist/cjs/arima/configured/index.js +0 -6
- package/dist/cjs/arima/configured/index.js.map +0 -1
- package/dist/cjs/arima/configured/seasonalArima.js +0 -8
- package/dist/cjs/arima/configured/seasonalArima.js.map +0 -1
- package/dist/cjs/arima/index.js +0 -6
- package/dist/cjs/arima/index.js.map +0 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/arima/configurable/configurableArima.js +0 -21
- package/dist/esm/arima/configurable/configurableArima.js.map +0 -1
- package/dist/esm/arima/configurable/index.js +0 -2
- package/dist/esm/arima/configurable/index.js.map +0 -1
- package/dist/esm/arima/configured/arima.js +0 -5
- package/dist/esm/arima/configured/arima.js.map +0 -1
- package/dist/esm/arima/configured/index.js +0 -3
- package/dist/esm/arima/configured/index.js.map +0 -1
- package/dist/esm/arima/configured/seasonalArima.js +0 -5
- package/dist/esm/arima/configured/seasonalArima.js.map +0 -1
- package/dist/esm/arima/index.js +0 -3
- package/dist/esm/arima/index.js.map +0 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/types/arima/configurable/configurableArima.d.ts +0 -10
- package/dist/types/arima/configurable/configurableArima.d.ts.map +0 -1
- package/dist/types/arima/configurable/index.d.ts +0 -2
- package/dist/types/arima/configurable/index.d.ts.map +0 -1
- package/dist/types/arima/configured/arima.d.ts +0 -5
- package/dist/types/arima/configured/arima.d.ts.map +0 -1
- package/dist/types/arima/configured/index.d.ts +0 -3
- package/dist/types/arima/configured/index.d.ts.map +0 -1
- package/dist/types/arima/configured/seasonalArima.d.ts +0 -5
- package/dist/types/arima/configured/seasonalArima.d.ts.map +0 -1
- package/dist/types/arima/index.d.ts +0 -3
- package/dist/types/arima/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
package/dist/docs.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
17
17
|
"line": 7,
|
|
18
18
|
"character": 12,
|
|
19
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
19
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L7"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"type": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
49
49
|
"line": 7,
|
|
50
50
|
"character": 42,
|
|
51
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
51
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L7"
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"type": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
68
68
|
"line": 7,
|
|
69
69
|
"character": 58,
|
|
70
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
70
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L7"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"type": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
91
91
|
"line": 7,
|
|
92
92
|
"character": 40,
|
|
93
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
93
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L7"
|
|
94
94
|
}
|
|
95
95
|
]
|
|
96
96
|
}
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts",
|
|
114
114
|
"line": 7,
|
|
115
115
|
"character": 13,
|
|
116
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
116
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts#L7"
|
|
117
117
|
}
|
|
118
118
|
],
|
|
119
119
|
"type": {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts",
|
|
136
136
|
"line": 5,
|
|
137
137
|
"character": 13,
|
|
138
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
138
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts#L5"
|
|
139
139
|
}
|
|
140
140
|
],
|
|
141
141
|
"type": {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
163
163
|
"line": 5,
|
|
164
164
|
"character": 13,
|
|
165
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
165
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L5"
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
168
|
"type": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts",
|
|
190
190
|
"line": 7,
|
|
191
191
|
"character": 13,
|
|
192
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
192
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts#L7"
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
195
|
"type": {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts",
|
|
212
212
|
"line": 5,
|
|
213
213
|
"character": 13,
|
|
214
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
214
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts#L5"
|
|
215
215
|
}
|
|
216
216
|
],
|
|
217
217
|
"type": {
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts",
|
|
237
237
|
"line": 9,
|
|
238
238
|
"character": 13,
|
|
239
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
239
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts#L9"
|
|
240
240
|
}
|
|
241
241
|
],
|
|
242
242
|
"signatures": [
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
387
387
|
"line": 9,
|
|
388
388
|
"character": 13,
|
|
389
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
389
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L9"
|
|
390
390
|
}
|
|
391
391
|
],
|
|
392
392
|
"signatures": [
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts",
|
|
402
402
|
"line": 9,
|
|
403
403
|
"character": 33,
|
|
404
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
404
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L9"
|
|
405
405
|
}
|
|
406
406
|
],
|
|
407
407
|
"parameters": [
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"fileName": "node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts",
|
|
459
459
|
"line": 9,
|
|
460
460
|
"character": 13,
|
|
461
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
461
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts#L9"
|
|
462
462
|
}
|
|
463
463
|
],
|
|
464
464
|
"signatures": [
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model';
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import { ARIMAOptions as ARIMAOptions$1 } from 'arima';
|
|
4
|
+
|
|
5
|
+
declare const commonOpts: ARIMAOptions$1;
|
|
6
|
+
type PredictionPayload = Payload<{
|
|
7
|
+
error?: number;
|
|
8
|
+
value: number;
|
|
9
|
+
}>;
|
|
10
|
+
declare const configurableArima: (opts?: ARIMAOptions$1, predictionSteps?: number) => ForecastingMethod;
|
|
11
|
+
|
|
12
|
+
declare const arimaOpts: ARIMAOptions;
|
|
13
|
+
declare const arimaForecastingName = "arimaForecasting";
|
|
14
|
+
declare const arimaForecastingMethod: ForecastingMethod;
|
|
15
|
+
|
|
16
|
+
declare const seasonalArimaOpts: ARIMAOptions;
|
|
17
|
+
declare const seasonalArimaForecastingName = "seasonalArimaForecasting";
|
|
18
|
+
declare const seasonalArimaForecastingMethod: ForecastingMethod;
|
|
19
|
+
|
|
20
|
+
export { PredictionPayload, arimaForecastingMethod, arimaForecastingName, arimaOpts, commonOpts, configurableArima, seasonalArimaForecastingMethod, seasonalArimaForecastingName, seasonalArimaOpts };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model';
|
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import { ARIMAOptions as ARIMAOptions$1 } from 'arima';
|
|
4
|
+
|
|
5
|
+
declare const commonOpts: ARIMAOptions$1;
|
|
6
|
+
type PredictionPayload = Payload<{
|
|
7
|
+
error?: number;
|
|
8
|
+
value: number;
|
|
9
|
+
}>;
|
|
10
|
+
declare const configurableArima: (opts?: ARIMAOptions$1, predictionSteps?: number) => ForecastingMethod;
|
|
11
|
+
|
|
12
|
+
declare const arimaOpts: ARIMAOptions;
|
|
13
|
+
declare const arimaForecastingName = "arimaForecasting";
|
|
14
|
+
declare const arimaForecastingMethod: ForecastingMethod;
|
|
15
|
+
|
|
16
|
+
declare const seasonalArimaOpts: ARIMAOptions;
|
|
17
|
+
declare const seasonalArimaForecastingName = "seasonalArimaForecasting";
|
|
18
|
+
declare const seasonalArimaForecastingMethod: ForecastingMethod;
|
|
19
|
+
|
|
20
|
+
export { PredictionPayload, arimaForecastingMethod, arimaForecastingName, arimaOpts, commonOpts, configurableArima, seasonalArimaForecastingMethod, seasonalArimaForecastingName, seasonalArimaOpts };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/index.ts
|
|
32
|
+
var src_exports = {};
|
|
33
|
+
__export(src_exports, {
|
|
34
|
+
arimaForecastingMethod: () => arimaForecastingMethod,
|
|
35
|
+
arimaForecastingName: () => arimaForecastingName,
|
|
36
|
+
arimaOpts: () => arimaOpts,
|
|
37
|
+
commonOpts: () => commonOpts,
|
|
38
|
+
configurableArima: () => configurableArima,
|
|
39
|
+
seasonalArimaForecastingMethod: () => seasonalArimaForecastingMethod,
|
|
40
|
+
seasonalArimaForecastingName: () => seasonalArimaForecastingName,
|
|
41
|
+
seasonalArimaOpts: () => seasonalArimaOpts
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(src_exports);
|
|
44
|
+
|
|
45
|
+
// src/arima/configurable/configurableArima.ts
|
|
46
|
+
var import_arima = __toESM(require("arima"));
|
|
47
|
+
var commonOpts = {
|
|
48
|
+
verbose: false
|
|
49
|
+
};
|
|
50
|
+
var configurableArima = /* @__PURE__ */ __name((opts = commonOpts, predictionSteps = 10) => {
|
|
51
|
+
return (payloads, transformer) => {
|
|
52
|
+
if (payloads.length === 0)
|
|
53
|
+
return [];
|
|
54
|
+
const values = payloads.map(transformer);
|
|
55
|
+
const model = new import_arima.default({
|
|
56
|
+
...commonOpts,
|
|
57
|
+
...opts
|
|
58
|
+
}).train(values);
|
|
59
|
+
const predictions = model.predict(predictionSteps);
|
|
60
|
+
return predictions[0].map((value, index) => {
|
|
61
|
+
const error = predictions[1][index];
|
|
62
|
+
return {
|
|
63
|
+
error,
|
|
64
|
+
value
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
}, "configurableArima");
|
|
69
|
+
|
|
70
|
+
// src/arima/configured/arima.ts
|
|
71
|
+
var arimaOpts = {
|
|
72
|
+
d: 1,
|
|
73
|
+
p: 2,
|
|
74
|
+
q: 2
|
|
75
|
+
};
|
|
76
|
+
var arimaForecastingName = "arimaForecasting";
|
|
77
|
+
var arimaForecastingMethod = configurableArima(arimaOpts);
|
|
78
|
+
|
|
79
|
+
// src/arima/configured/seasonalArima.ts
|
|
80
|
+
var seasonalArimaOpts = {
|
|
81
|
+
D: 0,
|
|
82
|
+
P: 1,
|
|
83
|
+
Q: 1,
|
|
84
|
+
d: 1,
|
|
85
|
+
p: 2,
|
|
86
|
+
q: 2,
|
|
87
|
+
s: 12
|
|
88
|
+
};
|
|
89
|
+
var seasonalArimaForecastingName = "seasonalArimaForecasting";
|
|
90
|
+
var seasonalArimaForecastingMethod = configurableArima(seasonalArimaOpts);
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
arimaForecastingMethod,
|
|
94
|
+
arimaForecastingName,
|
|
95
|
+
arimaOpts,
|
|
96
|
+
commonOpts,
|
|
97
|
+
configurableArima,
|
|
98
|
+
seasonalArimaForecastingMethod,
|
|
99
|
+
seasonalArimaForecastingName,
|
|
100
|
+
seasonalArimaOpts
|
|
101
|
+
});
|
|
102
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/arima/configurable/configurableArima.ts","../src/arima/configured/arima.ts","../src/arima/configured/seasonalArima.ts"],"sourcesContent":["export * from './arima'\n","import { Forecast, ForecastingMethod, PayloadValueTransformer } from '@xyo-network/diviner-forecasting-model'\nimport { Payload } from '@xyo-network/payload-model'\nimport ARIMA, { ARIMAOptions } from 'arima'\n\nexport const commonOpts: ARIMAOptions = { verbose: false }\n\nexport type PredictionPayload = Payload<{ error?: number; value: number }>\n\nexport const configurableArima = (opts: ARIMAOptions = commonOpts, predictionSteps = 10): ForecastingMethod => {\n return (payloads: Payload[], transformer: PayloadValueTransformer): Forecast[] => {\n // If there's no input, there's no prediction\n if (payloads.length === 0) return []\n // Transform all the values\n const values = payloads.map(transformer)\n // Train a model on the training set\n const model = new ARIMA({ ...commonOpts, ...opts }).train(values)\n // Use the trained model to predict the next N values\n const predictions = model.predict(predictionSteps)\n // Convert the predictions into payloads\n return predictions[0].map((value, index) => {\n const error = predictions[1][index]\n return { error, value }\n })\n }\n}\n","import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model'\n\nimport { configurableArima } from '../configurable'\n\nexport const arimaOpts: ARIMAOptions = { d: 1, p: 2, q: 2 }\n\nexport const arimaForecastingName = 'arimaForecasting'\n\nexport const arimaForecastingMethod: ForecastingMethod = configurableArima(arimaOpts)\n","import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model'\n\nimport { configurableArima } from '../configurable'\n\nexport const seasonalArimaOpts: ARIMAOptions = { D: 0, P: 1, Q: 1, d: 1, p: 2, q: 2, s: 12 }\n\nexport const seasonalArimaForecastingName = 'seasonalArimaForecasting'\n\nexport const seasonalArimaForecastingMethod: ForecastingMethod = configurableArima(seasonalArimaOpts)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;ACEA,mBAAoC;AAE7B,IAAMA,aAA2B;EAAEC,SAAS;AAAM;AAIlD,IAAMC,oBAAoB,wBAACC,OAAqBH,YAAYI,kBAAkB,OAAE;AACrF,SAAO,CAACC,UAAqBC,gBAAAA;AAE3B,QAAID,SAASE,WAAW;AAAG,aAAO,CAAA;AAElC,UAAMC,SAASH,SAASI,IAAIH,WAAAA;AAE5B,UAAMI,QAAQ,IAAIC,aAAAA,QAAM;MAAE,GAAGX;MAAY,GAAGG;IAAK,CAAA,EAAGS,MAAMJ,MAAAA;AAE1D,UAAMK,cAAcH,MAAMI,QAAQV,eAAAA;AAElC,WAAOS,YAAY,CAAA,EAAGJ,IAAI,CAACM,OAAOC,UAAAA;AAChC,YAAMC,QAAQJ,YAAY,CAAA,EAAGG,KAAAA;AAC7B,aAAO;QAAEC;QAAOF;MAAM;IACxB,CAAA;EACF;AACF,GAhBiC;;;ACJ1B,IAAMG,YAA0B;EAAEC,GAAG;EAAGC,GAAG;EAAGC,GAAG;AAAE;AAEnD,IAAMC,uBAAuB;AAE7B,IAAMC,yBAA4CC,kBAAkBN,SAAAA;;;ACJpE,IAAMO,oBAAkC;EAAEC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;AAAG;AAEpF,IAAMC,+BAA+B;AAErC,IAAMC,iCAAoDC,kBAAkBV,iBAAAA;","names":["commonOpts","verbose","configurableArima","opts","predictionSteps","payloads","transformer","length","values","map","model","ARIMA","train","predictions","predict","value","index","error","arimaOpts","d","p","q","arimaForecastingName","arimaForecastingMethod","configurableArima","seasonalArimaOpts","D","P","Q","d","p","q","s","seasonalArimaForecastingName","seasonalArimaForecastingMethod","configurableArima"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/arima/configurable/configurableArima.ts
|
|
5
|
+
import ARIMA from "arima";
|
|
6
|
+
var commonOpts = {
|
|
7
|
+
verbose: false
|
|
8
|
+
};
|
|
9
|
+
var configurableArima = /* @__PURE__ */ __name((opts = commonOpts, predictionSteps = 10) => {
|
|
10
|
+
return (payloads, transformer) => {
|
|
11
|
+
if (payloads.length === 0)
|
|
12
|
+
return [];
|
|
13
|
+
const values = payloads.map(transformer);
|
|
14
|
+
const model = new ARIMA({
|
|
15
|
+
...commonOpts,
|
|
16
|
+
...opts
|
|
17
|
+
}).train(values);
|
|
18
|
+
const predictions = model.predict(predictionSteps);
|
|
19
|
+
return predictions[0].map((value, index) => {
|
|
20
|
+
const error = predictions[1][index];
|
|
21
|
+
return {
|
|
22
|
+
error,
|
|
23
|
+
value
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}, "configurableArima");
|
|
28
|
+
|
|
29
|
+
// src/arima/configured/arima.ts
|
|
30
|
+
var arimaOpts = {
|
|
31
|
+
d: 1,
|
|
32
|
+
p: 2,
|
|
33
|
+
q: 2
|
|
34
|
+
};
|
|
35
|
+
var arimaForecastingName = "arimaForecasting";
|
|
36
|
+
var arimaForecastingMethod = configurableArima(arimaOpts);
|
|
37
|
+
|
|
38
|
+
// src/arima/configured/seasonalArima.ts
|
|
39
|
+
var seasonalArimaOpts = {
|
|
40
|
+
D: 0,
|
|
41
|
+
P: 1,
|
|
42
|
+
Q: 1,
|
|
43
|
+
d: 1,
|
|
44
|
+
p: 2,
|
|
45
|
+
q: 2,
|
|
46
|
+
s: 12
|
|
47
|
+
};
|
|
48
|
+
var seasonalArimaForecastingName = "seasonalArimaForecasting";
|
|
49
|
+
var seasonalArimaForecastingMethod = configurableArima(seasonalArimaOpts);
|
|
50
|
+
export {
|
|
51
|
+
arimaForecastingMethod,
|
|
52
|
+
arimaForecastingName,
|
|
53
|
+
arimaOpts,
|
|
54
|
+
commonOpts,
|
|
55
|
+
configurableArima,
|
|
56
|
+
seasonalArimaForecastingMethod,
|
|
57
|
+
seasonalArimaForecastingName,
|
|
58
|
+
seasonalArimaOpts
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/arima/configurable/configurableArima.ts","../src/arima/configured/arima.ts","../src/arima/configured/seasonalArima.ts"],"sourcesContent":["import { Forecast, ForecastingMethod, PayloadValueTransformer } from '@xyo-network/diviner-forecasting-model'\nimport { Payload } from '@xyo-network/payload-model'\nimport ARIMA, { ARIMAOptions } from 'arima'\n\nexport const commonOpts: ARIMAOptions = { verbose: false }\n\nexport type PredictionPayload = Payload<{ error?: number; value: number }>\n\nexport const configurableArima = (opts: ARIMAOptions = commonOpts, predictionSteps = 10): ForecastingMethod => {\n return (payloads: Payload[], transformer: PayloadValueTransformer): Forecast[] => {\n // If there's no input, there's no prediction\n if (payloads.length === 0) return []\n // Transform all the values\n const values = payloads.map(transformer)\n // Train a model on the training set\n const model = new ARIMA({ ...commonOpts, ...opts }).train(values)\n // Use the trained model to predict the next N values\n const predictions = model.predict(predictionSteps)\n // Convert the predictions into payloads\n return predictions[0].map((value, index) => {\n const error = predictions[1][index]\n return { error, value }\n })\n }\n}\n","import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model'\n\nimport { configurableArima } from '../configurable'\n\nexport const arimaOpts: ARIMAOptions = { d: 1, p: 2, q: 2 }\n\nexport const arimaForecastingName = 'arimaForecasting'\n\nexport const arimaForecastingMethod: ForecastingMethod = configurableArima(arimaOpts)\n","import { ForecastingMethod } from '@xyo-network/diviner-forecasting-model'\n\nimport { configurableArima } from '../configurable'\n\nexport const seasonalArimaOpts: ARIMAOptions = { D: 0, P: 1, Q: 1, d: 1, p: 2, q: 2, s: 12 }\n\nexport const seasonalArimaForecastingName = 'seasonalArimaForecasting'\n\nexport const seasonalArimaForecastingMethod: ForecastingMethod = configurableArima(seasonalArimaOpts)\n"],"mappings":";;;;AAEA,OAAOA,WAA6B;AAE7B,IAAMC,aAA2B;EAAEC,SAAS;AAAM;AAIlD,IAAMC,oBAAoB,wBAACC,OAAqBH,YAAYI,kBAAkB,OAAE;AACrF,SAAO,CAACC,UAAqBC,gBAAAA;AAE3B,QAAID,SAASE,WAAW;AAAG,aAAO,CAAA;AAElC,UAAMC,SAASH,SAASI,IAAIH,WAAAA;AAE5B,UAAMI,QAAQ,IAAIC,MAAM;MAAE,GAAGX;MAAY,GAAGG;IAAK,CAAA,EAAGS,MAAMJ,MAAAA;AAE1D,UAAMK,cAAcH,MAAMI,QAAQV,eAAAA;AAElC,WAAOS,YAAY,CAAA,EAAGJ,IAAI,CAACM,OAAOC,UAAAA;AAChC,YAAMC,QAAQJ,YAAY,CAAA,EAAGG,KAAAA;AAC7B,aAAO;QAAEC;QAAOF;MAAM;IACxB,CAAA;EACF;AACF,GAhBiC;;;ACJ1B,IAAMG,YAA0B;EAAEC,GAAG;EAAGC,GAAG;EAAGC,GAAG;AAAE;AAEnD,IAAMC,uBAAuB;AAE7B,IAAMC,yBAA4CC,kBAAkBN,SAAAA;;;ACJpE,IAAMO,oBAAkC;EAAEC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;EAAGC,GAAG;AAAG;AAEpF,IAAMC,+BAA+B;AAErC,IAAMC,iCAAoDC,kBAAkBV,iBAAAA;","names":["ARIMA","commonOpts","verbose","configurableArima","opts","predictionSteps","payloads","transformer","length","values","map","model","ARIMA","train","predictions","predict","value","index","error","arimaOpts","d","p","q","arimaForecastingName","arimaForecastingMethod","configurableArima","seasonalArimaOpts","D","P","Q","d","p","q","s","seasonalArimaForecastingName","seasonalArimaForecastingMethod","configurableArima"]}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<h5><span class="tsd-kind-parameter">predictionSteps</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></h5></li></ul></div>
|
|
29
29
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">ForecastingMethod</span></h4><aside class="tsd-sources">
|
|
30
30
|
<ul>
|
|
31
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
31
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L9">node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts:9</a></li></ul></aside></li></ul></section></div>
|
|
32
32
|
<div class="col-sidebar">
|
|
33
33
|
<div class="page-menu">
|
|
34
34
|
<div class="tsd-navigation settings">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5><span class="tsd-kind-property">value</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L7">node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts:7</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-sidebar">
|
|
29
29
|
<div class="page-menu">
|
|
30
30
|
<div class="tsd-navigation settings">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h1>Variable arimaForecastingName<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">arima<wbr/>Forecasting<wbr/>Name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"arimaForecasting"</span><span class="tsd-signature-symbol"> = 'arimaForecasting'</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts#L7">node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts:7</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-sidebar">
|
|
22
22
|
<div class="page-menu">
|
|
23
23
|
<div class="tsd-navigation settings">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h1>Variable arimaOpts<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">arima<wbr/>Opts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">ARIMAOptions</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts#L5">node/packages/core/packages/forecasting/packages/arima/src/arima/configured/arima.ts:5</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-sidebar">
|
|
22
22
|
<div class="page-menu">
|
|
23
23
|
<div class="tsd-navigation settings">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h1>Variable commonOpts<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">common<wbr/>Opts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">ARIMAOptions</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts#L5">node/packages/core/packages/forecasting/packages/arima/src/arima/configurable/configurableArima.ts:5</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-sidebar">
|
|
22
22
|
<div class="page-menu">
|
|
23
23
|
<div class="tsd-navigation settings">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h1>Variable seasonalArimaForecastingName<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">seasonal<wbr/>Arima<wbr/>Forecasting<wbr/>Name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"seasonalArimaForecasting"</span><span class="tsd-signature-symbol"> = 'seasonalArimaForecasting'</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts#L7">node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts:7</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-sidebar">
|
|
22
22
|
<div class="page-menu">
|
|
23
23
|
<div class="tsd-navigation settings">
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<h1>Variable seasonalArimaOpts<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature"><span class="tsd-kind-variable">seasonal<wbr/>Arima<wbr/>Opts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">ARIMAOptions</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources">
|
|
19
19
|
<ul>
|
|
20
|
-
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
<li>Defined in <a href="https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/899ce501d2fd1/packages/node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts#L5">node/packages/core/packages/forecasting/packages/arima/src/arima/configured/seasonalArima.ts:5</a></li></ul></aside></div>
|
|
21
21
|
<div class="col-sidebar">
|
|
22
22
|
<div class="page-menu">
|
|
23
23
|
<div class="tsd-navigation settings">
|
package/package.json
CHANGED
|
@@ -4,37 +4,56 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.73.
|
|
7
|
+
"version": "2.73.4",
|
|
8
8
|
"description": "XYO Archivist",
|
|
9
9
|
"sideeffects": false,
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=16 <17"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"require": "./dist/cjs/index.js"
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
20
19
|
},
|
|
21
|
-
"
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.mts",
|
|
22
|
+
"default": "./dist/index.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"./dist/docs.json": {
|
|
26
|
+
"default": "./dist/docs.json"
|
|
27
|
+
},
|
|
28
|
+
"./cjs": {
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./docs": {
|
|
32
|
+
"default": "./dist/docs.json"
|
|
33
|
+
},
|
|
34
|
+
"./esm": {
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
22
36
|
},
|
|
23
37
|
"./package.json": "./package.json"
|
|
24
38
|
},
|
|
25
|
-
"main": "dist/
|
|
26
|
-
"module": "dist/
|
|
39
|
+
"main": "dist/index.js",
|
|
40
|
+
"module": "dist/index.mjs",
|
|
27
41
|
"author": "Arie Trouw",
|
|
28
42
|
"license": "LGPL-3.0",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"package-compile": "tsup && publint",
|
|
45
|
+
"package-recompile": "tsup && publint"
|
|
46
|
+
},
|
|
29
47
|
"dependencies": {
|
|
30
|
-
"@xyo-network/diviner-forecasting-model": "~2.73.
|
|
31
|
-
"@xyo-network/payload-model": "~2.73.
|
|
48
|
+
"@xyo-network/diviner-forecasting-model": "~2.73.4",
|
|
49
|
+
"@xyo-network/payload-model": "~2.73.4",
|
|
32
50
|
"arima": "^0.2.5"
|
|
33
51
|
},
|
|
34
52
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
36
|
-
"@xylabs/tsconfig": "^2.19.
|
|
53
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.12",
|
|
54
|
+
"@xylabs/tsconfig": "^2.19.12",
|
|
55
|
+
"publint": "^0.2.2",
|
|
56
|
+
"tsup": "^7.2.0",
|
|
37
57
|
"typescript": "^5.2.2"
|
|
38
|
-
}
|
|
39
|
-
"types": "dist/types/index.d.ts"
|
|
58
|
+
}
|
|
40
59
|
}
|
package/tsconfig.json
CHANGED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-default-export
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
bundle: true,
|
|
6
|
+
cjsInterop: true,
|
|
7
|
+
clean: false,
|
|
8
|
+
dts: {
|
|
9
|
+
entry: ['src/index.ts'],
|
|
10
|
+
},
|
|
11
|
+
entry: ['src/index.ts'],
|
|
12
|
+
format: ['cjs', 'esm'],
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
splitting: false,
|
|
15
|
+
tsconfig: 'tsconfig.json',
|
|
16
|
+
})
|
package/.tsconfig.build.cjs.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"rootDir": "src",
|
|
4
|
-
"rootDirs": [
|
|
5
|
-
"package.json"
|
|
6
|
-
],
|
|
7
|
-
"composite": true,
|
|
8
|
-
"declarationDir": "./dist/types",
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"typeRoots": [],
|
|
12
|
-
"module": "CommonJS",
|
|
13
|
-
"outDir": "./dist/cjs",
|
|
14
|
-
"target": "ES6"
|
|
15
|
-
},
|
|
16
|
-
"exclude": [
|
|
17
|
-
"dist",
|
|
18
|
-
"docs",
|
|
19
|
-
"**/build",
|
|
20
|
-
"**/dist",
|
|
21
|
-
"**/node_modules",
|
|
22
|
-
"**/*.spec.*",
|
|
23
|
-
"**/*.spec",
|
|
24
|
-
"**/*.stories.*",
|
|
25
|
-
"**/*.example.*",
|
|
26
|
-
"**/spec/*",
|
|
27
|
-
"**/stories/*"
|
|
28
|
-
],
|
|
29
|
-
"extends": "@xylabs/tsconfig",
|
|
30
|
-
"include": [
|
|
31
|
-
"src"
|
|
32
|
-
]
|
|
33
|
-
}
|
package/.tsconfig.build.esm.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"rootDir": "src",
|
|
4
|
-
"rootDirs": [
|
|
5
|
-
"package.json"
|
|
6
|
-
],
|
|
7
|
-
"composite": true,
|
|
8
|
-
"declarationDir": "./dist/types",
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"typeRoots": [],
|
|
12
|
-
"module": "ESNext",
|
|
13
|
-
"outDir": "./dist/esm",
|
|
14
|
-
"target": "ESNext"
|
|
15
|
-
},
|
|
16
|
-
"exclude": [
|
|
17
|
-
"dist",
|
|
18
|
-
"docs",
|
|
19
|
-
"**/build",
|
|
20
|
-
"**/dist",
|
|
21
|
-
"**/node_modules",
|
|
22
|
-
"**/*.spec.*",
|
|
23
|
-
"**/*.spec",
|
|
24
|
-
"**/*.stories.*",
|
|
25
|
-
"**/*.example.*",
|
|
26
|
-
"**/spec/*",
|
|
27
|
-
"**/stories/*"
|
|
28
|
-
],
|
|
29
|
-
"extends": "@xylabs/tsconfig",
|
|
30
|
-
"include": [
|
|
31
|
-
"src"
|
|
32
|
-
]
|
|
33
|
-
}
|