definition-generator-framework 1.12.5 → 1.12.6
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/framework/definition-component.d.ts +11 -9
- package/dist/framework/definition-component.js +18 -18
- package/dist/framework/definition-generator.d.ts +6 -5
- package/dist/framework/definition-generator.js +16 -18
- package/dist/framework/file-content-generator/file-content-generator.js +1 -1
- package/dist/framework/file-content-generator/file-content-generator.test.js +49 -49
- package/dist/framework/framework.d.ts +14 -13
- package/dist/framework/framework.data.d.ts +3 -3
- package/dist/framework/framework.data.js +13 -7
- package/dist/framework/framework.js +36 -33
- package/dist/framework/framework.model.d.ts +15 -15
- package/dist/framework/framework.model.js +3 -3
- package/dist/helpers/common-functions/common-functions.js +1 -1
- package/dist/helpers/common-functions/common-functions.spec.js +48 -48
- package/dist/helpers/duplicate-helper/duplicate-helper.spec.js +52 -52
- package/dist/helpers/output-helper/output-helper.d.ts +26 -26
- package/dist/helpers/output-helper/output-helper.js +127 -107
- package/dist/helpers/output-helper/output-helper.spec.d.ts +22 -22
- package/dist/helpers/output-helper/output-helper.spec.js +223 -211
- package/dist/helpers/output-helper/output-helper.test.d.ts +22 -22
- package/dist/helpers/output-helper/output-helper.test.js +224 -212
- package/dist/helpers/raw-definition-helper/raw-definition.helper.spec.js +133 -125
- package/dist/helpers/validator/custom-validator-helper/custom-validator.helper.spec.d.ts +1 -1
- package/dist/helpers/validator/custom-validator-helper/custom-validator.helper.spec.js +174 -156
- package/dist/helpers/validator/custom-validators/image.custom-validator.d.ts +6 -6
- package/dist/helpers/validator/custom-validators/image.custom-validator.js +40 -39
- package/dist/helpers/validator/custom-validators/unique-name-group.custom-validator.d.ts +4 -4
- package/dist/helpers/validator/custom-validators/unique-name-group.custom-validator.js +29 -29
- package/dist/helpers/validator/joi-custom-validators.spec.js +284 -240
- package/dist/helpers/validator/validator.spec.js +313 -303
- package/dist/pipeline/1-select-definitions-helper.d.ts +13 -13
- package/dist/pipeline/1-select-definitions-helper.js +68 -72
- package/dist/pipeline/1-select-definitions.helper.test.js +40 -40
- package/dist/pipeline/1-select-definitions.spec.js +131 -131
- package/dist/pipeline/2-structure-parser.helper.spec.js +266 -266
- package/dist/pipeline/parsers/array-parser.spec.js +116 -113
- package/dist/pipeline/parsers/object-parser.spec.js +159 -153
- package/dist/pipeline/parsers/primitive-parser.spec.js +67 -67
- package/dist/pre-made-components/assets/3-font.js +4 -4
- package/dist/pre-made-components/events/1-event.d.ts +1 -1
- package/dist/pre-made-components/events/1-event.js +157 -125
- package/dist/pre-made-components/events/2-event-test.d.ts +8 -8
- package/dist/pre-made-components/events/2-event-test.js +156 -119
- package/dist/pre-made-components/events/2-script-test.js +0 -1
- package/dist/pre-made-components/events/event-setup.d.ts +10 -5
- package/dist/pre-made-components/events/event-setup.js +15 -15
- package/dist/pre-made-components/events/script-setup.d.ts +5 -3
- package/dist/pre-made-components/events/script-setup.js +11 -11
- package/package.json +5 -10
|
@@ -1,135 +1,172 @@
|
|
|
1
|
-
|
|
2
|
-
var __decorate =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __decorate =
|
|
3
|
+
(this && this.__decorate) ||
|
|
4
|
+
function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length,
|
|
6
|
+
r = c < 3 ? target : desc === null ? (desc = Object.getOwnPropertyDescriptor(target, key)) : desc,
|
|
7
|
+
d;
|
|
8
|
+
if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __importDefault =
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
};
|
|
15
|
+
var __importDefault =
|
|
16
|
+
(this && this.__importDefault) ||
|
|
17
|
+
function (mod) {
|
|
18
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
19
|
+
};
|
|
11
20
|
var EventTestComponent_1;
|
|
12
|
-
Object.defineProperty(exports,
|
|
21
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13
22
|
exports.EventTestComponent = void 0;
|
|
14
|
-
const helpers_lib_1 = require(
|
|
15
|
-
const joi_1 = __importDefault(require(
|
|
16
|
-
const script_engine_lib_1 = require(
|
|
17
|
-
const definition_component_1 = require(
|
|
18
|
-
const definition_store_1 = require(
|
|
19
|
-
const _1_event_1 = require(
|
|
20
|
-
const event_setup_1 = require(
|
|
23
|
+
const helpers_lib_1 = require('helpers-lib');
|
|
24
|
+
const joi_1 = __importDefault(require('joi'));
|
|
25
|
+
const script_engine_lib_1 = require('script-engine-lib');
|
|
26
|
+
const definition_component_1 = require('../../decorators/definition-component');
|
|
27
|
+
const definition_store_1 = require('../../framework/definition-store');
|
|
28
|
+
const _1_event_1 = require('./1-event');
|
|
29
|
+
const event_setup_1 = require('./event-setup');
|
|
21
30
|
const CommandEventSchema = joi_1.default.string().custom(value => ({
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
type: 'command',
|
|
32
|
+
value: value
|
|
24
33
|
}));
|
|
25
|
-
const RunEventSchema = joi_1.default
|
|
26
|
-
|
|
34
|
+
const RunEventSchema = joi_1.default
|
|
35
|
+
.object()
|
|
36
|
+
.keys({
|
|
27
37
|
runEvent: joi_1.default.string().reference(_1_event_1.EventComponent).required()
|
|
28
|
-
})
|
|
29
|
-
|
|
38
|
+
})
|
|
39
|
+
.custom(value => ({
|
|
30
40
|
type: 'runEvent',
|
|
31
41
|
value: value.runEvent
|
|
32
|
-
}));
|
|
33
|
-
const EventTestActionSchema = () =>
|
|
34
|
-
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
}));
|
|
43
|
+
const EventTestActionSchema = () =>
|
|
44
|
+
joi_1.default
|
|
45
|
+
.array()
|
|
46
|
+
.items(
|
|
47
|
+
joi_1.default
|
|
48
|
+
.alternatives()
|
|
49
|
+
.conditional(joi_1.default.string(), {
|
|
50
|
+
then: CommandEventSchema
|
|
51
|
+
})
|
|
52
|
+
.conditional(joi_1.default.object({ runEvent: joi_1.default.exist() }).unknown(), {
|
|
53
|
+
then: RunEventSchema
|
|
54
|
+
})
|
|
55
|
+
)
|
|
41
56
|
.min(1);
|
|
42
|
-
let EventTestComponent = EventTestComponent_1 = class EventTestComponent extends definition_component_1.DefinitionComponent {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
return errorLogs;
|
|
72
|
-
}
|
|
73
|
-
prepareErrorLog(e, testDefinition, testCaseIndex, output) {
|
|
74
|
-
if (e instanceof script_engine_lib_1.SimulationError) {
|
|
75
|
-
return {
|
|
76
|
-
description: e.message,
|
|
77
|
-
location: definition_store_1.DefinitionStore.getLocationInFileById(_1_event_1.EventComponent, e.location.scriptId, e.location.path)
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
else if (e instanceof script_engine_lib_1.ActionsBeforeTestingError) {
|
|
81
|
-
let executedActionLocation = definition_store_1.DefinitionStore.getLocationInFile(EventTestComponent_1, testDefinition, [
|
|
82
|
-
'cases',
|
|
83
|
-
`${testCaseIndex}`,
|
|
84
|
-
'actionsBeforeTesting',
|
|
85
|
-
`${e.actionIndex}`
|
|
86
|
-
]);
|
|
87
|
-
return {
|
|
88
|
-
description: e.message,
|
|
89
|
-
location: executedActionLocation
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
else if (e instanceof script_engine_lib_1.BranchingBeforeTestingError) {
|
|
93
|
-
let testLocation = definition_store_1.DefinitionStore.getLocationInFile(EventTestComponent_1, testDefinition, []);
|
|
94
|
-
let executionHistoryAddition = `Running the test: ${output.convertLocationInFileToLink(testLocation)}\n\n`;
|
|
95
|
-
let executionHistoryStart = e.message.indexOf('\n', e.message.indexOf('Execution history')) + 1;
|
|
96
|
-
let fullMessage = e.message.slice(0, executionHistoryStart) + executionHistoryAddition + e.message.slice(executionHistoryStart);
|
|
97
|
-
return {
|
|
98
|
-
description: fullMessage,
|
|
99
|
-
location: definition_store_1.DefinitionStore.getLocationInFileById(_1_event_1.EventComponent, e.location.scriptId, e.location.path)
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
throw e;
|
|
57
|
+
let EventTestComponent = (EventTestComponent_1 = class EventTestComponent extends definition_component_1.DefinitionComponent {
|
|
58
|
+
async process(definitions, output) {
|
|
59
|
+
let eventTestSimulator = this.createEventTestSimulator();
|
|
60
|
+
let runtimeErrors = this.runTests(definitions, eventTestSimulator, output);
|
|
61
|
+
this.printErrors(runtimeErrors, eventTestSimulator, output);
|
|
62
|
+
}
|
|
63
|
+
createEventTestSimulator() {
|
|
64
|
+
let allScripts = definition_store_1.DefinitionStore.getDefinitions(_1_event_1.EventComponent);
|
|
65
|
+
return new script_engine_lib_1.ScriptTestSimulator(allScripts);
|
|
66
|
+
}
|
|
67
|
+
runTests(testDefinitions, eventTestSimulator, output) {
|
|
68
|
+
let errorLogs = [];
|
|
69
|
+
testDefinitions.forEach(testDefinition => {
|
|
70
|
+
let event = definition_store_1.DefinitionStore.getDefinitionOrFail(_1_event_1.EventComponent, testDefinition.event);
|
|
71
|
+
let errorEncountered = false;
|
|
72
|
+
testDefinition.cases.forEach((testCase, testCaseIndex) => {
|
|
73
|
+
if (!errorEncountered) {
|
|
74
|
+
let jsEngine = new helpers_lib_1.JSEngine(new event_setup_1.EventSetup.EventSimulatorFunctionsConstructor(), {});
|
|
75
|
+
try {
|
|
76
|
+
eventTestSimulator.simulateScript(event, jsEngine, testCase.actionsBeforeTesting);
|
|
77
|
+
} catch (e) {
|
|
78
|
+
let errorLog = this.prepareErrorLog(e, testDefinition, testCaseIndex, output);
|
|
79
|
+
errorLogs.push(errorLog);
|
|
80
|
+
errorEncountered = true;
|
|
81
|
+
}
|
|
104
82
|
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
return errorLogs;
|
|
86
|
+
}
|
|
87
|
+
prepareErrorLog(e, testDefinition, testCaseIndex, output) {
|
|
88
|
+
if (e instanceof script_engine_lib_1.SimulationError) {
|
|
89
|
+
return {
|
|
90
|
+
description: e.message,
|
|
91
|
+
location: definition_store_1.DefinitionStore.getLocationInFileById(
|
|
92
|
+
_1_event_1.EventComponent,
|
|
93
|
+
e.location.scriptId,
|
|
94
|
+
e.location.path
|
|
95
|
+
)
|
|
96
|
+
};
|
|
97
|
+
} else if (e instanceof script_engine_lib_1.ActionsBeforeTestingError) {
|
|
98
|
+
let executedActionLocation = definition_store_1.DefinitionStore.getLocationInFile(EventTestComponent_1, testDefinition, [
|
|
99
|
+
'cases',
|
|
100
|
+
`${testCaseIndex}`,
|
|
101
|
+
'actionsBeforeTesting',
|
|
102
|
+
`${e.actionIndex}`
|
|
103
|
+
]);
|
|
104
|
+
return {
|
|
105
|
+
description: e.message,
|
|
106
|
+
location: executedActionLocation
|
|
107
|
+
};
|
|
108
|
+
} else if (e instanceof script_engine_lib_1.BranchingBeforeTestingError) {
|
|
109
|
+
let testLocation = definition_store_1.DefinitionStore.getLocationInFile(EventTestComponent_1, testDefinition, []);
|
|
110
|
+
let executionHistoryAddition = `Running the test: ${output.convertLocationInFileToLink(testLocation)}\n\n`;
|
|
111
|
+
let executionHistoryStart = e.message.indexOf('\n', e.message.indexOf('Execution history')) + 1;
|
|
112
|
+
let fullMessage =
|
|
113
|
+
e.message.slice(0, executionHistoryStart) + executionHistoryAddition + e.message.slice(executionHistoryStart);
|
|
114
|
+
return {
|
|
115
|
+
description: fullMessage,
|
|
116
|
+
location: definition_store_1.DefinitionStore.getLocationInFileById(
|
|
117
|
+
_1_event_1.EventComponent,
|
|
118
|
+
e.location.scriptId,
|
|
119
|
+
e.location.path
|
|
120
|
+
)
|
|
121
|
+
};
|
|
122
|
+
} else {
|
|
123
|
+
throw e;
|
|
105
124
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
125
|
+
}
|
|
126
|
+
printErrors(runtimeErrors, scriptTestSimulator, output) {
|
|
127
|
+
if (runtimeErrors.length === 0) {
|
|
128
|
+
scriptTestSimulator.getUnvisitedBranchLocations().forEach(location =>
|
|
129
|
+
output.addError({
|
|
130
|
+
description: `Event branch is not reaced by any of the combinations during the tests.`,
|
|
131
|
+
location: definition_store_1.DefinitionStore.getLocationInFileById(
|
|
132
|
+
_1_event_1.EventComponent,
|
|
133
|
+
location.scriptId,
|
|
134
|
+
location.path
|
|
135
|
+
)
|
|
136
|
+
})
|
|
137
|
+
);
|
|
114
138
|
}
|
|
115
|
-
|
|
139
|
+
runtimeErrors.forEach(error => output.addError(error));
|
|
140
|
+
}
|
|
141
|
+
});
|
|
116
142
|
exports.EventTestComponent = EventTestComponent;
|
|
117
|
-
exports.EventTestComponent =
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
143
|
+
exports.EventTestComponent =
|
|
144
|
+
EventTestComponent =
|
|
145
|
+
EventTestComponent_1 =
|
|
146
|
+
__decorate(
|
|
147
|
+
[
|
|
148
|
+
(0, definition_component_1.DefinitionComponentDecorator)({
|
|
149
|
+
componentName: 'EVENT-TEST',
|
|
150
|
+
keyName: 'id',
|
|
151
|
+
validationSchema: joi_1.default
|
|
152
|
+
.object()
|
|
122
153
|
.keys({
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.
|
|
126
|
-
.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
154
|
+
event: joi_1.default.string().reference(_1_event_1.EventComponent).required(),
|
|
155
|
+
cases: joi_1.default
|
|
156
|
+
.array()
|
|
157
|
+
.items(
|
|
158
|
+
joi_1.default
|
|
159
|
+
.object()
|
|
160
|
+
.keys({
|
|
161
|
+
actionsBeforeTesting: EventTestActionSchema().default([]).optional()
|
|
162
|
+
})
|
|
163
|
+
.required()
|
|
164
|
+
)
|
|
130
165
|
.required()
|
|
131
|
-
|
|
166
|
+
})
|
|
132
167
|
.required()
|
|
133
|
-
|
|
134
|
-
],
|
|
135
|
-
|
|
168
|
+
})
|
|
169
|
+
],
|
|
170
|
+
EventTestComponent
|
|
171
|
+
);
|
|
172
|
+
//# sourceMappingURL=2-event-test.js.map
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ScriptEngineSimulatorFunctions } from 'script-engine-lib';
|
|
2
2
|
export declare class EventSetup {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
private static _eventSimulatorFunctionsConstructor;
|
|
4
|
+
private static _richTextTags;
|
|
5
|
+
static get EventSimulatorFunctionsConstructor(): new (
|
|
6
|
+
...args: any[]
|
|
7
|
+
) => ScriptEngineSimulatorFunctions;
|
|
8
|
+
static get RichTextTags(): Set<string> | undefined;
|
|
9
|
+
static set(
|
|
10
|
+
eventSimulatorFunctionsConstructor: new (...args: any[]) => ScriptEngineSimulatorFunctions,
|
|
11
|
+
richTextTags: Set<string> | undefined
|
|
12
|
+
): void;
|
|
8
13
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.EventSetup = void 0;
|
|
4
4
|
class EventSetup {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return this._eventSimulatorFunctionsConstructor;
|
|
10
|
-
}
|
|
11
|
-
static get RichTextTags() {
|
|
12
|
-
return this._richTextTags;
|
|
13
|
-
}
|
|
14
|
-
static set(eventSimulatorFunctionsConstructor, richTextTags) {
|
|
15
|
-
this._eventSimulatorFunctionsConstructor = eventSimulatorFunctionsConstructor;
|
|
16
|
-
this._richTextTags = richTextTags;
|
|
5
|
+
static get EventSimulatorFunctionsConstructor() {
|
|
6
|
+
if (!this._eventSimulatorFunctionsConstructor) {
|
|
7
|
+
throw new Error('EventSimulatorFunctionsConstructor is not set');
|
|
17
8
|
}
|
|
9
|
+
return this._eventSimulatorFunctionsConstructor;
|
|
10
|
+
}
|
|
11
|
+
static get RichTextTags() {
|
|
12
|
+
return this._richTextTags;
|
|
13
|
+
}
|
|
14
|
+
static set(eventSimulatorFunctionsConstructor, richTextTags) {
|
|
15
|
+
this._eventSimulatorFunctionsConstructor = eventSimulatorFunctionsConstructor;
|
|
16
|
+
this._richTextTags = richTextTags;
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
19
|
exports.EventSetup = EventSetup;
|
|
20
|
-
//# sourceMappingURL=event-setup.js.map
|
|
20
|
+
//# sourceMappingURL=event-setup.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ScriptEngineSimulatorFunctions } from 'script-engine-lib';
|
|
2
2
|
export declare class ScriptSetup {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
private static _scriptSimulatorFunctionsConstructor;
|
|
4
|
+
static get ScriptSimulatorFunctionsConstructor(): new (
|
|
5
|
+
...args: any[]
|
|
6
|
+
) => ScriptEngineSimulatorFunctions;
|
|
7
|
+
static set(scriptSimulatorFunctionsConstructor: new (...args: any[]) => ScriptEngineSimulatorFunctions): void;
|
|
6
8
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.ScriptSetup = void 0;
|
|
4
4
|
class ScriptSetup {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return this._scriptSimulatorFunctionsConstructor;
|
|
10
|
-
}
|
|
11
|
-
static set(scriptSimulatorFunctionsConstructor) {
|
|
12
|
-
this._scriptSimulatorFunctionsConstructor = scriptSimulatorFunctionsConstructor;
|
|
5
|
+
static get ScriptSimulatorFunctionsConstructor() {
|
|
6
|
+
if (!this._scriptSimulatorFunctionsConstructor) {
|
|
7
|
+
throw new Error('ScriptSimulatorFunctionsConstructor is not set');
|
|
13
8
|
}
|
|
9
|
+
return this._scriptSimulatorFunctionsConstructor;
|
|
10
|
+
}
|
|
11
|
+
static set(scriptSimulatorFunctionsConstructor) {
|
|
12
|
+
this._scriptSimulatorFunctionsConstructor = scriptSimulatorFunctionsConstructor;
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
15
|
exports.ScriptSetup = ScriptSetup;
|
|
16
|
-
//# sourceMappingURL=script-setup.js.map
|
|
16
|
+
//# sourceMappingURL=script-setup.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "definition-generator-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.6",
|
|
4
4
|
"description": "Definition Generator Framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "vitest",
|
|
35
35
|
"start": "npm run build && node dist",
|
|
36
36
|
"build": "tsc",
|
|
37
|
-
"lint": "
|
|
37
|
+
"lint": "biome check . --write --max-diagnostics=1",
|
|
38
38
|
"deploy": "vitest run && npm run build && npm publish",
|
|
39
39
|
"prepack": "cp package.json package.json.bak && ts-node scripts/prepare-package-json.ts",
|
|
40
40
|
"postpack": "mv package.json.bak package.json"
|
|
@@ -45,19 +45,14 @@
|
|
|
45
45
|
"joi": "17.11.0",
|
|
46
46
|
"prettier": "3.3.3",
|
|
47
47
|
"jsonpath-plus": "8.1.0",
|
|
48
|
-
"script-engine-lib": "0.4.3"
|
|
48
|
+
"script-engine-lib": "0.4.3",
|
|
49
|
+
"glob": "10.3.14"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
52
|
+
"@biomejs/biome": "2.2.4",
|
|
51
53
|
"@types/glob": "8.1.0",
|
|
52
54
|
"@types/node": "20.10.5",
|
|
53
55
|
"@types/rimraf": "4.0.5",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "6.16.0",
|
|
55
|
-
"@typescript-eslint/parser": "6.16.0",
|
|
56
|
-
"eslint": "8.56.0",
|
|
57
|
-
"eslint-config-prettier": "9.1.0",
|
|
58
|
-
"eslint-plugin-import": "2.29.1",
|
|
59
|
-
"eslint-plugin-no-null": "1.0.2",
|
|
60
|
-
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
61
56
|
"ts-node": "10.9.2",
|
|
62
57
|
"typescript": "5.3.3",
|
|
63
58
|
"vitest": "1.6.0"
|