quiesco 0.2.0 → 0.4.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.
Files changed (65) hide show
  1. package/README.md +3 -1
  2. package/dist/cli.d.ts +2 -1
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +11 -6
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/doctor.d.ts.map +1 -1
  7. package/dist/commands/doctor.js +81 -7
  8. package/dist/commands/doctor.js.map +1 -1
  9. package/dist/commands/init.d.ts.map +1 -1
  10. package/dist/commands/init.js +108 -22
  11. package/dist/commands/init.js.map +1 -1
  12. package/dist/commands/list.d.ts +16 -0
  13. package/dist/commands/list.d.ts.map +1 -0
  14. package/dist/commands/list.js +56 -0
  15. package/dist/commands/list.js.map +1 -0
  16. package/dist/commands/test.d.ts +20 -1
  17. package/dist/commands/test.d.ts.map +1 -1
  18. package/dist/commands/test.js +14 -6
  19. package/dist/commands/test.js.map +1 -1
  20. package/dist/commands/ui.d.ts +43 -0
  21. package/dist/commands/ui.d.ts.map +1 -0
  22. package/dist/commands/ui.js +121 -0
  23. package/dist/commands/ui.js.map +1 -0
  24. package/dist/context.d.ts +22 -0
  25. package/dist/context.d.ts.map +1 -1
  26. package/dist/context.js +31 -0
  27. package/dist/context.js.map +1 -1
  28. package/dist/dev-server.d.ts +2 -0
  29. package/dist/dev-server.d.ts.map +1 -1
  30. package/dist/dev-server.js +4 -2
  31. package/dist/dev-server.js.map +1 -1
  32. package/dist/packages.d.ts +17 -0
  33. package/dist/packages.d.ts.map +1 -0
  34. package/dist/packages.js +40 -0
  35. package/dist/packages.js.map +1 -0
  36. package/dist/progress/render.d.ts +31 -0
  37. package/dist/progress/render.d.ts.map +1 -0
  38. package/dist/progress/render.js +89 -0
  39. package/dist/progress/render.js.map +1 -0
  40. package/dist/progress/run.d.ts +24 -0
  41. package/dist/progress/run.d.ts.map +1 -0
  42. package/dist/progress/run.js +95 -0
  43. package/dist/progress/run.js.map +1 -0
  44. package/dist/progress/sticky.d.ts +25 -0
  45. package/dist/progress/sticky.d.ts.map +1 -0
  46. package/dist/progress/sticky.js +90 -0
  47. package/dist/progress/sticky.js.map +1 -0
  48. package/dist/project.d.ts +23 -0
  49. package/dist/project.d.ts.map +1 -0
  50. package/dist/project.js +74 -0
  51. package/dist/project.js.map +1 -0
  52. package/package.json +3 -3
  53. package/src/cli.ts +11 -7
  54. package/src/commands/doctor.ts +83 -7
  55. package/src/commands/init.ts +101 -19
  56. package/src/commands/list.ts +65 -0
  57. package/src/commands/test.ts +17 -7
  58. package/src/commands/ui.ts +152 -0
  59. package/src/context.ts +50 -0
  60. package/src/dev-server.ts +6 -2
  61. package/src/packages.ts +42 -0
  62. package/src/progress/render.ts +117 -0
  63. package/src/progress/run.ts +105 -0
  64. package/src/progress/sticky.ts +95 -0
  65. package/src/project.ts +76 -0
@@ -0,0 +1,17 @@
1
+ import type { CliContext } from './context.js';
2
+ /** The CLI's subcommands, as `quiesco <command>` in package.json scripts may name them. */
3
+ export declare const CLI_COMMANDS: readonly ["init", "build", "test", "ui", "list", "doctor", "tree", "devices"];
4
+ /** `quiesco` and `@quiesco/*`: released together, always the same version. */
5
+ export declare const isQuiescoPackage: (name: string) => boolean;
6
+ /**
7
+ * The version of `name` that code in `dir` loads: `node_modules/<name>/package.json` in `dir` or the
8
+ * nearest parent that has one (hoisted workspaces). Read directly rather than resolved, because not
9
+ * every package exports `./package.json`. null when it is not installed.
10
+ */
11
+ export declare function installedVersion(ctx: CliContext, name: string, dir?: string): string | null;
12
+ /** Every `quiesco <command>` in the scripts (not `@quiesco/…`, `quiesco.config`, `quiesco --version`). */
13
+ export declare function scriptCommands(scripts: Record<string, string> | undefined): {
14
+ script: string;
15
+ command: string;
16
+ }[];
17
+ //# sourceMappingURL=packages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../src/packages.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,2FAA2F;AAC3F,eAAO,MAAM,YAAY,+EAAgF,CAAC;AAE1G,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,OAA6D,CAAC;AAE9G;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAgB,GAAG,MAAM,GAAG,IAAI,CAapG;AAED,0GAA0G;AAC1G,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAMjH"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The Quiesco packages in a project and their installed versions (issue #17): `init` installs the
3
+ * version of the CLI that runs it and checks what landed; `doctor` checks that they agree.
4
+ */
5
+ import path from 'node:path';
6
+ /** The CLI's subcommands, as `quiesco <command>` in package.json scripts may name them. */
7
+ export const CLI_COMMANDS = ['init', 'build', 'test', 'ui', 'list', 'doctor', 'tree', 'devices'];
8
+ /** `quiesco` and `@quiesco/*`: released together, always the same version. */
9
+ export const isQuiescoPackage = (name) => name === 'quiesco' || name.startsWith('@quiesco/');
10
+ /**
11
+ * The version of `name` that code in `dir` loads: `node_modules/<name>/package.json` in `dir` or the
12
+ * nearest parent that has one (hoisted workspaces). Read directly rather than resolved, because not
13
+ * every package exports `./package.json`. null when it is not installed.
14
+ */
15
+ export function installedVersion(ctx, name, dir = ctx.cwd) {
16
+ for (let d = path.resolve(dir);; d = path.dirname(d)) {
17
+ const text = ctx.readFile(path.join(d, 'node_modules', name, 'package.json'));
18
+ if (text !== null) {
19
+ try {
20
+ const version = JSON.parse(text).version;
21
+ return typeof version === 'string' ? version : null;
22
+ }
23
+ catch {
24
+ return null;
25
+ }
26
+ }
27
+ if (path.dirname(d) === d)
28
+ return null;
29
+ }
30
+ }
31
+ /** Every `quiesco <command>` in the scripts (not `@quiesco/…`, `quiesco.config`, `quiesco --version`). */
32
+ export function scriptCommands(scripts) {
33
+ const found = [];
34
+ for (const [script, line] of Object.entries(scripts ?? {})) {
35
+ for (const m of line.matchAll(/(?:^|[^\w@/.-])quiesco\s+([a-z][\w:-]*)/g))
36
+ found.push({ script, command: m[1] });
37
+ }
38
+ return found;
39
+ }
40
+ //# sourceMappingURL=packages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packages.js","sourceRoot":"","sources":["../src/packages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,2FAA2F;AAC3F,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAU,CAAC;AAE1G,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;AAE9G;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAe,EAAE,IAAY,EAAE,MAAc,GAAG,CAAC,GAAG;IACnF,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;QAC9E,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAClB,IAAI,CAAC;gBACH,MAAM,OAAO,GAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAA2B,CAAC,OAAO,CAAC;gBACpE,OAAO,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;YACtD,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;IACzC,CAAC;AACH,CAAC;AAED,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,OAA2C;IACxE,MAAM,KAAK,GAA0C,EAAE,CAAC;IACxD,KAAK,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,CAAC;QAC3D,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,0CAA0C,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAW,EAAE,CAAC,CAAC;IAC7H,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The progress bar line of `quiesco test`, from a RunState. Pure (no terminal access) so it can be
3
+ * unit-tested:
4
+ *
5
+ * ▕██████████░░░░░░░░░░▏ 12/30 ✓10 ✗1 ↷1 2m13s ▶ adds a todo
6
+ *
7
+ * - `~30`: the total is an estimate (Vitest) or still growing (Jest).
8
+ * - Several workers: `▶ 1:adds a todo · 2:edits a todo` (worker numbers from 1).
9
+ * - Fits in `width` columns (CJK characters count as two).
10
+ */
11
+ import type { RunState } from '@quiesco/core';
12
+ export interface RenderOptions {
13
+ width: number;
14
+ color: boolean;
15
+ /** Bar cells (default 20). */
16
+ barWidth?: number;
17
+ /**
18
+ * When the runner was started (epoch ms): the time shown counts from there, so it includes starting the
19
+ * device and the app. Default: from the first test.
20
+ */
21
+ since?: number;
22
+ now?: () => number;
23
+ }
24
+ export declare function stripAnsi(text: string): string;
25
+ /** Terminal columns taken by `text` (ANSI escapes take none). */
26
+ export declare function textWidth(text: string): number;
27
+ /** Cut plain text (no ANSI) to `width` columns, ending with … when cut. */
28
+ export declare function truncate(text: string, width: number): string;
29
+ export declare function formatDuration(ms: number): string;
30
+ export declare function renderBar(state: RunState, options: RenderOptions): string;
31
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/progress/render.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAKD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C;AAiBD,iEAAiE;AACjE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ9C;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY5D;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAMjD;AAID,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAiCzE"}
@@ -0,0 +1,89 @@
1
+ // eslint-disable-next-line no-control-regex -- ANSI escape sequences start with ESC
2
+ const ANSI = /\u001b\[[0-9;?]*[ -/]*[@-~]/g;
3
+ export function stripAnsi(text) {
4
+ return text.replace(ANSI, '');
5
+ }
6
+ /** East Asian wide and fullwidth characters, and emoji, take two columns. */
7
+ function isWide(code) {
8
+ return ((code >= 0x1100 && code <= 0x115f) ||
9
+ (code >= 0x2e80 && code <= 0xa4cf && code !== 0x303f) ||
10
+ (code >= 0xac00 && code <= 0xd7a3) ||
11
+ (code >= 0xf900 && code <= 0xfaff) ||
12
+ (code >= 0xfe30 && code <= 0xfe4f) ||
13
+ (code >= 0xff00 && code <= 0xff60) ||
14
+ (code >= 0xffe0 && code <= 0xffe6) ||
15
+ (code >= 0x1f300 && code <= 0x1faff) ||
16
+ (code >= 0x20000 && code <= 0x3fffd));
17
+ }
18
+ /** Terminal columns taken by `text` (ANSI escapes take none). */
19
+ export function textWidth(text) {
20
+ let w = 0;
21
+ for (const ch of stripAnsi(text)) {
22
+ const code = ch.codePointAt(0) ?? 0;
23
+ if (code < 0x20 || (code >= 0x7f && code < 0xa0) || (code >= 0x300 && code <= 0x36f) || code === 0x200d || (code >= 0xfe00 && code <= 0xfe0f))
24
+ continue;
25
+ w += isWide(code) ? 2 : 1;
26
+ }
27
+ return w;
28
+ }
29
+ /** Cut plain text (no ANSI) to `width` columns, ending with … when cut. */
30
+ export function truncate(text, width) {
31
+ if (width <= 0)
32
+ return '';
33
+ if (textWidth(text) <= width)
34
+ return text;
35
+ let out = '';
36
+ let w = 0;
37
+ for (const ch of text) {
38
+ const cw = textWidth(ch);
39
+ if (w + cw > width - 1)
40
+ break;
41
+ out += ch;
42
+ w += cw;
43
+ }
44
+ return `${out}…`;
45
+ }
46
+ export function formatDuration(ms) {
47
+ const s = Math.floor(ms / 1000);
48
+ if (s < 60)
49
+ return `${s}s`;
50
+ const m = Math.floor(s / 60);
51
+ if (m < 60)
52
+ return `${m}m${String(s % 60).padStart(2, '0')}s`;
53
+ return `${Math.floor(m / 60)}h${String(m % 60).padStart(2, '0')}m`;
54
+ }
55
+ const paint = (on, code, text) => (on ? `\u001b[${code}m${text}\u001b[0m` : text);
56
+ export function renderBar(state, options) {
57
+ const { width, color } = options;
58
+ const cells = options.barWidth ?? 20;
59
+ if (state.phase === 'idle')
60
+ return truncate('quiesco: waiting for the test runner…', width - 1);
61
+ const total = state.total;
62
+ const done = state.done;
63
+ const ratio = total > 0 ? Math.min(1, done / total) : 0;
64
+ const filled = Math.round(ratio * cells);
65
+ const failed = state.counts.failed > 0 || state.fileErrors.size > 0 || state.runErrors.length > 0;
66
+ const bar = `▕${paint(color, failed ? '31' : '32', '█'.repeat(filled))}${paint(color, '2', '░'.repeat(cells - filled))}▏`;
67
+ const totalText = `${state.totalIsApproximate ? '~' : ''}${total}`;
68
+ const c = state.counts;
69
+ const skipped = c.skipped + c.pending + c.todo + c.undefined + c.notRun;
70
+ const parts = [
71
+ `${bar} ${done}/${totalText}`,
72
+ [paint(color, '32', `✓${c.passed}`), ...(c.failed > 0 ? [paint(color, '31', `✗${c.failed}`)] : []), ...(skipped > 0 ? [paint(color, '33', `↷${skipped}`)] : [])].join(' '),
73
+ formatDuration(options.since !== undefined ? Math.max(0, (state.endedAt ?? (options.now ?? Date.now)()) - options.since) : state.elapsedMs),
74
+ ];
75
+ let line = parts.join(' ');
76
+ // What is running now, in the space left.
77
+ const room = width - 1 - textWidth(line) - 4;
78
+ if (state.phase === 'running' && state.running.size > 0 && room > 8) {
79
+ const running = [...state.running.values()].sort((a, b) => (a.worker ?? 0) - (b.worker ?? 0));
80
+ const many = running.length > 1;
81
+ const text = running.map((r) => `${many && r.worker !== undefined ? `${r.worker + 1}:` : ''}${r.test.name}`).join(' · ');
82
+ line += ` ${paint(color, '36', '▶')} ${truncate(text, room)}`;
83
+ }
84
+ else if (state.phase === 'ended') {
85
+ line += ` ${state.interrupted ? paint(color, '33', 'interrupted') : state.success === true ? paint(color, '32', 'passed') : paint(color, '31', 'failed')}`;
86
+ }
87
+ return textWidth(line) <= width - 1 ? line : truncate(stripAnsi(line), width - 1);
88
+ }
89
+ //# sourceMappingURL=render.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.js","sour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AC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;IAC9J,CAAC;IACD,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACpF,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { CliContext, Terminal } from '../context.js';
2
+ export type RunnerName = 'cucumber' | 'jest' | 'vitest';
3
+ /**
4
+ * Whether to show the bar: a terminal, not CI, not turned off (`--no-progress`, QUIESCO_PROGRESS=0).
5
+ */
6
+ export declare function progressWanted(ctx: CliContext, noProgressFlag: boolean): ctx is CliContext & {
7
+ terminal: Terminal;
8
+ };
9
+ /**
10
+ * The cucumber-js arguments that add Quiesco's events formatter, from the project's own
11
+ * @quiesco/cucumber; [] when it is not installed. The file target keeps the user's stdout formatter
12
+ * (a format without one would replace it).
13
+ */
14
+ export declare function cucumberFormatArgs(ctx: CliContext): string[];
15
+ export interface ProgressRun {
16
+ command: string;
17
+ args: readonly string[];
18
+ env: NodeJS.ProcessEnv;
19
+ runner: RunnerName;
20
+ }
21
+ export declare function runWithProgress(ctx: CliContext & {
22
+ terminal: Terminal;
23
+ }, run: ProgressRun): Promise<number>;
24
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/progress/run.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI1D,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAKxD;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAMnH;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,EAAE,CAS5D;AAQD,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CA6CjH"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Run the test runner with the progress bar (P3): a run-events socket the runner's Quiesco reporter
3
+ * connects to (QUIESCO_EVENTS), the runner's output piped through so the bar stays on the last line.
4
+ */
5
+ import os from 'node:os';
6
+ import path from 'node:path';
7
+ import { pathToFileURL } from 'node:url';
8
+ import { RunEventServer, RunState } from '@quiesco/core';
9
+ import { renderBar } from './render.js';
10
+ import { StickyTerminal } from './sticky.js';
11
+ /** Redraw at most this often for events; the clock ticks once a second. */
12
+ const FRAME_MS = 80;
13
+ /**
14
+ * Whether to show the bar: a terminal, not CI, not turned off (`--no-progress`, QUIESCO_PROGRESS=0).
15
+ */
16
+ export function progressWanted(ctx, noProgressFlag) {
17
+ if (noProgressFlag || ctx.terminal === null)
18
+ return false;
19
+ const env = ctx.env;
20
+ if (env['QUIESCO_PROGRESS'] === '0' || env['QUIESCO_PROGRESS'] === 'false')
21
+ return false;
22
+ const ci = env['CI'];
23
+ return ci === undefined || ci === '' || ci === '0' || ci === 'false';
24
+ }
25
+ /**
26
+ * The cucumber-js arguments that add Quiesco's events formatter, from the project's own
27
+ * @quiesco/cucumber; [] when it is not installed. The file target keeps the user's stdout formatter
28
+ * (a format without one would replace it).
29
+ */
30
+ export function cucumberFormatArgs(ctx) {
31
+ const file = ctx.resolveFrom(ctx.cwd, '@quiesco/cucumber/events');
32
+ if (file === null)
33
+ return [];
34
+ const url = pathToFileURL(file).href;
35
+ // Windows: a temp file (cucumber creates the target's directory, which fails for the null device).
36
+ const target = ctx.platform === 'win32' ? path.join(os.tmpdir(), `quiesco-events-${process.pid}.out`) : '/dev/null';
37
+ const descriptor = `"${url}":"${target}"`;
38
+ // Through cmd.exe (Windows runs npx with a shell) the quotes must survive the argument parsing.
39
+ return ['--format', ctx.platform === 'win32' ? `"${descriptor.replaceAll('"', '\\"')}"` : descriptor];
40
+ }
41
+ const HINTS = {
42
+ cucumber: "quiesco: no test progress was received. Install @quiesco/cucumber in this project (quiesco test adds its formatter by itself).",
43
+ vitest: "quiesco: no test progress was received. Add quiescoPlugin() to your Vitest config: `import { quiesco, quiescoPlugin } from '@quiesco/vitest/config'` and `plugins: [quiescoPlugin()]`.",
44
+ jest: "quiesco: no test progress was received. Your Jest config replaces the preset's reporters: add '@quiesco/jest/reporter' to `reporters` (next to 'default').",
45
+ };
46
+ export async function runWithProgress(ctx, run) {
47
+ const term = ctx.terminal;
48
+ const state = new RunState();
49
+ const since = Date.now();
50
+ const sticky = new StickyTerminal({ write: term.stdout, columns: term.columns });
51
+ const draw = () => sticky.setBar(renderBar(state, { width: term.columns(), color: term.color, since }));
52
+ let frame = null;
53
+ const schedule = () => {
54
+ frame ??= setTimeout(() => {
55
+ frame = null;
56
+ draw();
57
+ }, FRAME_MS);
58
+ };
59
+ const server = new RunEventServer({
60
+ onEvent: (event) => {
61
+ state.apply(event);
62
+ schedule();
63
+ },
64
+ });
65
+ await server.listen();
66
+ const clock = setInterval(draw, 1000);
67
+ clock.unref();
68
+ const offInterrupt = term.onInterrupt(() => sticky.stop());
69
+ draw();
70
+ const env = { ...run.env, ...server.env() };
71
+ // The runner's output is a pipe now: keep its colors and width as on the terminal.
72
+ if (term.color && env['FORCE_COLOR'] === undefined && env['NO_COLOR'] === undefined)
73
+ env['FORCE_COLOR'] = '1';
74
+ if (env['COLUMNS'] === undefined)
75
+ env['COLUMNS'] = String(term.columns());
76
+ let code;
77
+ try {
78
+ code = await ctx.runPiped(run.command, run.args, { cwd: ctx.cwd, env, onStdout: (c) => sticky.output(c, term.stdout), onStderr: (c) => sticky.output(c, term.stderr) });
79
+ await server.drain();
80
+ }
81
+ finally {
82
+ clearInterval(clock);
83
+ if (frame !== null)
84
+ clearTimeout(frame);
85
+ offInterrupt();
86
+ await server.close();
87
+ }
88
+ state.runnerExited(code);
89
+ const received = server.hellos.length > 0;
90
+ sticky.stop(received ? renderBar(state, { width: term.columns(), color: term.color, since }) : undefined);
91
+ if (!received)
92
+ ctx.err(HINTS[run.runner]);
93
+ return code;
94
+ }
95
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/progress/run.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,2EAA2E;AAC3E,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAe,EAAE,cAAuB;IACrE,IAAI,cAAc,IAAI,GAAG,CAAC,QAAQ,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC1D,MAAM,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;IACpB,IA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AAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1G,IAAI,CAAC,QAAQ;QAAE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,25 @@
1
+ export interface StickyOutput {
2
+ /** Writes escape sequences and the bottom region (stdout). */
3
+ write(text: string): void;
4
+ /** Current terminal width. */
5
+ columns(): number;
6
+ }
7
+ export declare class StickyTerminal {
8
+ private readonly out;
9
+ private partial;
10
+ private bar;
11
+ private drawnRows;
12
+ private stopped;
13
+ constructor(out: StickyOutput);
14
+ /** The child wrote `chunk` (to stdout or stderr: `write` is that stream). */
15
+ output(chunk: string, write: (text: string) => void): void;
16
+ /** Show `line` as the status line (no wider than the terminal). */
17
+ setBar(line: string): void;
18
+ /** Remove the region; write the unfinished line back, then `finalLine` (if any) as plain output. */
19
+ stop(finalLine?: string): void;
20
+ private visiblePartial;
21
+ private rows;
22
+ private draw;
23
+ private erase;
24
+ }
25
+ //# sourceMappingURL=sticky.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["../../src/progress/sticky.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,YAAY;IAC3B,8DAA8D;IAC9D,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,8BAA8B;IAC9B,OAAO,IAAI,MAAM,CAAC;CACnB;AAED,qBAAa,cAAc;IAMb,OAAO,CAAC,QAAQ,CAAC,GAAG;IALhC,OAAO,CAAC,OAAO,CAAM;IACrB,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,OAAO,CAAS;gBAEK,GAAG,EAAE,YAAY;IAE9C,6EAA6E;IAC7E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAiB1D,mEAAmE;IACnE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO1B,oGAAoG;IACpG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAU9B,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,IAAI;IAeZ,OAAO,CAAC,KAAK;CAMd"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Keeps one status line at the bottom of the terminal while a child's output scrolls above it.
3
+ *
4
+ * The bottom region is [the child's current unfinished line, if any] + [the status line]. Before the
5
+ * child's output is written the region is erased (cursor up, clear to the end of the screen); complete
6
+ * lines are written; the region is drawn again. An unfinished line (cucumber's progress dots
7
+ * `....F..`) stays visible above the bar and is completed in place by later output.
8
+ */
9
+ import { textWidth } from './render.js';
10
+ export class StickyTerminal {
11
+ out;
12
+ partial = '';
13
+ bar = '';
14
+ drawnRows = 0;
15
+ stopped = false;
16
+ constructor(out) {
17
+ this.out = out;
18
+ }
19
+ /** The child wrote `chunk` (to stdout or stderr: `write` is that stream). */
20
+ output(chunk, write) {
21
+ if (this.stopped) {
22
+ write(chunk);
23
+ return;
24
+ }
25
+ this.erase();
26
+ const text = this.partial + chunk;
27
+ const nl = text.lastIndexOf('\n');
28
+ if (nl === -1) {
29
+ this.partial = text;
30
+ }
31
+ else {
32
+ write(text.slice(0, nl + 1));
33
+ this.partial = text.slice(nl + 1);
34
+ }
35
+ this.draw();
36
+ }
37
+ /** Show `line` as the status line (no wider than the terminal). */
38
+ setBar(line) {
39
+ if (this.stopped || line === this.bar)
40
+ return;
41
+ this.erase();
42
+ this.bar = line;
43
+ this.draw();
44
+ }
45
+ /** Remove the region; write the unfinished line back, then `finalLine` (if any) as plain output. */
46
+ stop(finalLine) {
47
+ if (this.stopped)
48
+ return;
49
+ this.erase();
50
+ this.stopped = true;
51
+ let tail = this.partial;
52
+ this.partial = '';
53
+ if (finalLine !== undefined)
54
+ tail += `${tail === '' ? '' : '\n'}${finalLine}\n`;
55
+ if (tail !== '')
56
+ this.out.write(tail);
57
+ }
58
+ visiblePartial() {
59
+ // A carriage return inside the unfinished line rewrites it from the start, as a terminal would.
60
+ const cr = this.partial.lastIndexOf('\r');
61
+ return cr === -1 ? this.partial : this.partial.slice(cr + 1);
62
+ }
63
+ rows(text) {
64
+ const cols = Math.max(1, this.out.columns());
65
+ return Math.max(1, Math.ceil(textWidth(text) / cols));
66
+ }
67
+ draw() {
68
+ const partial = this.visiblePartial();
69
+ if (partial === '' && this.bar === '')
70
+ return;
71
+ let text = '';
72
+ let rows = 0;
73
+ if (partial !== '') {
74
+ text += `${partial}\n`;
75
+ rows += this.rows(partial);
76
+ }
77
+ text += this.bar;
78
+ rows += 1;
79
+ this.out.write(text);
80
+ this.drawnRows = rows;
81
+ }
82
+ erase() {
83
+ if (this.drawnRows === 0)
84
+ return;
85
+ const up = this.drawnRows - 1;
86
+ this.out.write(`\r${up > 0 ? `\u001b[${up}A` : ''}\u001b[0J`);
87
+ this.drawnRows = 0;
88
+ }
89
+ }
90
+ //# sourceMappingURL=sticky.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticky.js","sourceRoot":"","sources":["../../src/progress/sticky.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,MAAM,OAAO,cAAc;IAMI;IALrB,OAAO,GAAG,EAAE,CAAC;IACb,GAAG,GAAG,EAAE,CAAC;IACT,SAAS,GAAG,CAAC,CAAC;IACd,OAAO,GAAG,KAAK,CAAC;IAExB,YAA6B,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IAAG,CAAC;IAElD,6EAA6E;IAC7E,MAAM,CAAC,KAAa,EAAE,KAA6B;QACjD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,KAAK,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M,EAAE,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAC9D,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACrB,CAAC;CACF"}
@@ -0,0 +1,23 @@
1
+ import type { CliContext } from './context.js';
2
+ /** `file` as given or with a source extension (or as a directory with an index file); null when none exists. */
3
+ export declare function resolveSource(ctx: CliContext, file: string): string | null;
4
+ /** The project's entry file from package.json "main"; null for package entries (expo-router/entry) or when missing. */
5
+ export declare function entryFile(ctx: CliContext, main: string | undefined): string | null;
6
+ /**
7
+ * The component an entry registers with `registerRootComponent(App)`, when `App` is imported from a local
8
+ * file: its name and that file. null for anything else (inline components, packages, several calls).
9
+ */
10
+ export declare function registeredRoot(ctx: CliContext, entry: string, source: string): {
11
+ name: string;
12
+ file: string | null;
13
+ importPath: string;
14
+ } | null;
15
+ /** The files `<QuiescoRoot>` is looked for in: the usual root files, the entry and the component it registers. */
16
+ export declare function rootSourceFiles(ctx: CliContext, main: string | undefined): string[];
17
+ /**
18
+ * Issue #20: wrap the component an entry registers in `<QuiescoRoot>`, without JSX (the entry is often
19
+ * index.ts). Returns the new source, or null when the entry does not have the plain
20
+ * `registerRootComponent(App)` shape with a local `App`, or already mentions QuiescoRoot.
21
+ */
22
+ export declare function wrapRegisteredRoot(ctx: CliContext, entry: string, source: string): string | null;
23
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,gHAAgH;AAChH,wBAAgB,aAAa,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG1E;AAED,uHAAuH;AACvH,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAElF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAQ/I;AAED,kHAAkH;AAClH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CASnF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAoBhG"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Where an Expo project renders its root (issue #20): the entry file, the component it registers, and
3
+ * the files `<QuiescoRoot>` may be in.
4
+ */
5
+ import path from 'node:path';
6
+ const SOURCE_EXTENSIONS = ['.tsx', '.ts', '.jsx', '.js'];
7
+ /** Root layouts of Expo Router apps and the usual root component files. */
8
+ const ROOT_CANDIDATES = ['app/_layout', 'src/app/_layout', 'App', 'src/App'].flatMap((base) => SOURCE_EXTENSIONS.map((ext) => `${base}${ext}`));
9
+ /** `file` as given or with a source extension (or as a directory with an index file); null when none exists. */
10
+ export function resolveSource(ctx, file) {
11
+ const candidates = [file, ...SOURCE_EXTENSIONS.map((ext) => `${file}${ext}`), ...SOURCE_EXTENSIONS.map((ext) => path.join(file, `index${ext}`))];
12
+ return candidates.find((f) => /\.[cm]?[jt]sx?$/.test(f) && ctx.exists(f)) ?? null;
13
+ }
14
+ /** The project's entry file from package.json "main"; null for package entries (expo-router/entry) or when missing. */
15
+ export function entryFile(ctx, main) {
16
+ return main === undefined ? null : resolveSource(ctx, path.join(ctx.cwd, main));
17
+ }
18
+ /**
19
+ * The component an entry registers with `registerRootComponent(App)`, when `App` is imported from a local
20
+ * file: its name and that file. null for anything else (inline components, packages, several calls).
21
+ */
22
+ export function registeredRoot(ctx, entry, source) {
23
+ const calls = [...source.matchAll(/registerRootComponent\(\s*([A-Za-z_$][\w$]*)\s*\)/g)];
24
+ if (calls.length !== 1)
25
+ return null;
26
+ const name = calls[0][1];
27
+ const imported = new RegExp(`import\\s+(?:${name}\\b|\\{[^}]*\\b(?:default\\s+as\\s+)?${name}\\b[^}]*\\})[^;'"]*from\\s+['"](\\.{1,2}/[^'"]+)['"]`).exec(source);
28
+ if (imported === null)
29
+ return null;
30
+ const importPath = imported[1];
31
+ return { name, file: resolveSource(ctx, path.resolve(path.dirname(entry), importPath)), importPath };
32
+ }
33
+ /** The files `<QuiescoRoot>` is looked for in: the usual root files, the entry and the component it registers. */
34
+ export function rootSourceFiles(ctx, main) {
35
+ const files = ROOT_CANDIDATES.map((f) => path.join(ctx.cwd, f));
36
+ const entry = entryFile(ctx, main);
37
+ if (entry !== null) {
38
+ files.push(entry);
39
+ const root = registeredRoot(ctx, entry, ctx.readFile(entry) ?? '');
40
+ if (root?.file != null)
41
+ files.push(root.file);
42
+ }
43
+ return [...new Set(files)].filter((f) => ctx.exists(f));
44
+ }
45
+ /**
46
+ * Issue #20: wrap the component an entry registers in `<QuiescoRoot>`, without JSX (the entry is often
47
+ * index.ts). Returns the new source, or null when the entry does not have the plain
48
+ * `registerRootComponent(App)` shape with a local `App`, or already mentions QuiescoRoot.
49
+ */
50
+ export function wrapRegisteredRoot(ctx, entry, source) {
51
+ if (source.includes('QuiescoRoot'))
52
+ return null;
53
+ const root = registeredRoot(ctx, entry, source);
54
+ if (root === null)
55
+ return null;
56
+ const agentImport = /^import '@quiesco\/agent';/m;
57
+ let out = agentImport.test(source)
58
+ ? source.replace(agentImport, "import { QuiescoRoot } from '@quiesco/agent';")
59
+ : `import { QuiescoRoot } from '@quiesco/agent'; // first: Quiesco hooks into React before the app loads\n${source}`;
60
+ out = out.replace(/(import\s[^;]*?from\s+['"]expo['"];?\n|import\s+['"]expo['"];?\n)/, `$1import { createElement } from 'react';\n`);
61
+ if (!out.includes("import { createElement } from 'react';"))
62
+ out = out.replace(/(^import \{ QuiescoRoot \}[^\n]*\n)/m, `$1import { createElement } from 'react';\n`);
63
+ const wrapper = [
64
+ `// <QuiescoRoot> connects the app to Quiesco and remounts it for the soft reset before each scenario`,
65
+ `// (it renders ${root.name} unchanged in builds without EXPO_PUBLIC_QUIESCO=1).`,
66
+ `function QuiescoApp() {`,
67
+ ` return createElement(QuiescoRoot, null, createElement(${root.name}));`,
68
+ `}`,
69
+ ``,
70
+ `registerRootComponent(QuiescoApp)`,
71
+ ].join('\n');
72
+ return out.replace(/registerRootComponent\(\s*[A-Za-z_$][\w$]*\s*\)/, wrapper);
73
+ }
74
+ //# sourceMappingURL=project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.js","sourceRoot":"","sources":["../src/project.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAEzD,2EAA2E;AAC3E,MAAM,eAAe,GAAG,CAAC,aAAa,EAAE,iBAAiB,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;AAEhJ,gHAAgH;AAChH,MAAM,UAAU,aAAa,CAAC,GAAe,EAAE,IAAY;IACzD,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC,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CAAC;IAClD,IAAI,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,+CAA+C,CAAC;QAC9E,CAAC,CAAC,0GAA0G,MAAM,EAAE,CAAC;IACvH,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,mEAAmE,EAAE,4CAA4C,CAAC,CAAC;IACrI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QAAE,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,sCAAsC,EAAE,4CAA4C,CAAC,CAAC;IACrK,MAAM,OAAO,GAAG;QACd,sGAAsG;QACtG,kBAAkB,IAAI,CAAC,IAAI,sDAAsD;QACjF,yBAAyB;QACzB,2DAA2D,IAAI,CAAC,IAAI,KAAK;QACzE,GAAG;QACH,EAAE;QACF,mCAAmC;KACpC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,OAAO,GAAG,CAAC,OAAO,CAAC,iDAAiD,EAAE,OAAO,CAAC,CAAC;AACjF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quiesco",
3
- "version": "0.2.0",
4
- "description": "Quiesco command line: init, test, doctor, tree",
3
+ "version": "0.4.0",
4
+ "description": "Quiesco command line: init, test (with a progress bar), ui, list, doctor, tree",
5
5
  "license": "MIT",
6
6
  "author": "h2nology",
7
7
  "keywords": [
@@ -44,7 +44,7 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
- "@quiesco/core": "0.2.0"
47
+ "@quiesco/core": "0.4.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsc -b",