@seanyeh77/ui-cli 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/LICENSE +21 -0
- package/dist/cli.js +316 -0
- package/package.json +27 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hsiu-An Yeh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync } from "node:fs";
|
|
4
|
+
import { dirname, join, resolve } from "node:path";
|
|
5
|
+
import { pathToFileURL } from "node:url";
|
|
6
|
+
import { parseArgs } from "node:util";
|
|
7
|
+
// src/measure.ts
|
|
8
|
+
function measure() {
|
|
9
|
+
const out = {
|
|
10
|
+
overflow: [],
|
|
11
|
+
small: [],
|
|
12
|
+
inline: [],
|
|
13
|
+
nested: [],
|
|
14
|
+
markdown: [],
|
|
15
|
+
native: [],
|
|
16
|
+
wrapped: []
|
|
17
|
+
};
|
|
18
|
+
const describe = (el) => {
|
|
19
|
+
let s = el.tagName.toLowerCase();
|
|
20
|
+
const cls = [...el.classList].filter((c) => c.startsWith("ui-")).slice(0, 2);
|
|
21
|
+
if (cls.length) s += "." + cls.join(".");
|
|
22
|
+
const label = el.getAttribute("aria-label") || (el.textContent || "").trim();
|
|
23
|
+
if (label) s += " \"" + label.slice(0, 24) + "\"";
|
|
24
|
+
return s;
|
|
25
|
+
};
|
|
26
|
+
const isInline = (el, cs) => {
|
|
27
|
+
if (!cs.display.startsWith("inline")) return false;
|
|
28
|
+
const p = el.parentElement;
|
|
29
|
+
return !!p && [...p.childNodes].some((n) => n.nodeType === 3 && !!n.textContent?.trim());
|
|
30
|
+
};
|
|
31
|
+
const visible = (el) => {
|
|
32
|
+
const cs = getComputedStyle(el);
|
|
33
|
+
const r = el.getBoundingClientRect();
|
|
34
|
+
return cs.visibility !== "hidden" && cs.display !== "none" && r.width > 0 && r.height > 0;
|
|
35
|
+
};
|
|
36
|
+
const vw = document.documentElement.clientWidth;
|
|
37
|
+
if (document.documentElement.scrollWidth > vw + 1) {
|
|
38
|
+
for (const el of document.body.querySelectorAll("*")) {
|
|
39
|
+
const r = el.getBoundingClientRect();
|
|
40
|
+
if (r.width && r.right > vw + 1 && getComputedStyle(el).position !== "fixed") {
|
|
41
|
+
const parent = el.parentElement?.getBoundingClientRect();
|
|
42
|
+
if (!parent || parent.right <= vw + 1) out.overflow.push(`${describe(el)} right ${Math.round(r.right)} px`);
|
|
43
|
+
}
|
|
44
|
+
if (out.overflow.length >= 8) break;
|
|
45
|
+
}
|
|
46
|
+
if (!out.overflow.length) out.overflow.push(`page scrollWidth ${document.documentElement.scrollWidth} px`);
|
|
47
|
+
}
|
|
48
|
+
for (const el of new Set(document.querySelectorAll("a[href], button, input:not([type=hidden]), select, textarea, summary, [role=button], [role=tab], [role=switch], [role=checkbox], [role=radio], [role=option], [role=menuitem], [role=link], [tabindex]:not([tabindex=\"-1\"])"))) {
|
|
49
|
+
if (el.closest("[aria-hidden=\"true\"], [inert]")) continue;
|
|
50
|
+
const cs = getComputedStyle(el);
|
|
51
|
+
if (cs.visibility === "hidden" || cs.display === "none" || cs.pointerEvents === "none") continue;
|
|
52
|
+
const r = el.getBoundingClientRect();
|
|
53
|
+
if (!r.width || !r.height) continue;
|
|
54
|
+
const input = el;
|
|
55
|
+
if ((input.type === "checkbox" || input.type === "radio") && el.closest("label")) continue;
|
|
56
|
+
const box = el.tagName === "INPUT" && el.closest(".ui-pwfield, .ui-datefield, .ui-ms, .ui-searchfield");
|
|
57
|
+
if (box) {
|
|
58
|
+
const br = box.getBoundingClientRect();
|
|
59
|
+
if (br.height >= 47.5 && br.width >= 47.5) continue;
|
|
60
|
+
}
|
|
61
|
+
let w = r.width;
|
|
62
|
+
let h = r.height;
|
|
63
|
+
for (const pe of ["::before", "::after"]) {
|
|
64
|
+
const ps = getComputedStyle(el, pe);
|
|
65
|
+
if (ps.content && ps.content !== "none" && ps.position === "absolute" && ps.pointerEvents !== "none") {
|
|
66
|
+
w = Math.max(w, parseFloat(ps.width) || 0);
|
|
67
|
+
h = Math.max(h, parseFloat(ps.height) || 0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (w >= 47.5 && h >= 47.5) continue;
|
|
71
|
+
(isInline(el, cs) ? out.inline : out.small).push(`${describe(el)} ${Math.round(w)} x ${Math.round(h)} px`);
|
|
72
|
+
}
|
|
73
|
+
const cardLike = (el) => {
|
|
74
|
+
const sh = getComputedStyle(el).boxShadow;
|
|
75
|
+
if (!sh || sh === "none") return false;
|
|
76
|
+
return sh.split(/,(?![^(]*\))/).some((x) => {
|
|
77
|
+
const px = x.match(/(-?[\d.]+)px/g) || [];
|
|
78
|
+
return !/inset/.test(x) && px.length >= 3 && parseFloat(px[2]) >= 4;
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
for (const el of document.body.querySelectorAll("*")) {
|
|
82
|
+
if (out.nested.length >= 6) break;
|
|
83
|
+
if (!cardLike(el) || !visible(el)) continue;
|
|
84
|
+
for (let a = el.parentElement; a && a !== document.body; a = a.parentElement) {
|
|
85
|
+
if (getComputedStyle(a).position === "fixed") break;
|
|
86
|
+
if (cardLike(a)) {
|
|
87
|
+
out.nested.push(`${describe(el)} inside ${describe(a)}`);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
|
|
93
|
+
for (let n = walker.nextNode(); n && out.markdown.length < 6; n = walker.nextNode()) {
|
|
94
|
+
const t = n.textContent || "";
|
|
95
|
+
const parent = n.parentElement;
|
|
96
|
+
if (!parent || parent.closest("pre, code, script, style, textarea, .ui-cv") || !visible(parent)) continue;
|
|
97
|
+
if (/`[^`]+`|\*\*[^*]+\*\*|^\s*#{1,6}\s/.test(t)) out.markdown.push(`${describe(parent)}: ${t.trim().slice(0, 40)}`);
|
|
98
|
+
}
|
|
99
|
+
for (const [q, use] of Object.entries({
|
|
100
|
+
select: "Select",
|
|
101
|
+
table: "DataTable",
|
|
102
|
+
dialog: "Dialog",
|
|
103
|
+
"input[type=checkbox]": "Checkbox",
|
|
104
|
+
"input[type=radio]": "RadioGroup",
|
|
105
|
+
"input[type=date]": "DatePicker",
|
|
106
|
+
progress: "ProgressBar",
|
|
107
|
+
"input[type=search]": "SearchField",
|
|
108
|
+
"input[type=file]": "FileUpload",
|
|
109
|
+
"input[type=color]": "AccentPicker"
|
|
110
|
+
})) for (const el of document.querySelectorAll(q)) if (visible(el) && !el.matches("[class^=\"ui-\"], [class*=\" ui-\"]")) out.native.push(`<${q}> → use ${use}`);
|
|
111
|
+
for (const el of document.querySelectorAll(".ui-btn, .ui-tab, [role=columnheader], .ui-field-label, h1, h2, h3, h4")) {
|
|
112
|
+
if (out.wrapped.length >= 8 || !visible(el)) continue;
|
|
113
|
+
if ([...el.querySelectorAll("*"), el].some((node) => [...node.childNodes].some((t) => {
|
|
114
|
+
if (t.nodeType !== 3 || !t.textContent?.trim()) return false;
|
|
115
|
+
const range = document.createRange();
|
|
116
|
+
range.selectNodeContents(t);
|
|
117
|
+
return new Set([...range.getClientRects()].filter((r) => r.width > 1).map((r) => Math.round(r.top / 4))).size > 1;
|
|
118
|
+
}))) out.wrapped.push(describe(el));
|
|
119
|
+
}
|
|
120
|
+
return out;
|
|
121
|
+
}
|
|
122
|
+
// src/cli.ts
|
|
123
|
+
const HELP = `ui check <file or URL>... [--shots DIR] [--strict] [--wait MS]
|
|
124
|
+
Opens each page at 390 px and 1280 px, light and dark, and fails (exit 1) on:
|
|
125
|
+
console errors, horizontal overflow at 390 px, touch targets under 48 px, a card inside a card,
|
|
126
|
+
raw Markdown, native controls the design system replaces, and wrapped buttons, tabs, headers or headings.
|
|
127
|
+
Exits 2 when a page cannot be checked at all: it does not load, or the check itself crashes.
|
|
128
|
+
ui docs [Name] prints the README of a component (Button, DataTable…) or a guide (guidelines, layout, motion)
|
|
129
|
+
ui list lists every component`;
|
|
130
|
+
function docsDir() {
|
|
131
|
+
const require = createRequire(import.meta.url);
|
|
132
|
+
return join(dirname(require.resolve("@seanyeh77/ui/package.json")), "docs");
|
|
133
|
+
}
|
|
134
|
+
function docs(name) {
|
|
135
|
+
const dir = docsDir();
|
|
136
|
+
const files = readdirSync(dir).filter((f) => f.endsWith(".md"));
|
|
137
|
+
if (!name) return console.log(files.map((f) => f.slice(0, -3)).join("\n"));
|
|
138
|
+
const hit = files.find((f) => f.slice(0, -3).toLowerCase() === name.toLowerCase());
|
|
139
|
+
if (!hit) {
|
|
140
|
+
console.error(`No docs for "${name}". Run "ui docs" for the list.`);
|
|
141
|
+
process.exit(1);
|
|
142
|
+
}
|
|
143
|
+
console.log(readFileSync(join(dir, hit), "utf8"));
|
|
144
|
+
}
|
|
145
|
+
function list() {
|
|
146
|
+
const dir = docsDir();
|
|
147
|
+
for (const f of readdirSync(dir).filter((x) => x.endsWith(".md") && /^[A-Z]/.test(x))) {
|
|
148
|
+
const first = readFileSync(join(dir, f), "utf8").split("\n").find((l) => l.trim() && !l.startsWith("#")) ?? "";
|
|
149
|
+
console.log(`${f.slice(0, -3).padEnd(18)} ${first.trim()}`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
/** The page itself could not be opened: a wrong path, no server, or an HTTP error. */
|
|
153
|
+
var Unreachable = class extends Error {};
|
|
154
|
+
async function check(targets, opts) {
|
|
155
|
+
const { chromium } = await import("playwright");
|
|
156
|
+
const browser = await chromium.launch(process.env.CHROMIUM_PATH ? { executablePath: process.env.CHROMIUM_PATH } : {}).catch((e) => {
|
|
157
|
+
console.error(String(e).split("\n")[0]);
|
|
158
|
+
console.error("No Chromium for ui check. Run `npx playwright install chromium`, or set CHROMIUM_PATH to an installed Chrome or Chromium.");
|
|
159
|
+
process.exit(2);
|
|
160
|
+
});
|
|
161
|
+
const stems = /* @__PURE__ */ new Map();
|
|
162
|
+
const jobs = targets.map((target) => {
|
|
163
|
+
const url = target.includes("://") ? new URL(target).href : pathToFileURL(resolve(target)).href;
|
|
164
|
+
const base = decodeURIComponent(url.replace(/[?#].*$/, "").replace(/\/$/, "").split("/").pop() || "page").replace(/\.[^.]*$/, "");
|
|
165
|
+
const n = (stems.get(base) ?? 0) + 1;
|
|
166
|
+
stems.set(base, n);
|
|
167
|
+
return {
|
|
168
|
+
url,
|
|
169
|
+
stem: n > 1 ? `${base}-${n}` : base
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
const checkOne = async ({ url, stem }) => {
|
|
173
|
+
const out = [url];
|
|
174
|
+
let bad = false;
|
|
175
|
+
for (const width of [390, 1280]) for (const theme of ["light", "dark"]) {
|
|
176
|
+
const phone = width === 390;
|
|
177
|
+
const ctx = await browser.newContext({
|
|
178
|
+
viewport: {
|
|
179
|
+
width,
|
|
180
|
+
height: phone ? 844 : 900
|
|
181
|
+
},
|
|
182
|
+
colorScheme: theme,
|
|
183
|
+
hasTouch: phone,
|
|
184
|
+
isMobile: phone,
|
|
185
|
+
deviceScaleFactor: phone ? 2 : 1
|
|
186
|
+
});
|
|
187
|
+
try {
|
|
188
|
+
const page = await ctx.newPage();
|
|
189
|
+
const errors = [];
|
|
190
|
+
page.on("pageerror", (e) => errors.push(String(e)));
|
|
191
|
+
page.on("console", (m) => {
|
|
192
|
+
if (m.type() !== "error") return;
|
|
193
|
+
const src = m.location().url;
|
|
194
|
+
if (/\/favicon\.ico$/.test(src)) return;
|
|
195
|
+
errors.push(src && src !== url ? `${m.text()} (${src})` : m.text());
|
|
196
|
+
});
|
|
197
|
+
const resp = await page.goto(url, { waitUntil: "load" }).catch((e) => {
|
|
198
|
+
throw new Unreachable(String(e).split("\n")[0]);
|
|
199
|
+
});
|
|
200
|
+
if (resp && !resp.ok()) throw new Unreachable(`HTTP ${resp.status()}`);
|
|
201
|
+
const run = async (evaluate) => {
|
|
202
|
+
for (let tries = 0;; tries++) try {
|
|
203
|
+
return await evaluate();
|
|
204
|
+
} catch (e) {
|
|
205
|
+
if (tries >= 2 || !String(e).includes("Execution context was destroyed")) throw e;
|
|
206
|
+
await page.waitForLoadState("load");
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
await run(() => page.evaluate((t) => {
|
|
210
|
+
const r = document.documentElement;
|
|
211
|
+
if (r.hasAttribute("data-theme") || "UI" in window) r.setAttribute("data-theme", t);
|
|
212
|
+
}, theme));
|
|
213
|
+
await page.waitForTimeout(opts.wait);
|
|
214
|
+
await page.waitForLoadState("load");
|
|
215
|
+
const res = await run(() => page.evaluate(measure));
|
|
216
|
+
if (page.url() !== url && width === 390 && theme === "light") out.push(` (redirected to ${page.url()})`);
|
|
217
|
+
const problems = [];
|
|
218
|
+
if (errors.length) problems.push("console errors: " + errors.slice(0, 5).join(" | "));
|
|
219
|
+
if (res.nested.length) problems.push("card inside a card (two shadows): " + res.nested.join("; "));
|
|
220
|
+
if (res.markdown.length) problems.push("raw Markdown shown: " + res.markdown.join("; "));
|
|
221
|
+
if (res.native.length) problems.push("native controls: " + [...new Set(res.native)].join("; "));
|
|
222
|
+
if (res.wrapped.length) problems.push("text that must stay on one line wraps: " + res.wrapped.join("; "));
|
|
223
|
+
if (phone) {
|
|
224
|
+
if (res.overflow.length) problems.push("horizontal overflow: " + res.overflow.join("; "));
|
|
225
|
+
if (res.small.length) problems.push(`touch targets under 48 px: ${res.small.slice(0, 12).join("; ")}${res.small.length > 12 ? ` (+${res.small.length - 12} more)` : ""}`);
|
|
226
|
+
if (res.inline.length && opts.strict) problems.push("inline targets under 48 px: " + res.inline.slice(0, 12).join("; "));
|
|
227
|
+
}
|
|
228
|
+
out.push(` ${width} px ${theme}: ${problems.length ? "" : "ok"}`);
|
|
229
|
+
for (const p of problems) out.push(" - " + p);
|
|
230
|
+
if (phone && theme === "light" && res.inline.length && !opts.strict) out.push(` (inline text targets, exempt: ${res.inline.length})`);
|
|
231
|
+
bad ||= problems.length > 0;
|
|
232
|
+
if (opts.shots) await page.screenshot({
|
|
233
|
+
path: join(opts.shots, `${stem}-${width}-${theme}.png`),
|
|
234
|
+
fullPage: true
|
|
235
|
+
});
|
|
236
|
+
} finally {
|
|
237
|
+
await ctx.close();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
out,
|
|
242
|
+
bad
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
if (opts.shots) mkdirSync(opts.shots, { recursive: true });
|
|
246
|
+
let unchecked = false;
|
|
247
|
+
const lanes = Array(4).fill(Promise.resolve());
|
|
248
|
+
const results = jobs.map((job, i) => {
|
|
249
|
+
const r = lanes[i % 4].then(() => checkOne(job)).catch((e) => {
|
|
250
|
+
unchecked = true;
|
|
251
|
+
if (!(e instanceof Unreachable)) return {
|
|
252
|
+
out: [job.url, ` check crashed: ${String(e).split("\n")[0]}`],
|
|
253
|
+
bad: true
|
|
254
|
+
};
|
|
255
|
+
return {
|
|
256
|
+
out: [job.url, ` could not load: ${e.message}. Check the path, or start the server first.`],
|
|
257
|
+
bad: true
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
lanes[i % 4] = r;
|
|
261
|
+
return r;
|
|
262
|
+
});
|
|
263
|
+
let failed = false;
|
|
264
|
+
for (const r of results) {
|
|
265
|
+
const { out, bad } = await r;
|
|
266
|
+
console.log(out.join("\n"));
|
|
267
|
+
failed ||= bad;
|
|
268
|
+
}
|
|
269
|
+
await browser.close();
|
|
270
|
+
process.exit(unchecked ? 2 : failed ? 1 : 0);
|
|
271
|
+
}
|
|
272
|
+
const [cmd, ...rest] = process.argv.slice(2);
|
|
273
|
+
if (cmd === "check") {
|
|
274
|
+
const { values, positionals } = parseArgs({
|
|
275
|
+
args: rest,
|
|
276
|
+
allowPositionals: true,
|
|
277
|
+
options: {
|
|
278
|
+
shots: { type: "string" },
|
|
279
|
+
strict: {
|
|
280
|
+
type: "boolean",
|
|
281
|
+
default: false
|
|
282
|
+
},
|
|
283
|
+
wait: {
|
|
284
|
+
type: "string",
|
|
285
|
+
default: "800"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
if (!positionals.length) {
|
|
290
|
+
console.error(HELP);
|
|
291
|
+
process.exit(2);
|
|
292
|
+
}
|
|
293
|
+
for (const t of positionals) if (!t.includes("://") && !existsSync(t)) {
|
|
294
|
+
console.error(`${t}: no such file. Pass a file path or a URL.`);
|
|
295
|
+
process.exit(2);
|
|
296
|
+
} else if (t.includes("://") && !URL.canParse(t)) {
|
|
297
|
+
console.error(`${t}: not a valid URL. Write it in full, e.g. http://localhost:5173/.`);
|
|
298
|
+
process.exit(2);
|
|
299
|
+
}
|
|
300
|
+
const wait = Number(values.wait);
|
|
301
|
+
if (!Number.isFinite(wait) || wait < 0) {
|
|
302
|
+
console.error(`--wait ${values.wait}: give the milliseconds to wait after load, e.g. --wait 800.`);
|
|
303
|
+
process.exit(2);
|
|
304
|
+
}
|
|
305
|
+
await check(positionals, {
|
|
306
|
+
shots: values.shots,
|
|
307
|
+
strict: !!values.strict,
|
|
308
|
+
wait
|
|
309
|
+
});
|
|
310
|
+
} else if (cmd === "docs") docs(rest[0]);
|
|
311
|
+
else if (cmd === "list") list();
|
|
312
|
+
else {
|
|
313
|
+
console.log(HELP);
|
|
314
|
+
process.exit(cmd ? 2 : 0);
|
|
315
|
+
}
|
|
316
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seanyeh77/ui-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Checks a page against SeanYeh's design system and prints component docs: ui check, ui docs, ui list.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Hsiu-An Yeh",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/seanyeh77/ui-design-system.git",
|
|
10
|
+
"directory": "packages/cli"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"bin": {
|
|
14
|
+
"ui": "./dist/cli.js"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"playwright": "^1.65.0",
|
|
21
|
+
"@seanyeh77/ui": "^0.3.0"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsdown",
|
|
28
|
+
"typecheck": "tsc -p ."
|
|
29
|
+
}
|
|
6
30
|
}
|
package/README.md
DELETED