@contractspec/example.kb-update-pipeline 3.7.5 → 3.7.7
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/.turbo/turbo-build.log +3 -3
- package/AGENTS.md +50 -29
- package/CHANGELOG.md +9 -0
- package/README.md +59 -12
- package/dist/browser/entities/index.js +2 -2
- package/dist/browser/entities/models.js +2 -2
- package/dist/browser/events.js +1 -1
- package/dist/browser/index.js +70 -70
- package/dist/browser/operations/index.js +3 -3
- package/dist/browser/operations/pipeline.js +3 -3
- package/dist/browser/presentations.js +2 -2
- package/dist/entities/index.js +2 -2
- package/dist/entities/models.js +2 -2
- package/dist/events.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -70
- package/dist/node/entities/index.js +2 -2
- package/dist/node/entities/models.js +2 -2
- package/dist/node/events.js +1 -1
- package/dist/node/index.js +70 -70
- package/dist/node/operations/index.js +3 -3
- package/dist/node/operations/pipeline.js +3 -3
- package/dist/node/presentations.js +2 -2
- package/dist/operations/index.js +3 -3
- package/dist/operations/pipeline.js +3 -3
- package/dist/presentations.js +2 -2
- package/package.json +7 -7
- package/src/docs/kb-update-pipeline.docblock.ts +22 -22
- package/src/entities/models.ts +36 -36
- package/src/events.ts +99 -99
- package/src/example.ts +28 -28
- package/src/handlers/memory.handlers.test.ts +64 -64
- package/src/handlers/memory.handlers.ts +158 -158
- package/src/index.ts +2 -2
- package/src/kb-update-pipeline.feature.ts +62 -62
- package/src/operations/pipeline.ts +125 -125
- package/src/presentations.ts +59 -59
- package/src/tests/operations.test-spec.ts +72 -72
- package/tsconfig.json +7 -17
- package/tsdown.config.js +7 -13
|
@@ -1,159 +1,159 @@
|
|
|
1
1
|
import { defineCommand } from '@contractspec/lib.contracts-spec';
|
|
2
|
-
import {
|
|
2
|
+
import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
ChangeCandidateModel,
|
|
6
|
+
ReviewDecisionEnum,
|
|
7
|
+
ReviewTaskModel,
|
|
8
8
|
} from '../entities/models';
|
|
9
9
|
|
|
10
10
|
const RunWatchInput = defineSchemaModel({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
name: 'KbPipelineRunWatchInput',
|
|
12
|
+
description: 'Trigger a watch cycle for KB sources (demo).',
|
|
13
|
+
fields: {
|
|
14
|
+
jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
15
|
+
},
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const RunWatchOutput = defineSchemaModel({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
name: 'KbPipelineRunWatchOutput',
|
|
20
|
+
description: 'Output containing detected changes.',
|
|
21
|
+
fields: {
|
|
22
|
+
candidates: {
|
|
23
|
+
type: ChangeCandidateModel,
|
|
24
|
+
isArray: true,
|
|
25
|
+
isOptional: false,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
const CreateReviewTaskInput = defineSchemaModel({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
name: 'KbPipelineCreateReviewTaskInput',
|
|
32
|
+
description: 'Create a review task for a change candidate.',
|
|
33
|
+
fields: {
|
|
34
|
+
changeCandidateId: {
|
|
35
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
36
|
+
isOptional: false,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
const SubmitDecisionInput = defineSchemaModel({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
name: 'KbPipelineSubmitDecisionInput',
|
|
43
|
+
description: 'Submit a decision for a review task.',
|
|
44
|
+
fields: {
|
|
45
|
+
reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
46
|
+
decision: { type: ReviewDecisionEnum, isOptional: false },
|
|
47
|
+
decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
48
|
+
decidedByRole: {
|
|
49
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
50
|
+
isOptional: false,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
const PublishIfReadyInput = defineSchemaModel({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
name: 'KbPipelinePublishIfReadyInput',
|
|
57
|
+
description:
|
|
58
|
+
'Publish snapshot if approvals are satisfied for a jurisdiction.',
|
|
59
|
+
fields: {
|
|
60
|
+
jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
61
|
+
},
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
const PublishIfReadyOutput = defineSchemaModel({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
name: 'KbPipelinePublishIfReadyOutput',
|
|
66
|
+
description: 'Output for publish-if-ready operation.',
|
|
67
|
+
fields: {
|
|
68
|
+
published: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
69
|
+
reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
70
|
+
},
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
export const KbPipelineRunWatchContract = defineCommand({
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
meta: {
|
|
75
|
+
key: 'kbPipeline.runWatch',
|
|
76
|
+
version: '1.0.0',
|
|
77
|
+
stability: 'experimental',
|
|
78
|
+
owners: ['@examples'],
|
|
79
|
+
tags: ['knowledge', 'pipeline', 'jobs'],
|
|
80
|
+
description: 'Detect source changes and create change candidates.',
|
|
81
|
+
goal: 'Automate discovery of updates needing review.',
|
|
82
|
+
context: 'Scheduled job or manual trigger in demos.',
|
|
83
|
+
},
|
|
84
|
+
io: { input: RunWatchInput, output: RunWatchOutput },
|
|
85
|
+
policy: { auth: 'user' },
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
export const KbPipelineCreateReviewTaskContract = defineCommand({
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
89
|
+
meta: {
|
|
90
|
+
key: 'kbPipeline.createReviewTask',
|
|
91
|
+
version: '1.0.0',
|
|
92
|
+
stability: 'experimental',
|
|
93
|
+
owners: ['@examples'],
|
|
94
|
+
tags: ['knowledge', 'pipeline', 'hitl'],
|
|
95
|
+
description: 'Create a review task for a detected change.',
|
|
96
|
+
goal: 'Route work to human verifiers.',
|
|
97
|
+
context: 'Called after change detection or manual selection.',
|
|
98
|
+
},
|
|
99
|
+
io: { input: CreateReviewTaskInput, output: ReviewTaskModel },
|
|
100
|
+
policy: { auth: 'user' },
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
export const KbPipelineSubmitDecisionContract = defineCommand({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
104
|
+
meta: {
|
|
105
|
+
key: 'kbPipeline.submitDecision',
|
|
106
|
+
version: '1.0.0',
|
|
107
|
+
stability: 'experimental',
|
|
108
|
+
owners: ['@examples'],
|
|
109
|
+
tags: ['knowledge', 'pipeline', 'hitl', 'rbac'],
|
|
110
|
+
description: 'Submit approve/reject decision for a review task.',
|
|
111
|
+
goal: 'Ensure humans verify before publishing.',
|
|
112
|
+
context: 'Curator/expert reviews and decides.',
|
|
113
|
+
},
|
|
114
|
+
io: {
|
|
115
|
+
input: SubmitDecisionInput,
|
|
116
|
+
output: ReviewTaskModel,
|
|
117
|
+
errors: {
|
|
118
|
+
FORBIDDEN_ROLE: {
|
|
119
|
+
description: 'Role not allowed to approve the given risk level',
|
|
120
|
+
http: 403,
|
|
121
|
+
gqlCode: 'FORBIDDEN_ROLE',
|
|
122
|
+
when: 'curator attempts to approve a high-risk change',
|
|
123
|
+
},
|
|
124
|
+
REVIEW_TASK_NOT_FOUND: {
|
|
125
|
+
description: 'Review task not found',
|
|
126
|
+
http: 404,
|
|
127
|
+
gqlCode: 'REVIEW_TASK_NOT_FOUND',
|
|
128
|
+
when: 'reviewTaskId is invalid',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
policy: { auth: 'user' },
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
export const KbPipelinePublishIfReadyContract = defineCommand({
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
136
|
+
meta: {
|
|
137
|
+
key: 'kbPipeline.publishIfReady',
|
|
138
|
+
version: '1.0.0',
|
|
139
|
+
stability: 'experimental',
|
|
140
|
+
owners: ['@examples'],
|
|
141
|
+
tags: ['knowledge', 'pipeline', 'publishing'],
|
|
142
|
+
description: 'Publish snapshot if ready (all approvals satisfied).',
|
|
143
|
+
goal: 'Prevent publishing until all required approvals exist.',
|
|
144
|
+
context: 'Called by job or UI to attempt publish.',
|
|
145
|
+
},
|
|
146
|
+
io: {
|
|
147
|
+
input: PublishIfReadyInput,
|
|
148
|
+
output: PublishIfReadyOutput,
|
|
149
|
+
errors: {
|
|
150
|
+
NOT_READY: {
|
|
151
|
+
description: 'Publishing is blocked because approvals are incomplete',
|
|
152
|
+
http: 409,
|
|
153
|
+
gqlCode: 'NOT_READY',
|
|
154
|
+
when: 'there are open review tasks or unapproved rule versions',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
policy: { auth: 'user' },
|
|
159
159
|
});
|
package/src/presentations.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
definePresentation,
|
|
3
|
+
StabilityEnum,
|
|
4
4
|
} from '@contractspec/lib.contracts-spec';
|
|
5
5
|
import { ChangeCandidateModel, ReviewTaskModel } from './entities/models';
|
|
6
6
|
|
|
7
7
|
export const KbDashboardPresentation = definePresentation({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
meta: {
|
|
9
|
+
key: 'kb.dashboard',
|
|
10
|
+
version: '1.0.0',
|
|
11
|
+
title: 'KB Update Dashboard',
|
|
12
|
+
description: 'Overview of KB change candidates and review tasks.',
|
|
13
|
+
domain: 'knowledge',
|
|
14
|
+
owners: ['@examples'],
|
|
15
|
+
tags: ['dashboard', 'knowledge'],
|
|
16
|
+
stability: StabilityEnum.Experimental,
|
|
17
|
+
goal: 'Visualize status',
|
|
18
|
+
context: 'Dashboard',
|
|
19
|
+
},
|
|
20
|
+
source: {
|
|
21
|
+
type: 'component',
|
|
22
|
+
framework: 'react',
|
|
23
|
+
componentKey: 'KbDashboard',
|
|
24
|
+
props: ChangeCandidateModel, // Simplified props mapping for example
|
|
25
|
+
},
|
|
26
|
+
targets: ['react', 'markdown'],
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
export const KbReviewListPresentation = definePresentation({
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
meta: {
|
|
31
|
+
key: 'kb.review.list',
|
|
32
|
+
version: '1.0.0',
|
|
33
|
+
title: 'Review Tasks',
|
|
34
|
+
description: 'List of pending review tasks for the current user.',
|
|
35
|
+
domain: 'knowledge',
|
|
36
|
+
owners: ['@examples'],
|
|
37
|
+
tags: ['list', 'review'],
|
|
38
|
+
stability: StabilityEnum.Experimental,
|
|
39
|
+
goal: 'List tasks',
|
|
40
|
+
context: 'Inbox',
|
|
41
|
+
},
|
|
42
|
+
source: {
|
|
43
|
+
type: 'component',
|
|
44
|
+
framework: 'react',
|
|
45
|
+
componentKey: 'ReviewTaskList',
|
|
46
|
+
props: ReviewTaskModel,
|
|
47
|
+
},
|
|
48
|
+
targets: ['react', 'markdown'],
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
export const KbReviewFormPresentation = definePresentation({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
52
|
+
meta: {
|
|
53
|
+
key: 'kb.review.form',
|
|
54
|
+
version: '1.0.0',
|
|
55
|
+
title: 'Review Change',
|
|
56
|
+
description: 'Form to approve or reject a KB change candidate.',
|
|
57
|
+
domain: 'knowledge',
|
|
58
|
+
owners: ['@examples'],
|
|
59
|
+
tags: ['form', 'review'],
|
|
60
|
+
stability: StabilityEnum.Experimental,
|
|
61
|
+
goal: 'Review',
|
|
62
|
+
context: 'Detail',
|
|
63
|
+
},
|
|
64
|
+
source: {
|
|
65
|
+
type: 'component',
|
|
66
|
+
framework: 'react',
|
|
67
|
+
componentKey: 'ReviewDecisionForm',
|
|
68
|
+
props: ReviewTaskModel,
|
|
69
|
+
},
|
|
70
|
+
targets: ['react'],
|
|
71
71
|
});
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import { defineTestSpec } from '@contractspec/lib.contracts-spec/tests';
|
|
2
2
|
|
|
3
3
|
export const RunWatchTest = defineTestSpec({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'kbPipeline.runWatch.test',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
stability: 'experimental',
|
|
8
|
+
owners: ['@example.kb-update-pipeline'],
|
|
9
|
+
description: 'Test for run watch operation',
|
|
10
|
+
tags: ['test'],
|
|
11
|
+
},
|
|
12
|
+
target: {
|
|
13
|
+
type: 'operation',
|
|
14
|
+
operation: { key: 'kbPipeline.runWatch', version: '1.0.0' },
|
|
15
|
+
},
|
|
16
|
+
scenarios: [
|
|
17
|
+
{
|
|
18
|
+
key: 'success',
|
|
19
|
+
when: { operation: { key: 'kbPipeline.runWatch' } },
|
|
20
|
+
then: [{ type: 'expectOutput', match: {} }],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: 'error',
|
|
24
|
+
when: { operation: { key: 'kbPipeline.runWatch' } },
|
|
25
|
+
then: [{ type: 'expectError' }],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
export const CreateReviewTaskTest = defineTestSpec({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
meta: {
|
|
32
|
+
key: 'kbPipeline.createReviewTask.test',
|
|
33
|
+
version: '1.0.0',
|
|
34
|
+
stability: 'experimental',
|
|
35
|
+
owners: ['@example.kb-update-pipeline'],
|
|
36
|
+
description: 'Test for creating review task',
|
|
37
|
+
tags: ['test'],
|
|
38
|
+
},
|
|
39
|
+
target: {
|
|
40
|
+
type: 'operation',
|
|
41
|
+
operation: { key: 'kbPipeline.createReviewTask', version: '1.0.0' },
|
|
42
|
+
},
|
|
43
|
+
scenarios: [
|
|
44
|
+
{
|
|
45
|
+
key: 'success',
|
|
46
|
+
when: { operation: { key: 'kbPipeline.createReviewTask' } },
|
|
47
|
+
then: [{ type: 'expectOutput', match: {} }],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: 'error',
|
|
51
|
+
when: { operation: { key: 'kbPipeline.createReviewTask' } },
|
|
52
|
+
then: [{ type: 'expectError' }],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
export const SubmitDecisionTest = defineTestSpec({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
58
|
+
meta: {
|
|
59
|
+
key: 'kbPipeline.submitDecision.test',
|
|
60
|
+
version: '1.0.0',
|
|
61
|
+
stability: 'experimental',
|
|
62
|
+
owners: ['@example.kb-update-pipeline'],
|
|
63
|
+
description: 'Test for submitting decision',
|
|
64
|
+
tags: ['test'],
|
|
65
|
+
},
|
|
66
|
+
target: {
|
|
67
|
+
type: 'operation',
|
|
68
|
+
operation: { key: 'kbPipeline.submitDecision', version: '1.0.0' },
|
|
69
|
+
},
|
|
70
|
+
scenarios: [
|
|
71
|
+
{
|
|
72
|
+
key: 'success',
|
|
73
|
+
when: { operation: { key: 'kbPipeline.submitDecision' } },
|
|
74
|
+
then: [{ type: 'expectOutput', match: {} }],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'error',
|
|
78
|
+
when: { operation: { key: 'kbPipeline.submitDecision' } },
|
|
79
|
+
then: [{ type: 'expectError' }],
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
82
|
});
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"extends": "@contractspec/tool.typescript/react-library.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"rootDir": "./src"
|
|
6
|
+
},
|
|
7
|
+
"include": ["src/**/*"],
|
|
8
|
+
"exclude": ["node_modules", "dist"]
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
package/tsdown.config.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
defineConfig,
|
|
3
|
+
moduleLibrary,
|
|
4
|
+
withDevExports,
|
|
5
|
+
} from '@contractspec/tool.bun';
|
|
2
6
|
|
|
3
7
|
export default defineConfig(() => ({
|
|
4
|
-
|
|
5
|
-
|
|
8
|
+
...moduleLibrary,
|
|
9
|
+
...withDevExports,
|
|
6
10
|
}));
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|