@geonosis/document 0.6.0 → 0.8.0
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/CHANGELOG.md +73 -0
- package/README.md +44 -5
- package/dist/{chunk-WWP7MNI7.js → chunk-A6ZU4QU3.js} +6 -15
- package/dist/chunk-NA3DLROL.js +171 -0
- package/dist/{ports-D0NtPwAO.d.cts → entities-DTNJMeVf.d.cts} +3 -31
- package/dist/{ports-D0NtPwAO.d.ts → entities-DTNJMeVf.d.ts} +3 -31
- package/dist/index.cjs +177 -3
- package/dist/index.d.cts +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.js +35 -5
- package/dist/ports-C_OfflMQ.d.cts +66 -0
- package/dist/ports-C_OfflMQ.d.ts +66 -0
- package/dist/store.cjs +19 -6
- package/dist/store.d.cts +12 -20
- package/dist/store.d.ts +12 -20
- package/dist/store.js +15 -88
- package/dist/workflows.cjs +513 -0
- package/dist/workflows.d.cts +310 -0
- package/dist/workflows.d.ts +310 -0
- package/dist/workflows.js +386 -0
- package/package.json +15 -3
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import {
|
|
2
|
+
canTransition,
|
|
3
|
+
enumOf,
|
|
4
|
+
nonEmptyString,
|
|
5
|
+
objectOf,
|
|
6
|
+
optional,
|
|
7
|
+
positiveInt,
|
|
8
|
+
systemActor,
|
|
9
|
+
validate
|
|
10
|
+
} from "./chunk-NA3DLROL.js";
|
|
11
|
+
|
|
12
|
+
// src/workflows/document-workflows.ts
|
|
13
|
+
import { createStep, createWorkflow } from "@geonosis/workflows";
|
|
14
|
+
|
|
15
|
+
// src/workflows/refusals.ts
|
|
16
|
+
import { TaggedError as tagged } from "better-result";
|
|
17
|
+
var DOCUMENT_NOT_FOUND_TAG = "DocumentNotFound";
|
|
18
|
+
var DOCUMENT_TAKEN_TAG = "DocumentTaken";
|
|
19
|
+
var NUMBERING_REFUSED_TAG = "NumberingRefused";
|
|
20
|
+
var TRANSITION_REFUSED_TAG = "TransitionRefused";
|
|
21
|
+
var DOCUMENT_NOT_REMOVABLE_TAG = "DocumentNotRemovable";
|
|
22
|
+
var CONVERSION_REFUSED_TAG = "ConversionRefused";
|
|
23
|
+
var DocumentNotFound = class extends (/* @__PURE__ */ tagged(DOCUMENT_NOT_FOUND_TAG)) {
|
|
24
|
+
};
|
|
25
|
+
var DocumentTaken = class extends (/* @__PURE__ */ tagged(DOCUMENT_TAKEN_TAG)) {
|
|
26
|
+
};
|
|
27
|
+
var NumberingRefused = class extends (/* @__PURE__ */ tagged(NUMBERING_REFUSED_TAG)) {
|
|
28
|
+
};
|
|
29
|
+
var TransitionRefused = class extends (/* @__PURE__ */ tagged(TRANSITION_REFUSED_TAG)) {
|
|
30
|
+
};
|
|
31
|
+
var DocumentNotRemovable = class extends (/* @__PURE__ */ tagged(DOCUMENT_NOT_REMOVABLE_TAG)) {
|
|
32
|
+
};
|
|
33
|
+
var ConversionRefused = class extends (/* @__PURE__ */ tagged(CONVERSION_REFUSED_TAG)) {
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/workflows/document-workflows.ts
|
|
37
|
+
var withArticle = (noun) => `${/^[aeiou]/i.test(noun) ? "an" : "a"} ${noun}`;
|
|
38
|
+
var capitalised = (noun) => `${noun.charAt(0).toUpperCase()}${noun.slice(1)}`;
|
|
39
|
+
var mailText = (opening, url, ttlDays) => `${opening}
|
|
40
|
+
|
|
41
|
+
${url}
|
|
42
|
+
|
|
43
|
+
The link works for ${ttlDays} days.
|
|
44
|
+
`;
|
|
45
|
+
var typed = (schema) => schema;
|
|
46
|
+
var defaultActor = (ctx, workflowName) => {
|
|
47
|
+
const held = ctx?.actor;
|
|
48
|
+
return typeof held === "string" ? held : systemActor(workflowName);
|
|
49
|
+
};
|
|
50
|
+
var documentWorkflows = (entity, options) => {
|
|
51
|
+
const { effects, ports } = options;
|
|
52
|
+
const name = entity.name;
|
|
53
|
+
const article = withArticle(entity.noun);
|
|
54
|
+
const noun = capitalised(entity.noun);
|
|
55
|
+
const actorOf = ports.actor ?? defaultActor;
|
|
56
|
+
const guard = ports.guard ?? (() => Promise.resolve());
|
|
57
|
+
const now = ports.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
|
|
58
|
+
const seed = ports.seed ?? ((_ctx, seeding) => {
|
|
59
|
+
if (seeding.templateId !== void 0) {
|
|
60
|
+
throw new Error(`${article} takes no template: this host declares no seed port`);
|
|
61
|
+
}
|
|
62
|
+
return Promise.resolve(seeding.input);
|
|
63
|
+
});
|
|
64
|
+
const beforeCreate = effects.beforeCreate ?? ((_ctx, body) => Promise.resolve(body));
|
|
65
|
+
const mailWords = effects.mail ?? ((number) => ({
|
|
66
|
+
subject: `${noun} ${number}`,
|
|
67
|
+
opening: `${noun} ${number} is ready for you to read.`
|
|
68
|
+
}));
|
|
69
|
+
const announce = (fact) => effects.announce(fact);
|
|
70
|
+
const write = async (ctx, written, workflowName) => {
|
|
71
|
+
await ports.door(ctx, written.entity).commit({
|
|
72
|
+
actor: actorOf(ctx, workflowName),
|
|
73
|
+
body: written.body,
|
|
74
|
+
ref: written.number
|
|
75
|
+
});
|
|
76
|
+
return written;
|
|
77
|
+
};
|
|
78
|
+
const stored = async (ctx, at) => {
|
|
79
|
+
const found = await ports.door(ctx, name).get({ ref: at.ref });
|
|
80
|
+
if (!found) {
|
|
81
|
+
throw new DocumentNotFound({
|
|
82
|
+
entity: name,
|
|
83
|
+
message: `no ${entity.noun} is stored as ${at.ref}`,
|
|
84
|
+
ref: at.ref
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return found;
|
|
88
|
+
};
|
|
89
|
+
const refuseTaken = async (ctx, at) => {
|
|
90
|
+
const owner = at.entity ?? name;
|
|
91
|
+
if (await ports.door(ctx, owner).get({ ref: at.ref })) {
|
|
92
|
+
throw new DocumentTaken({
|
|
93
|
+
entity: owner,
|
|
94
|
+
message: `a ${owner} is already stored as ${at.ref}`,
|
|
95
|
+
ref: at.ref
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const refFor = async (ctx, given, draft) => {
|
|
100
|
+
const numbering = entity.numbering;
|
|
101
|
+
if (numbering.mode === "given") {
|
|
102
|
+
if (given === void 0) {
|
|
103
|
+
throw new NumberingRefused({
|
|
104
|
+
entity: name,
|
|
105
|
+
message: `${article} is numbered by whoever creates it`,
|
|
106
|
+
mode: "given"
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
await refuseTaken(ctx, { ref: given });
|
|
110
|
+
return { ref: given, minted: null };
|
|
111
|
+
}
|
|
112
|
+
if (given !== void 0) {
|
|
113
|
+
throw new NumberingRefused({
|
|
114
|
+
entity: name,
|
|
115
|
+
message: `${article} is numbered by the organisation`,
|
|
116
|
+
mode: "counter"
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
if (ports.counter === void 0) {
|
|
120
|
+
throw new NumberingRefused({
|
|
121
|
+
entity: name,
|
|
122
|
+
message: `${article} is numbered from a counter and this host declares no counter port`,
|
|
123
|
+
mode: "counter"
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const series = numbering.series(draft);
|
|
127
|
+
const { number: sequence } = await ports.counter(ctx, numbering.counter);
|
|
128
|
+
return { ref: numbering.format(series, sequence), minted: { sequence } };
|
|
129
|
+
};
|
|
130
|
+
const shareLink = createStep(
|
|
131
|
+
{ name: "create-share-link", noCompensation: true },
|
|
132
|
+
(input, ctx) => ports.link(ctx, { entity: name, ...input })
|
|
133
|
+
);
|
|
134
|
+
const sendMail = createStep(
|
|
135
|
+
{ name: "send-email", noCompensation: true },
|
|
136
|
+
async (input, ctx) => {
|
|
137
|
+
const sent = await ports.mail(ctx, input);
|
|
138
|
+
if (sent.isErr()) throw sent.error;
|
|
139
|
+
return { to: input.to };
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
const createName = `${name}.create`;
|
|
143
|
+
const create = createWorkflow(
|
|
144
|
+
createName,
|
|
145
|
+
async (input, ctx) => {
|
|
146
|
+
await guard(ctx);
|
|
147
|
+
const draft = await validate(
|
|
148
|
+
entity.draft,
|
|
149
|
+
await seed(ctx, {
|
|
150
|
+
entity: name,
|
|
151
|
+
templateId: input.templateId,
|
|
152
|
+
input: input.body
|
|
153
|
+
})
|
|
154
|
+
);
|
|
155
|
+
const minted = await refFor(ctx, input.ref, draft);
|
|
156
|
+
const body = entity.prepare(
|
|
157
|
+
await beforeCreate(ctx, entity.fromDraft(draft, minted.ref))
|
|
158
|
+
);
|
|
159
|
+
const written = await write(ctx, { entity: name, number: minted.ref, body }, createName);
|
|
160
|
+
return { ...written, minted: minted.minted };
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
announce: ({ minted, ...written }) => announce({ kind: "created", written, minted }),
|
|
164
|
+
input: typed(
|
|
165
|
+
objectOf({
|
|
166
|
+
body: entity.draft,
|
|
167
|
+
ref: optional(nonEmptyString),
|
|
168
|
+
templateId: optional(nonEmptyString)
|
|
169
|
+
})
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
const saveName = `${name}.save`;
|
|
174
|
+
const save = createWorkflow(
|
|
175
|
+
saveName,
|
|
176
|
+
async (input, ctx) => {
|
|
177
|
+
const current = await stored(ctx, input);
|
|
178
|
+
const body = entity.prepare(
|
|
179
|
+
entity.merge(current.body, input.body, now())
|
|
180
|
+
);
|
|
181
|
+
return write(ctx, { entity: name, number: input.ref, body }, saveName);
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
announce: (written) => announce({ kind: "saved", written }),
|
|
185
|
+
input: typed(objectOf({ body: entity.incoming, ref: nonEmptyString }))
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
const setStatusName = `${name}.set-status`;
|
|
189
|
+
const setStatus = createWorkflow(
|
|
190
|
+
setStatusName,
|
|
191
|
+
async (input, ctx) => {
|
|
192
|
+
const current = await stored(ctx, input);
|
|
193
|
+
const from = entity.statusOf(current.body);
|
|
194
|
+
if (!canTransition(entity.statuses, from, input.to)) {
|
|
195
|
+
throw new TransitionRefused({
|
|
196
|
+
entity: name,
|
|
197
|
+
from,
|
|
198
|
+
message: `${article} cannot go from ${from} to ${input.to}`,
|
|
199
|
+
ref: input.ref,
|
|
200
|
+
to: input.to
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
const written = await write(
|
|
204
|
+
ctx,
|
|
205
|
+
{
|
|
206
|
+
entity: name,
|
|
207
|
+
number: input.ref,
|
|
208
|
+
body: entity.withStatus(current.body, input.to, now())
|
|
209
|
+
},
|
|
210
|
+
setStatusName
|
|
211
|
+
);
|
|
212
|
+
return { ...written, to: input.to };
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
announce: ({ to, ...written }) => announce({ kind: "moved", written, to }),
|
|
216
|
+
input: typed(
|
|
217
|
+
objectOf({ ref: nonEmptyString, to: enumOf(entity.statuses.statuses) })
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
const refInput = typed(objectOf({ ref: nonEmptyString }));
|
|
222
|
+
const deleteName = `${name}.delete`;
|
|
223
|
+
const remove = createWorkflow(
|
|
224
|
+
deleteName,
|
|
225
|
+
async (input, ctx) => {
|
|
226
|
+
if (!entity.removable) {
|
|
227
|
+
throw new DocumentNotRemovable({
|
|
228
|
+
entity: name,
|
|
229
|
+
message: `deleting is not something ${article} does`
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
const door = ports.door(ctx, name);
|
|
233
|
+
const found = await door.get({ ref: input.ref });
|
|
234
|
+
if (!found) {
|
|
235
|
+
throw new DocumentNotFound({
|
|
236
|
+
entity: name,
|
|
237
|
+
message: `no ${entity.noun} is stored as ${input.ref}`,
|
|
238
|
+
ref: input.ref
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
await door.retire({ actor: actorOf(ctx, deleteName), ref: input.ref });
|
|
242
|
+
return { number: input.ref };
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
announce: (removed) => announce({ kind: "deleted", number: removed.number }),
|
|
246
|
+
input: refInput
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
const sendName = `${name}.send`;
|
|
250
|
+
const send = createWorkflow(
|
|
251
|
+
sendName,
|
|
252
|
+
async (input, ctx) => {
|
|
253
|
+
const current = await stored(ctx, input);
|
|
254
|
+
const link = await shareLink({
|
|
255
|
+
ref: input.ref,
|
|
256
|
+
now: input.now,
|
|
257
|
+
...input.ttlDays === void 0 ? {} : { ttlDays: input.ttlDays }
|
|
258
|
+
});
|
|
259
|
+
const marked = entity.onSent(current.body);
|
|
260
|
+
const written = marked === current.body ? { entity: name, number: input.ref, body: current.body } : await write(ctx, { entity: name, number: input.ref, body: marked }, sendName);
|
|
261
|
+
const words = mailWords(input.ref);
|
|
262
|
+
await sendMail({
|
|
263
|
+
to: input.to,
|
|
264
|
+
subject: words.subject,
|
|
265
|
+
text: mailText(words.opening, link.url, link.ttlDays)
|
|
266
|
+
});
|
|
267
|
+
return { ...written, to: input.to, url: link.url, expiresAt: link.expiresAt };
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
announce: ({ to, url, expiresAt, ...written }) => announce({ kind: "sent", written, to, url, expiresAt }),
|
|
271
|
+
execution: "durable",
|
|
272
|
+
idempotent: (input) => `${sendName}:${input.ref}:${input.to}`,
|
|
273
|
+
input: typed(
|
|
274
|
+
objectOf({
|
|
275
|
+
now: positiveInt,
|
|
276
|
+
ref: nonEmptyString,
|
|
277
|
+
to: nonEmptyString,
|
|
278
|
+
ttlDays: optional(positiveInt)
|
|
279
|
+
})
|
|
280
|
+
)
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
const convertName = `${name}.convert`;
|
|
284
|
+
const convert = createWorkflow(
|
|
285
|
+
convertName,
|
|
286
|
+
async (input, ctx) => {
|
|
287
|
+
const conversion = effects.conversion;
|
|
288
|
+
if (conversion === void 0) {
|
|
289
|
+
throw new ConversionRefused({
|
|
290
|
+
entity: name,
|
|
291
|
+
message: `converting is not something ${article} does`,
|
|
292
|
+
ref: input.ref
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
const source = await stored(ctx, input);
|
|
296
|
+
const refusal = conversion.refuse(source.body);
|
|
297
|
+
if (refusal !== null) {
|
|
298
|
+
throw new ConversionRefused({
|
|
299
|
+
entity: name,
|
|
300
|
+
message: `${input.ref} ${refusal}`,
|
|
301
|
+
ref: input.ref
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
await refuseTaken(ctx, { ref: input.ref, entity: conversion.to.name });
|
|
305
|
+
await ports.door(ctx, conversion.to.name).commit({
|
|
306
|
+
actor: actorOf(ctx, convertName),
|
|
307
|
+
body: conversion.bodyFor(source.body, input.ref),
|
|
308
|
+
ref: input.ref
|
|
309
|
+
});
|
|
310
|
+
await write(
|
|
311
|
+
ctx,
|
|
312
|
+
{
|
|
313
|
+
entity: name,
|
|
314
|
+
number: input.ref,
|
|
315
|
+
body: conversion.markSource(source.body, input.ref)
|
|
316
|
+
},
|
|
317
|
+
convertName
|
|
318
|
+
);
|
|
319
|
+
return { entity: conversion.to.name, number: input.ref };
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
announce: (converted) => announce({ kind: "converted", number: converted.number, to: converted.entity }),
|
|
323
|
+
input: refInput
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
const duplicateName = `${name}.duplicate`;
|
|
327
|
+
const duplicate = createWorkflow(
|
|
328
|
+
duplicateName,
|
|
329
|
+
async (input, ctx) => {
|
|
330
|
+
await guard(ctx);
|
|
331
|
+
const current = await stored(ctx, input);
|
|
332
|
+
const body = entity.copy(current.body);
|
|
333
|
+
const minted = await refFor(ctx, input.targetRef, body);
|
|
334
|
+
const written = await write(ctx, { entity: name, number: minted.ref, body }, duplicateName);
|
|
335
|
+
return { ...written, minted: minted.minted };
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
announce: ({ minted, ...written }) => announce({ kind: "created", written, minted }),
|
|
339
|
+
input: typed(
|
|
340
|
+
objectOf({ ref: nonEmptyString, targetRef: optional(nonEmptyString) })
|
|
341
|
+
)
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
const share = createWorkflow(
|
|
345
|
+
`${name}.share`,
|
|
346
|
+
async (input, ctx) => {
|
|
347
|
+
await stored(ctx, input);
|
|
348
|
+
const link = await shareLink({
|
|
349
|
+
ref: input.ref,
|
|
350
|
+
now: input.now,
|
|
351
|
+
...input.ttlDays === void 0 ? {} : { ttlDays: input.ttlDays }
|
|
352
|
+
});
|
|
353
|
+
return { number: input.ref, token: link.token, url: link.url, expiresAt: link.expiresAt };
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
announce: (link) => announce({ kind: "shared", number: link.number, url: link.url, expiresAt: link.expiresAt }),
|
|
357
|
+
input: typed(
|
|
358
|
+
objectOf({ now: positiveInt, ref: nonEmptyString, ttlDays: optional(positiveInt) })
|
|
359
|
+
)
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
return { entity, create, save, setStatus, remove, send, convert, duplicate, share };
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
// src/workflows/ports.ts
|
|
366
|
+
import { TaggedError as tagged2 } from "better-result";
|
|
367
|
+
var MAIL_UNDELIVERED_TAG = "DocumentMailUndelivered";
|
|
368
|
+
var MailUndelivered = class extends (/* @__PURE__ */ tagged2(MAIL_UNDELIVERED_TAG)) {
|
|
369
|
+
};
|
|
370
|
+
export {
|
|
371
|
+
CONVERSION_REFUSED_TAG,
|
|
372
|
+
ConversionRefused,
|
|
373
|
+
DOCUMENT_NOT_FOUND_TAG,
|
|
374
|
+
DOCUMENT_NOT_REMOVABLE_TAG,
|
|
375
|
+
DOCUMENT_TAKEN_TAG,
|
|
376
|
+
DocumentNotFound,
|
|
377
|
+
DocumentNotRemovable,
|
|
378
|
+
DocumentTaken,
|
|
379
|
+
MAIL_UNDELIVERED_TAG,
|
|
380
|
+
MailUndelivered,
|
|
381
|
+
NUMBERING_REFUSED_TAG,
|
|
382
|
+
NumberingRefused,
|
|
383
|
+
TRANSITION_REFUSED_TAG,
|
|
384
|
+
TransitionRefused,
|
|
385
|
+
documentWorkflows
|
|
386
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/document",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "The abstract Document: an entity-first base every kind of paper-trail record extends, a derived entity registry whose name union keeps every consumer map total, and per-entity body versioning — engine-free, SQL-free, the pure core the store, the workflows and the wire contract build on.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,6 +40,16 @@
|
|
|
40
40
|
"types": "./dist/store.d.cts",
|
|
41
41
|
"default": "./dist/store.cjs"
|
|
42
42
|
}
|
|
43
|
+
},
|
|
44
|
+
"./workflows": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/workflows.d.ts",
|
|
47
|
+
"default": "./dist/workflows.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/workflows.d.cts",
|
|
51
|
+
"default": "./dist/workflows.cjs"
|
|
52
|
+
}
|
|
43
53
|
}
|
|
44
54
|
},
|
|
45
55
|
"files": [
|
|
@@ -49,7 +59,9 @@
|
|
|
49
59
|
],
|
|
50
60
|
"dependencies": {
|
|
51
61
|
"@standard-schema/spec": "^1.1.0",
|
|
52
|
-
"
|
|
62
|
+
"better-result": "^3.0.0",
|
|
63
|
+
"@geonosis/db": "^0.13.0",
|
|
64
|
+
"@geonosis/workflows": "^0.6.0"
|
|
53
65
|
},
|
|
54
66
|
"peerDependencies": {
|
|
55
67
|
"drizzle-orm": ">=0.45.0"
|
|
@@ -73,7 +85,7 @@
|
|
|
73
85
|
"access": "public"
|
|
74
86
|
},
|
|
75
87
|
"scripts": {
|
|
76
|
-
"build": "tsup",
|
|
88
|
+
"build": "tsx ../../tooling/build-step.ts tsup",
|
|
77
89
|
"typecheck": "tsc --noEmit",
|
|
78
90
|
"lint": "oxlint --config ../../.oxlintrc.json .",
|
|
79
91
|
"test:unit": "vitest run --project unit --root ../.. --passWithNoTests \"$PWD\"",
|