@mccaskie-labs/workbench-settings 0.0.0-stage → 0.3.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 +37 -0
- package/README.md +54 -2
- package/dist/check.d.ts +40 -0
- package/dist/check.js +263 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +50 -0
- package/dist/design.d.ts +20 -0
- package/dist/design.js +59 -0
- package/dist/email.d.ts +2 -0
- package/dist/email.js +46 -0
- package/dist/errors.d.ts +31 -0
- package/dist/errors.js +14 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +18 -0
- package/dist/migration.d.ts +4 -0
- package/dist/migration.js +329 -0
- package/dist/page.d.ts +58 -0
- package/dist/page.js +232 -0
- package/dist/samples.d.ts +18 -0
- package/dist/samples.js +96 -0
- package/dist/settings.d.ts +136 -0
- package/dist/settings.js +288 -0
- package/dist/styles.d.ts +34 -0
- package/dist/styles.js +84 -0
- package/dist/types.d.ts +120 -0
- package/dist/types.js +5 -0
- package/dist/words.d.ts +15 -0
- package/dist/words.js +269 -0
- package/package.json +52 -4
package/dist/words.js
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// The Settings page's own words and the code email's, keyed as the project's
|
|
2
|
+
// strings catalogue keys them (`ui.wbsettings.*`), in English, Tagalog and
|
|
3
|
+
// Taglish. A tool's labels come with its declarations (types.ts, Words). A
|
|
4
|
+
// word the catalogue lacks falls back to the English here. The Tagalog and
|
|
5
|
+
// Taglish are starter words: have a fluent reader check them before a client
|
|
6
|
+
// sees them.
|
|
7
|
+
export const SETTINGS_WORD_KEYS = [
|
|
8
|
+
"title",
|
|
9
|
+
"intro",
|
|
10
|
+
"from.default",
|
|
11
|
+
"from.answers",
|
|
12
|
+
"from.owner",
|
|
13
|
+
"not_set",
|
|
14
|
+
"save",
|
|
15
|
+
"put_back",
|
|
16
|
+
"saved",
|
|
17
|
+
"unchanged",
|
|
18
|
+
"put_back.done",
|
|
19
|
+
"pending.sent",
|
|
20
|
+
"pending.code",
|
|
21
|
+
"pending.confirm",
|
|
22
|
+
"pending.confirmed",
|
|
23
|
+
"pending.cancel",
|
|
24
|
+
"pending.cancelled",
|
|
25
|
+
"code.wrong",
|
|
26
|
+
"code.expired",
|
|
27
|
+
"code.locked",
|
|
28
|
+
"code.none",
|
|
29
|
+
"history.title",
|
|
30
|
+
"history.empty",
|
|
31
|
+
"history.col.when",
|
|
32
|
+
"history.col.who",
|
|
33
|
+
"history.col.what",
|
|
34
|
+
"history.col.change",
|
|
35
|
+
"history.put_back",
|
|
36
|
+
"history.not_set",
|
|
37
|
+
"problem.text",
|
|
38
|
+
"problem.required",
|
|
39
|
+
"problem.too_long",
|
|
40
|
+
"problem.too_short",
|
|
41
|
+
"problem.email",
|
|
42
|
+
"problem.choice",
|
|
43
|
+
"problem.whole",
|
|
44
|
+
"problem.too_small",
|
|
45
|
+
"problem.too_big",
|
|
46
|
+
"problem.duration",
|
|
47
|
+
"problem.money",
|
|
48
|
+
"problem.too_short_time",
|
|
49
|
+
"problem.too_long_time",
|
|
50
|
+
"problem.failed",
|
|
51
|
+
"problem.too_soon",
|
|
52
|
+
"problem.too_many",
|
|
53
|
+
"problem.send_failed",
|
|
54
|
+
"problem.mailer_needed",
|
|
55
|
+
"email.subject",
|
|
56
|
+
"email.body",
|
|
57
|
+
"problem.map",
|
|
58
|
+
"problem.check",
|
|
59
|
+
"map.empty",
|
|
60
|
+
"carry.test_only",
|
|
61
|
+
"time.m",
|
|
62
|
+
"time.m_one",
|
|
63
|
+
"time.h",
|
|
64
|
+
"time.h_one",
|
|
65
|
+
"time.d",
|
|
66
|
+
"time.d_one",
|
|
67
|
+
];
|
|
68
|
+
const en = {
|
|
69
|
+
title: "Settings",
|
|
70
|
+
intro: "Change how the app's tools work for your business, with nothing to install. A change shows within a minute; a new email address is used once you've typed the code we email to it.",
|
|
71
|
+
"from.default": "Workbench default",
|
|
72
|
+
"from.answers": "Set when the app was built",
|
|
73
|
+
"from.owner": "Changed by {by} on {when}",
|
|
74
|
+
not_set: "Not set",
|
|
75
|
+
save: "Save",
|
|
76
|
+
put_back: "Put back",
|
|
77
|
+
saved: "Saved. It's used from now on.",
|
|
78
|
+
"put_back.done": "Put back to how it was when the app was built.",
|
|
79
|
+
"pending.sent": "We've emailed a code to {value}. Type it here to start using that address. The code works for 24 hours, and nothing changes until then.",
|
|
80
|
+
"pending.code": "Code from the email",
|
|
81
|
+
"pending.confirm": "Use this address",
|
|
82
|
+
"pending.confirmed": "Done. {value} is used from now on.",
|
|
83
|
+
"code.wrong": "That code isn't right. Check the email and try again ({left} tries left).",
|
|
84
|
+
"code.expired": "That code has stopped working. Save the address again to get a new one.",
|
|
85
|
+
"code.locked": "Too many wrong codes. Save the address again to get a new one.",
|
|
86
|
+
"code.none": "There's no code waiting for this setting. Save the address to get one.",
|
|
87
|
+
"history.title": "Recent changes",
|
|
88
|
+
"history.empty": "Nothing has been changed yet.",
|
|
89
|
+
"history.col.when": "When",
|
|
90
|
+
"history.col.who": "Who",
|
|
91
|
+
"history.col.what": "Setting",
|
|
92
|
+
"history.col.change": "Change",
|
|
93
|
+
"history.put_back": "Put back",
|
|
94
|
+
"history.not_set": "not set",
|
|
95
|
+
"problem.text": "That can't be saved. Type it again without special characters.",
|
|
96
|
+
"problem.required": "This can't be empty.",
|
|
97
|
+
"problem.too_long": "That's too long: {max} characters at most.",
|
|
98
|
+
"problem.too_short": "That's too short: {min} characters at least.",
|
|
99
|
+
"problem.email": "That doesn't look like an email address. Check it and try again.",
|
|
100
|
+
"problem.choice": "Pick one of the choices.",
|
|
101
|
+
"problem.whole": "Type a whole number, such as 3.",
|
|
102
|
+
"problem.too_small": "That's too small: {min} at least.",
|
|
103
|
+
"problem.too_big": "That's too big: {max} at most.",
|
|
104
|
+
"problem.duration": "Type a length of time, such as 30m, 24h or 2d (minutes, hours or days).",
|
|
105
|
+
"problem.money": "Type an amount, such as 50 or 50.00.",
|
|
106
|
+
"problem.too_short_time": "That's too short: at least {min}.",
|
|
107
|
+
"problem.too_long_time": "That's too long: {max} at most.",
|
|
108
|
+
"problem.failed": "The settings can't be saved right now. Try again in a minute.",
|
|
109
|
+
"email.subject": "Your code for {app}",
|
|
110
|
+
"email.body": "Someone asked for {app} to use this address for \"{setting}\".\n\nIf that was you, type this code on the Settings page: {code}\n\nIt works for 24 hours. If it wasn't you, ignore this email: nothing changes.",
|
|
111
|
+
unchanged: "Nothing to change: that's already in use.",
|
|
112
|
+
"pending.cancel": "Cancel",
|
|
113
|
+
"pending.cancelled": "Cancelled. Nothing has changed.",
|
|
114
|
+
"problem.too_soon": "We sent a code less than a minute ago. Check that email, or wait a minute and save again.",
|
|
115
|
+
"problem.too_many": "We've sent five codes for this today. Try again tomorrow, or use one of the codes already sent.",
|
|
116
|
+
"problem.send_failed": "We couldn't send the code to that address, so nothing has changed. Check the address and try again in a few minutes.",
|
|
117
|
+
"problem.mailer_needed": "This app can't send the code email yet, so this setting can't be changed here. Ask whoever looks after the app to finish setting up its emails.",
|
|
118
|
+
"problem.map": "That isn't a list this setting can hold.",
|
|
119
|
+
"problem.check": "{message}",
|
|
120
|
+
"map.empty": "Nothing chosen yet.",
|
|
121
|
+
"carry.test_only": "On the test site only: it reaches the live site with the next release you approve.",
|
|
122
|
+
"time.m": "{n} minutes",
|
|
123
|
+
"time.m_one": "1 minute",
|
|
124
|
+
"time.h": "{n} hours",
|
|
125
|
+
"time.h_one": "1 hour",
|
|
126
|
+
"time.d": "{n} days",
|
|
127
|
+
"time.d_one": "1 day",
|
|
128
|
+
};
|
|
129
|
+
const tl = {
|
|
130
|
+
title: "Mga setting",
|
|
131
|
+
intro: "Baguhin kung paano gumagana ang mga tool ng app para sa negosyo mo, walang kailangang i-install. Lalabas ang pagbabago sa loob ng isang minuto; gagamitin ang bagong email address kapag na-type mo na ang code na ie-email namin dito.",
|
|
132
|
+
"from.default": "Default ng Workbench",
|
|
133
|
+
"from.answers": "Itinakda nang gawin ang app",
|
|
134
|
+
"from.owner": "Binago ni {by} noong {when}",
|
|
135
|
+
not_set: "Wala pa",
|
|
136
|
+
save: "I-save",
|
|
137
|
+
put_back: "Ibalik",
|
|
138
|
+
saved: "Na-save. Gagamitin na ito mula ngayon.",
|
|
139
|
+
"put_back.done": "Ibinalik sa dati, gaya nang gawin ang app.",
|
|
140
|
+
"pending.sent": "Nag-email kami ng code sa {value}. I-type ito dito para magamit ang address na iyon. Gumagana ang code nang 24 oras, at walang magbabago hanggang doon.",
|
|
141
|
+
"pending.code": "Code mula sa email",
|
|
142
|
+
"pending.confirm": "Gamitin ang address na ito",
|
|
143
|
+
"pending.confirmed": "Tapos na. Gagamitin na ang {value} mula ngayon.",
|
|
144
|
+
"code.wrong": "Mali ang code. Tingnan ang email at subukan ulit ({left} subok pa).",
|
|
145
|
+
"code.expired": "Hindi na gumagana ang code. I-save ulit ang address para makakuha ng bago.",
|
|
146
|
+
"code.locked": "Sobrang daming maling code. I-save ulit ang address para makakuha ng bago.",
|
|
147
|
+
"code.none": "Walang naghihintay na code para sa setting na ito. I-save ang address para makakuha.",
|
|
148
|
+
"history.title": "Mga huling pagbabago",
|
|
149
|
+
"history.empty": "Wala pang binago.",
|
|
150
|
+
"history.col.when": "Kailan",
|
|
151
|
+
"history.col.who": "Sino",
|
|
152
|
+
"history.col.what": "Setting",
|
|
153
|
+
"history.col.change": "Pagbabago",
|
|
154
|
+
"history.put_back": "Ibinalik",
|
|
155
|
+
"history.not_set": "wala",
|
|
156
|
+
"problem.text": "Hindi ito ma-save. I-type ulit nang walang espesyal na character.",
|
|
157
|
+
"problem.required": "Hindi ito puwedeng walang laman.",
|
|
158
|
+
"problem.too_long": "Masyadong mahaba: hanggang {max} character lang.",
|
|
159
|
+
"problem.too_short": "Masyadong maikli: kahit {min} character.",
|
|
160
|
+
"problem.email": "Mukhang hindi ito email address. Tingnan at subukan ulit.",
|
|
161
|
+
"problem.choice": "Pumili ng isa sa mga pagpipilian.",
|
|
162
|
+
"problem.whole": "Mag-type ng buong numero, gaya ng 3.",
|
|
163
|
+
"problem.too_small": "Masyadong maliit: kahit {min}.",
|
|
164
|
+
"problem.too_big": "Masyadong malaki: hanggang {max} lang.",
|
|
165
|
+
"problem.duration": "Mag-type ng haba ng oras, gaya ng 30m, 24h o 2d (minuto, oras o araw).",
|
|
166
|
+
"problem.money": "Mag-type ng halaga, gaya ng 50 o 50.00.",
|
|
167
|
+
"problem.too_short_time": "Masyadong maikli: hindi bababa sa {min}.",
|
|
168
|
+
"problem.too_long_time": "Masyadong mahaba: hanggang {max} lang.",
|
|
169
|
+
"problem.failed": "Hindi ma-save ang mga setting ngayon. Subukan ulit pagkalipas ng isang minuto.",
|
|
170
|
+
"email.subject": "Ang code mo para sa {app}",
|
|
171
|
+
"email.body": "May humiling na gamitin ng {app} ang address na ito para sa \"{setting}\".\n\nKung ikaw iyon, i-type ang code na ito sa page ng Mga setting: {code}\n\nGumagana ito nang 24 oras. Kung hindi ikaw, huwag pansinin ang email na ito: walang magbabago.",
|
|
172
|
+
unchanged: "Walang babaguhin: iyan na ang ginagamit.",
|
|
173
|
+
"pending.cancel": "Kanselahin",
|
|
174
|
+
"pending.cancelled": "Kinansela. Walang nagbago.",
|
|
175
|
+
"problem.too_soon": "Nagpadala kami ng code wala pang isang minuto ang nakalipas. Tingnan ang email na iyon, o maghintay ng isang minuto at i-save ulit.",
|
|
176
|
+
"problem.too_many": "Limang code na ang naipadala namin para dito ngayong araw. Subukan ulit bukas, o gamitin ang isa sa mga naipadalang code.",
|
|
177
|
+
"problem.send_failed": "Hindi namin maipadala ang code sa address na iyon, kaya walang nagbago. Tingnan ang address at subukan ulit pagkalipas ng ilang minuto.",
|
|
178
|
+
"problem.mailer_needed": "Hindi pa makapagpadala ng code ang app na ito, kaya hindi mababago dito ang setting na ito. Hilingin sa nag-aalaga ng app na tapusin ang pag-set up ng mga email nito.",
|
|
179
|
+
"problem.map": "Hindi ito listahang kayang hawakan ng setting na ito.",
|
|
180
|
+
"problem.check": "{message}",
|
|
181
|
+
"map.empty": "Wala pang napili.",
|
|
182
|
+
"carry.test_only": "Sa test site lang: mapupunta ito sa live site sa susunod na release na aaprubahan mo.",
|
|
183
|
+
"time.m": "{n} minuto",
|
|
184
|
+
"time.m_one": "1 minuto",
|
|
185
|
+
"time.h": "{n} oras",
|
|
186
|
+
"time.h_one": "1 oras",
|
|
187
|
+
"time.d": "{n} araw",
|
|
188
|
+
"time.d_one": "1 araw",
|
|
189
|
+
};
|
|
190
|
+
const taglish = {
|
|
191
|
+
title: "Settings",
|
|
192
|
+
intro: "I-change kung paano gumagana ang tools ng app para sa business mo, walang kailangang i-install. Makikita ang change within a minute; magagamit ang bagong email address pag na-type mo na ang code na ie-email namin dito.",
|
|
193
|
+
"from.default": "Workbench default",
|
|
194
|
+
"from.answers": "Na-set nung ginawa ang app",
|
|
195
|
+
"from.owner": "Chinange ni {by} noong {when}",
|
|
196
|
+
not_set: "Wala pa",
|
|
197
|
+
save: "Save",
|
|
198
|
+
put_back: "Ibalik",
|
|
199
|
+
saved: "Na-save na. Gagamitin na ito from now on.",
|
|
200
|
+
"put_back.done": "Ibinalik sa dati, gaya nung ginawa ang app.",
|
|
201
|
+
"pending.sent": "Nag-email kami ng code sa {value}. I-type mo dito para magamit ang address na yan. Valid ang code for 24 hours, at walang magbabago hanggang doon.",
|
|
202
|
+
"pending.code": "Code galing sa email",
|
|
203
|
+
"pending.confirm": "Gamitin ang address na ito",
|
|
204
|
+
"pending.confirmed": "Done. Gagamitin na ang {value} from now on.",
|
|
205
|
+
"code.wrong": "Mali ang code. I-check ang email at try ulit ({left} tries pa).",
|
|
206
|
+
"code.expired": "Expired na ang code. I-save ulit ang address para sa bagong code.",
|
|
207
|
+
"code.locked": "Sobrang daming maling code. I-save ulit ang address para sa bagong code.",
|
|
208
|
+
"code.none": "Walang code na naghihintay para sa setting na ito. I-save ang address para makakuha.",
|
|
209
|
+
"history.title": "Recent changes",
|
|
210
|
+
"history.empty": "Wala pang na-change.",
|
|
211
|
+
"history.col.when": "Kailan",
|
|
212
|
+
"history.col.who": "Sino",
|
|
213
|
+
"history.col.what": "Setting",
|
|
214
|
+
"history.col.change": "Change",
|
|
215
|
+
"history.put_back": "Ibinalik",
|
|
216
|
+
"history.not_set": "wala",
|
|
217
|
+
"problem.text": "Hindi ma-save. I-type ulit nang walang special characters.",
|
|
218
|
+
"problem.required": "Hindi puwedeng empty ito.",
|
|
219
|
+
"problem.too_long": "Masyadong mahaba: {max} characters lang max.",
|
|
220
|
+
"problem.too_short": "Masyadong maikli: at least {min} characters.",
|
|
221
|
+
"problem.email": "Mukhang hindi email address ito. I-check at try ulit.",
|
|
222
|
+
"problem.choice": "Pumili ng isa sa choices.",
|
|
223
|
+
"problem.whole": "Mag-type ng whole number, like 3.",
|
|
224
|
+
"problem.too_small": "Masyadong maliit: at least {min}.",
|
|
225
|
+
"problem.too_big": "Masyadong malaki: {max} max.",
|
|
226
|
+
"problem.duration": "Mag-type ng length of time, like 30m, 24h o 2d (minutes, hours o days).",
|
|
227
|
+
"problem.money": "Mag-type ng amount, like 50 o 50.00.",
|
|
228
|
+
"problem.too_short_time": "Masyadong short: at least {min}.",
|
|
229
|
+
"problem.too_long_time": "Masyadong long: {max} max.",
|
|
230
|
+
"problem.failed": "Hindi ma-save ang settings ngayon. Try ulit after a minute.",
|
|
231
|
+
"email.subject": "Ang code mo para sa {app}",
|
|
232
|
+
"email.body": "May nag-request na gamitin ng {app} ang address na ito para sa \"{setting}\".\n\nKung ikaw yun, i-type ang code na ito sa Settings page: {code}\n\nValid ito for 24 hours. Kung hindi ikaw, i-ignore lang ang email na ito: walang magbabago.",
|
|
233
|
+
unchanged: "Walang i-change: yan na ang gamit.",
|
|
234
|
+
"pending.cancel": "Cancel",
|
|
235
|
+
"pending.cancelled": "Na-cancel. Walang nagbago.",
|
|
236
|
+
"problem.too_soon": "Nag-send kami ng code less than a minute ago. I-check ang email na yun, o wait ng isang minute at i-save ulit.",
|
|
237
|
+
"problem.too_many": "Limang code na ang na-send namin para dito today. Try ulit bukas, o gamitin ang isa sa mga na-send na code.",
|
|
238
|
+
"problem.send_failed": "Hindi namin ma-send ang code sa address na yan, kaya walang nagbago. I-check ang address at try ulit after a few minutes.",
|
|
239
|
+
"problem.mailer_needed": "Hindi pa maka-send ng code email ang app na ito, kaya hindi ma-change dito ang setting na ito. Sabihan ang nag-aalaga ng app na tapusin ang setup ng emails nito.",
|
|
240
|
+
"problem.map": "Hindi ito list na kayang i-hold ng setting na ito.",
|
|
241
|
+
"problem.check": "{message}",
|
|
242
|
+
"map.empty": "Wala pang napili.",
|
|
243
|
+
"carry.test_only": "Sa test site lang: mapupunta ito sa live site sa next release na i-approve mo.",
|
|
244
|
+
"time.m": "{n} minutes",
|
|
245
|
+
"time.m_one": "1 minute",
|
|
246
|
+
"time.h": "{n} hours",
|
|
247
|
+
"time.h_one": "1 hour",
|
|
248
|
+
"time.d": "{n} days",
|
|
249
|
+
"time.d_one": "1 day",
|
|
250
|
+
};
|
|
251
|
+
/** The words by language, as `ui.wbsettings.<key>` would hold them. */
|
|
252
|
+
export const SETTINGS_WORDS = { en, tl, taglish };
|
|
253
|
+
const fill = (text, values) => text.replace(/\{(\w+)\}/g, (m, name) => (Object.hasOwn(values, name) ? values[name] : m));
|
|
254
|
+
/** A word, from the app's catalogue first, then the package's, with {name} filled in. */
|
|
255
|
+
export function settingsWord(key, lang, values = {}, t) {
|
|
256
|
+
return fill(t?.(`ui.wbsettings.${key}`, lang) ?? SETTINGS_WORDS[lang][key] ?? SETTINGS_WORDS.en[key], values);
|
|
257
|
+
}
|
|
258
|
+
/** A declared phrase in a language, falling back to English. */
|
|
259
|
+
export function phrase(words, lang) {
|
|
260
|
+
return words[lang] ?? words.en;
|
|
261
|
+
}
|
|
262
|
+
/** A duration as the owner reads it: "14d" is "14 days", "1h" is "1 hour". Anything else is shown as it is. */
|
|
263
|
+
export function durationText(value, lang, t) {
|
|
264
|
+
const m = /^(\d+)(m|h|d)$/.exec(value);
|
|
265
|
+
if (!m)
|
|
266
|
+
return value;
|
|
267
|
+
const key = `time.${m[2]}${m[1] === "1" ? "_one" : ""}`;
|
|
268
|
+
return settingsWord(key, lang, { n: m[1] }, t);
|
|
269
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mccaskie-labs/workbench-settings",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "One Settings page in a Workbench app's admin: each tool declares the settings an owner may change, the page checks and saves them in the app's own database, and the tools read them when they run, so a change needs no redeploy. A new email address is proved with an emailed code first. No Gateway call of its own.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/mccaskie-labs/workbench.git",
|
|
10
|
+
"directory": "packages/settings"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=24"
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles": {
|
|
22
|
+
"types": "./dist/styles.d.ts",
|
|
23
|
+
"default": "./dist/styles.js"
|
|
24
|
+
},
|
|
25
|
+
"./samples": {
|
|
26
|
+
"types": "./dist/samples.d.ts",
|
|
27
|
+
"default": "./dist/samples.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"workbench-settings": "./dist/cli.js"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"README.md",
|
|
37
|
+
"CHANGELOG.md"
|
|
38
|
+
],
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"typecheck": "tsc -p tsconfig.check.json && tsc -p test/tsconfig.json",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:store": "vitest run --config vitest.db.config.ts",
|
|
46
|
+
"build": "node scripts/build.mjs",
|
|
47
|
+
"prepack": "node scripts/build.mjs"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "24.19.2",
|
|
51
|
+
"postgres": "4.1.0",
|
|
52
|
+
"vitest": "^5.1.0"
|
|
53
|
+
}
|
|
54
|
+
}
|