tscommons-esm-ai 0.0.2
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/enums/te-or-unclassified.d.mts +4 -0
- package/dist/enums/te-or-unclassified.mjs +5 -0
- package/dist/enums/te-or-unclassified.mjs.map +1 -0
- package/dist/helpers/commons-ai-cross-validator.d.mts +4 -0
- package/dist/helpers/commons-ai-cross-validator.mjs +48 -0
- package/dist/helpers/commons-ai-cross-validator.mjs.map +1 -0
- package/dist/helpers/data.d.mts +2 -0
- package/dist/helpers/data.mjs +15 -0
- package/dist/helpers/data.mjs.map +1 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/imodel-predictable.d.mts +4 -0
- package/dist/interfaces/imodel-predictable.mjs +3 -0
- package/dist/interfaces/imodel-predictable.mjs.map +1 -0
- package/dist/interfaces/imodel-trainable.d.mts +9 -0
- package/dist/interfaces/imodel-trainable.mjs +3 -0
- package/dist/interfaces/imodel-trainable.mjs.map +1 -0
- package/dist/types/tboundary-stats.d.mts +5 -0
- package/dist/types/tboundary-stats.mjs +2 -0
- package/dist/types/tboundary-stats.mjs.map +1 -0
- package/dist/types/tclassifier-stats.d.mts +7 -0
- package/dist/types/tclassifier-stats.mjs +2 -0
- package/dist/types/tclassifier-stats.mjs.map +1 -0
- package/dist/types/tcross-validation-k.d.mts +5 -0
- package/dist/types/tcross-validation-k.mjs +2 -0
- package/dist/types/tcross-validation-k.mjs.map +1 -0
- package/dist/types/tfile-and-prediction.d.mts +10 -0
- package/dist/types/tfile-and-prediction.mjs +2 -0
- package/dist/types/tfile-and-prediction.mjs.map +1 -0
- package/dist/types/tgeneric-training-data.d.mts +4 -0
- package/dist/types/tgeneric-training-data.mjs +2 -0
- package/dist/types/tgeneric-training-data.mjs.map +1 -0
- package/dist/types/tmodel-with-quality.d.mts +6 -0
- package/dist/types/tmodel-with-quality.mjs +2 -0
- package/dist/types/tmodel-with-quality.mjs.map +1 -0
- package/dist/types/tprediction.d.mts +9 -0
- package/dist/types/tprediction.mjs +2 -0
- package/dist/types/tprediction.mjs.map +1 -0
- package/dist/types/tquality.d.mts +4 -0
- package/dist/types/tquality.mjs +2 -0
- package/dist/types/tquality.mjs.map +1 -0
- package/dist/types/ttraining-stats.d.mts +6 -0
- package/dist/types/ttraining-stats.mjs +2 -0
- package/dist/types/ttraining-stats.mjs.map +1 -0
- package/dist/types/txy-stats.d.mts +5 -0
- package/dist/types/txy-stats.mjs +2 -0
- package/dist/types/txy-stats.mjs.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"te-or-unclassified.mjs","sourceRoot":"","sources":["../../src/enums/te-or-unclassified.mts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,uDAA6B,CAAA;AAC/B,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TCommonsAiCrossValidationK } from '../types/tcross-validation-k.mjs';
|
|
2
|
+
import { TCommonsAiGenericTrainingData } from '../types/tgeneric-training-data.mjs';
|
|
3
|
+
export declare function commonsAiCrossValidationBuildKs<InputT, OutputT>(trainingData: TCommonsAiGenericTrainingData<InputT, OutputT>[], iterations: number, maxValidationRatio?: number): TCommonsAiCrossValidationK<InputT, OutputT>[];
|
|
4
|
+
export declare function commonsAiCrossValidationBuildEnumKs<InputT, E extends string>(keys: E[], trainingData: Map<E, InputT[]>, iterations: number, maxValidationRatio?: number): TCommonsAiCrossValidationK<InputT, E>[];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { commonsArrayShuffle } from 'tscommons-esm-core';
|
|
2
|
+
export function commonsAiCrossValidationBuildKs(trainingData, iterations, maxValidationRatio = 0.2) {
|
|
3
|
+
const validationPivot = Math.min(maxValidationRatio, 1 / iterations);
|
|
4
|
+
const ks = [];
|
|
5
|
+
const clone = [...trainingData];
|
|
6
|
+
commonsArrayShuffle(clone);
|
|
7
|
+
const validationLength = Math.floor(clone.length * validationPivot);
|
|
8
|
+
for (let i = iterations; i-- > 0;) {
|
|
9
|
+
const k = [...clone];
|
|
10
|
+
const validationOffset = i * validationLength;
|
|
11
|
+
const validation = k.splice(validationOffset, validationLength);
|
|
12
|
+
const training = k;
|
|
13
|
+
ks.push({
|
|
14
|
+
training: training,
|
|
15
|
+
validation: validation
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return ks;
|
|
19
|
+
}
|
|
20
|
+
export function commonsAiCrossValidationBuildEnumKs(keys, trainingData, iterations, maxValidationRatio = 0.2) {
|
|
21
|
+
const datas = new Map();
|
|
22
|
+
for (const key of keys) {
|
|
23
|
+
datas.set(key, (trainingData.get(key) || [])
|
|
24
|
+
.map((d) => ({
|
|
25
|
+
input: d,
|
|
26
|
+
output: key
|
|
27
|
+
})));
|
|
28
|
+
}
|
|
29
|
+
const refactors = [];
|
|
30
|
+
for (let i = iterations; i-- > 0;) {
|
|
31
|
+
refactors.push({
|
|
32
|
+
training: [],
|
|
33
|
+
validation: []
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
for (const key of keys) {
|
|
37
|
+
const set = datas.get(key) || [];
|
|
38
|
+
const k = commonsAiCrossValidationBuildKs(set, iterations, maxValidationRatio);
|
|
39
|
+
for (let i = iterations; i-- > 0;) {
|
|
40
|
+
const training = k[i].training;
|
|
41
|
+
const validation = k[i].validation;
|
|
42
|
+
refactors[i].training.push(...training);
|
|
43
|
+
refactors[i].validation.push(...validation);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return refactors;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=commons-ai-cross-validator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons-ai-cross-validator.mjs","sourceRoot":"","sources":["../../src/helpers/commons-ai-cross-validator.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAKzD,MAAM,UAAU,+BAA+B,CAI7C,YAA8D,EAC9D,UAAkB,EAClB,qBAA6B,GAAG;IAEjC,MAAM,eAAe,GAAW,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;IAE7E,MAAM,EAAE,GAAkD,EAAE,CAAC;IAE7D,MAAM,KAAK,GAAqD,CAAE,GAAG,YAAY,CAAE,CAAC;IACpF,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAE3B,MAAM,gBAAgB,GAAW,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;IAE5E,KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;QACnC,MAAM,CAAC,GAAqD,CAAE,GAAG,KAAK,CAAE,CAAC;QAEzE,MAAM,gBAAgB,GAAW,CAAC,GAAG,gBAAgB,CAAC;QAEtD,MAAM,UAAU,GAAqD,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;QAClH,MAAM,QAAQ,GAAqD,CAAC,CAAC;QAErE,EAAE,CAAC,IAAI,CAAC;YACN,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,CAAC;AACX,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,IAAS,EACT,YAA8B,EAC9B,UAAkB,EAClB,qBAA6B,GAAG;IAEjC,MAAM,KAAK,GAAuD,IAAI,GAAG,EAAiD,CAAC;IAC3H,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,KAAK,CAAC,GAAG,CACP,GAAG,EACH,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aAC1B,GAAG,CAAC,CAAC,CAAS,EAA4C,EAAE,CAAC,CAAC;YAC7D,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,GAAG;SACZ,CAAC,CAAC,CACN,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAA4C,EAAE,CAAC;IAC9D,KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;QACnC,SAAS,CAAC,IAAI,CAAC;YACb,QAAQ,EAAE,EAAE;YACZ,UAAU,EAAE,EAAE;SACf,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,GAAG,GAA+C,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAE7E,MAAM,CAAC,GAA4C,+BAA+B,CAChF,GAAG,EACH,UAAU,EACV,kBAAkB,CACnB,CAAC;QAEF,KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;YACnC,MAAM,QAAQ,GAA+C,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;YAC3E,MAAM,UAAU,GAA+C,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;YAE/E,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;YACxC,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QAC7C,CAAC;IACF,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function commonsAiDataNoise(value, magnitude = 0.1) {
|
|
2
|
+
const error = Math.random() - 0.5;
|
|
3
|
+
value += error * magnitude;
|
|
4
|
+
if (value < 0)
|
|
5
|
+
value = 0;
|
|
6
|
+
if (value > 1)
|
|
7
|
+
value = 1;
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
export function commonsAiDataNoiseArray(values, magnitude = 0.1) {
|
|
11
|
+
for (let i = values.length; i-- > 0;) {
|
|
12
|
+
values[i] = commonsAiDataNoise(values[i], magnitude);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.mjs","sourceRoot":"","sources":["../../src/helpers/data.mts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAChC,KAAa,EACb,YAAoB,GAAG;IAExB,MAAM,KAAK,GAAW,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC;IAC1C,KAAK,IAAI,KAAK,GAAG,SAAS,CAAC;IAC3B,IAAI,KAAK,GAAG,CAAC;QAAE,KAAK,GAAG,CAAC,CAAC;IACzB,IAAI,KAAK,GAAG,CAAC;QAAE,KAAK,GAAG,CAAC,CAAC;IAEzB,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,MAAgB,EAChB,YAAoB,GAAG;IAExB,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;QACtC,MAAM,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAC5B,MAAM,CAAC,CAAC,CAAC,EACT,SAAS,CACV,CAAC;IACH,CAAC;AACF,CAAC"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { commonsAiDataNoise, commonsAiDataNoiseArray } from './helpers/data.mjs';
|
|
2
|
+
import { commonsAiCrossValidationBuildKs, commonsAiCrossValidationBuildEnumKs } from './helpers/commons-ai-cross-validator.mjs';
|
|
3
|
+
import { ECommonsAiUnclassified, TCommonsAiEOrUnclassified } from './enums/te-or-unclassified.mjs';
|
|
4
|
+
import { TCommonsAiPrediction, TCommonsAiClassifiedPrediction, TCommonsAiXyPrediction, TCommonsAiBoundaryPrediction } from './types/tprediction.mjs';
|
|
5
|
+
import { TCommonsAiQuality } from './types/tquality.mjs';
|
|
6
|
+
import { TCommonsAiCrossValidationK } from './types/tcross-validation-k.mjs';
|
|
7
|
+
import { TCommonsAiTrainingStats, TCommonsAiEpochTrainingStats } from './types/ttraining-stats.mjs';
|
|
8
|
+
import { TCommonsAiClassifierStats } from './types/tclassifier-stats.mjs';
|
|
9
|
+
import { TCommonsAiBoundaryStats } from './types/tboundary-stats.mjs';
|
|
10
|
+
import { TCommonsAiXyStats } from './types/txy-stats.mjs';
|
|
11
|
+
import { TCommonsAiGenericTrainingData } from './types/tgeneric-training-data.mjs';
|
|
12
|
+
import { TCommonsAiFileAndPrediction, TCommonsAiClassifiedFileAndPrediction, TCommonsAiXyFileAndPrediction, TCommonsAiBoundaryFileAndPrediction } from './types/tfile-and-prediction.mjs';
|
|
13
|
+
import { TCommonsAiModelWithQuality } from './types/tmodel-with-quality.mjs';
|
|
14
|
+
import { ICommonsAiModelPredictable } from './interfaces/imodel-predictable.mjs';
|
|
15
|
+
import { ICommonsAiModelTrainable } from './interfaces/imodel-trainable.mjs';
|
|
16
|
+
export { commonsAiDataNoise, commonsAiDataNoiseArray, commonsAiCrossValidationBuildKs, commonsAiCrossValidationBuildEnumKs, ECommonsAiUnclassified, TCommonsAiEOrUnclassified, TCommonsAiPrediction, TCommonsAiClassifiedPrediction, TCommonsAiXyPrediction, TCommonsAiBoundaryPrediction, TCommonsAiQuality, TCommonsAiCrossValidationK, TCommonsAiTrainingStats, TCommonsAiEpochTrainingStats, TCommonsAiClassifierStats, TCommonsAiBoundaryStats, TCommonsAiXyStats, TCommonsAiGenericTrainingData, TCommonsAiFileAndPrediction, TCommonsAiClassifiedFileAndPrediction, TCommonsAiXyFileAndPrediction, TCommonsAiBoundaryFileAndPrediction, TCommonsAiModelWithQuality, ICommonsAiModelPredictable, ICommonsAiModelTrainable };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { commonsAiDataNoise, commonsAiDataNoiseArray } from './helpers/data.mjs';
|
|
2
|
+
import { commonsAiCrossValidationBuildKs, commonsAiCrossValidationBuildEnumKs } from './helpers/commons-ai-cross-validator.mjs';
|
|
3
|
+
import { ECommonsAiUnclassified } from './enums/te-or-unclassified.mjs';
|
|
4
|
+
export { commonsAiDataNoise, commonsAiDataNoiseArray, commonsAiCrossValidationBuildKs, commonsAiCrossValidationBuildEnumKs, ECommonsAiUnclassified };
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,+BAA+B,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAChI,OAAO,EAAE,sBAAsB,EAA6B,MAAM,gCAAgC,CAAC;AAuBnG,OAAO,EACN,kBAAkB,EAClB,uBAAuB,EACvB,+BAA+B,EAC/B,mCAAmC,EACnC,sBAAsB,EAqBtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imodel-predictable.mjs","sourceRoot":"","sources":["../../src/interfaces/imodel-predictable.mts"],"names":[],"mappings":"AAAA,2BAA2B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TCommonsAiTrainingStats } from '../types/ttraining-stats.mjs';
|
|
2
|
+
import { TCommonsAiQuality } from '../types/tquality.mjs';
|
|
3
|
+
import { TCommonsAiGenericTrainingData } from '../types/tgeneric-training-data.mjs';
|
|
4
|
+
import { ICommonsAiModelPredictable } from './imodel-predictable.mjs';
|
|
5
|
+
export interface ICommonsAiModelTrainable<InputT, OutputT, StatsT extends TCommonsAiTrainingStats> extends ICommonsAiModelPredictable<InputT, OutputT> {
|
|
6
|
+
build(): Promise<void>;
|
|
7
|
+
train(): Promise<StatsT | undefined>;
|
|
8
|
+
test(testData: TCommonsAiGenericTrainingData<InputT, OutputT>[]): Promise<TCommonsAiQuality>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imodel-trainable.mjs","sourceRoot":"","sources":["../../src/interfaces/imodel-trainable.mts"],"names":[],"mappings":"AAAA,2BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tboundary-stats.mjs","sourceRoot":"","sources":["../../src/types/tboundary-stats.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tclassifier-stats.mjs","sourceRoot":"","sources":["../../src/types/tclassifier-stats.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tcross-validation-k.mjs","sourceRoot":"","sources":["../../src/types/tcross-validation-k.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TXy, TBoundary } from 'tscommons-esm-graphics';
|
|
2
|
+
import { TCommonsAiEOrUnclassified } from '../enums/te-or-unclassified.mjs';
|
|
3
|
+
import { TCommonsAiPrediction } from './tprediction.mjs';
|
|
4
|
+
export type TCommonsAiFileAndPrediction<OutputT> = {
|
|
5
|
+
file: string;
|
|
6
|
+
prediction: TCommonsAiPrediction<OutputT> | null;
|
|
7
|
+
};
|
|
8
|
+
export type TCommonsAiClassifiedFileAndPrediction<E extends string> = TCommonsAiFileAndPrediction<TCommonsAiEOrUnclassified<E>>;
|
|
9
|
+
export type TCommonsAiXyFileAndPrediction = TCommonsAiFileAndPrediction<TXy>;
|
|
10
|
+
export type TCommonsAiBoundaryFileAndPrediction = TCommonsAiFileAndPrediction<TBoundary>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tfile-and-prediction.mjs","sourceRoot":"","sources":["../../src/types/tfile-and-prediction.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tgeneric-training-data.mjs","sourceRoot":"","sources":["../../src/types/tgeneric-training-data.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ICommonsAiModelPredictable } from '../interfaces/imodel-predictable.mjs';
|
|
2
|
+
import { TCommonsAiQuality } from './tquality.mjs';
|
|
3
|
+
export type TCommonsAiModelWithQuality<InputT, OutputT, ModelT extends ICommonsAiModelPredictable<InputT, OutputT>> = {
|
|
4
|
+
model: ModelT;
|
|
5
|
+
quality: TCommonsAiQuality;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tmodel-with-quality.mjs","sourceRoot":"","sources":["../../src/types/tmodel-with-quality.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TBoundary, TXy } from 'tscommons-esm-graphics';
|
|
2
|
+
import { TCommonsAiEOrUnclassified } from '../enums/te-or-unclassified.mjs';
|
|
3
|
+
export type TCommonsAiPrediction<OutputT> = {
|
|
4
|
+
prediction: OutputT;
|
|
5
|
+
certainty: number;
|
|
6
|
+
};
|
|
7
|
+
export type TCommonsAiClassifiedPrediction<E extends string> = TCommonsAiPrediction<TCommonsAiEOrUnclassified<E>>;
|
|
8
|
+
export type TCommonsAiXyPrediction = TCommonsAiPrediction<TXy>;
|
|
9
|
+
export type TCommonsAiBoundaryPrediction = TCommonsAiPrediction<TBoundary>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tprediction.mjs","sourceRoot":"","sources":["../../src/types/tprediction.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tquality.mjs","sourceRoot":"","sources":["../../src/types/tquality.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ttraining-stats.mjs","sourceRoot":"","sources":["../../src/types/ttraining-stats.mts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"txy-stats.mjs","sourceRoot":"","sources":["../../src/types/txy-stats.mts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tscommons-esm-ai",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"tsc": "./node_modules/typescript/bin/tsc",
|
|
7
|
+
"preprepare": "rm -rf ./dist; php ~/Dev/etim.php src/ && npm run tsc",
|
|
8
|
+
"publish-major": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version major && npm install && npm publish && git add . && git commit -m 'publish'",
|
|
9
|
+
"publish-minor": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version minor && npm install && npm publish && git add . && git commit -m 'publish'",
|
|
10
|
+
"publish-patch": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version patch && npm install && npm publish && git add . && git commit -m 'publish'"
|
|
11
|
+
},
|
|
12
|
+
"main": "dist/index.mjs",
|
|
13
|
+
"types": "dist/index.d.mjs",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"author": "Pete Morris",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@stylistic/eslint-plugin-ts": "^2.10.1",
|
|
19
|
+
"eslint-plugin-import": "^2.31.0",
|
|
20
|
+
"eslint-plugin-prefer-arrow-functions": "^3.4.1",
|
|
21
|
+
"typescript": "^5.6.3",
|
|
22
|
+
"typescript-eslint": "^8.14.0"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/**/*"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"tscommons-esm-core": "^0.0.2",
|
|
29
|
+
"tscommons-esm-graphics": "^0.0.2"
|
|
30
|
+
}
|
|
31
|
+
}
|