@taco-ai/cli 0.1.1
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/README.md +27 -0
- package/bin/taco.cjs +56 -0
- package/dist/taco.mjs +104 -0
- package/lib/index.ts +102 -0
- package/lib/install.ts +85 -0
- package/lib/installHelpers.ts +140 -0
- package/lib/installId.ts +75 -0
- package/lib/installLaunchd.ts +194 -0
- package/lib/installSchtasks.ts +127 -0
- package/lib/paths.ts +100 -0
- package/lib/sidecarLauncher.ts +179 -0
- package/lib/start.ts +381 -0
- package/lib/startLock.ts +109 -0
- package/lib/status.ts +74 -0
- package/lib/stop.ts +108 -0
- package/lib/uninstall.ts +25 -0
- package/lib/uninstallLaunchd.ts +36 -0
- package/lib/uninstallSchtasks.ts +25 -0
- package/lib/upgrade.ts +254 -0
- package/lib/upgradeApply.ts +178 -0
- package/lib/upgradeLogger.ts +32 -0
- package/lib/upgradeMarker.ts +69 -0
- package/lib/upgradePlatform.ts +37 -0
- package/lib/upgradeTypes.ts +40 -0
- package/package.json +39 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `taco upgrade --apply` — atomic swap of the staged bundle into the
|
|
3
|
+
* live install dir, then clear the marker. Triggered by the UI's
|
|
4
|
+
* reconnect loop after the daemon's UpgradeOrchestrator has shut itself
|
|
5
|
+
* down (because the marker pointed at a real staging dir).
|
|
6
|
+
*
|
|
7
|
+
* Swap strategy:
|
|
8
|
+
* 1. Read the marker (missing → throw; the UI should fall back to
|
|
9
|
+
* plain `taco start` in that case).
|
|
10
|
+
* 2. Verify the staging dir still exists with a manifest.json — the
|
|
11
|
+
* operator may have wiped $TACO_HOME/staging while the daemon was
|
|
12
|
+
* still running, in which case we refuse to swap (would leave the
|
|
13
|
+
* live dir untouched but still clear the marker).
|
|
14
|
+
* 3. Rename `live_dir` → `live_dir.prev` (atomic on the same fs;
|
|
15
|
+
* leaves a rollback target).
|
|
16
|
+
* 4. Rename `staging_dir` → `live_dir` (atomic if prev rename
|
|
17
|
+
* succeeded; on EXDEV across filesystems we fall back to
|
|
18
|
+
* copyFile + unlink so a cross-mount install doesn't wedge).
|
|
19
|
+
* 5. On any failure: rename `live_dir.prev` back to `live_dir`
|
|
20
|
+
* so the daemon's next start picks up the old binary instead of
|
|
21
|
+
* a half-swapped tree.
|
|
22
|
+
* 6. Clear the marker.
|
|
23
|
+
* 7. Best-effort: send control.shutdown so the (about-to-restart)
|
|
24
|
+
* daemon stops cleanly; the service manager (launchd / schtasks)
|
|
25
|
+
* respawns against the new binary. If no service is installed,
|
|
26
|
+
* the UI's reconnect loop runs `taco start` itself.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
import { copyFile, mkdir, rename, rm, stat } from "node:fs/promises";
|
|
30
|
+
import { join } from "node:path";
|
|
31
|
+
import { TACO_HOME, UPGRADE_MARKER } from "./paths.ts";
|
|
32
|
+
import { createLogger } from "./upgradeLogger.ts";
|
|
33
|
+
import { clearUpgradeMarker, readUpgradeMarker } from "./upgradeMarker.ts";
|
|
34
|
+
import type { UpgradeApplyResult } from "./upgradeTypes.ts";
|
|
35
|
+
|
|
36
|
+
const log = createLogger("taco.cli.upgrade.apply");
|
|
37
|
+
|
|
38
|
+
export interface UpgradeApplyOptions {
|
|
39
|
+
/** Override $TACO_HOME (defaults to env / ~/.taco). */
|
|
40
|
+
tacoHome?: string;
|
|
41
|
+
/** Stop hook — injected so tests can skip the control-channel call. */
|
|
42
|
+
stop?: () => Promise<void>;
|
|
43
|
+
/** Test seam: override fs.rename. Production callers omit this; the
|
|
44
|
+
* rollback + EXDEV paths can't otherwise be exercised deterministically
|
|
45
|
+
* from a tmpdir (rename almost never fails on a single filesystem). */
|
|
46
|
+
rename?: (src: string, dest: string) => Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export async function upgradeApplyCommand(
|
|
50
|
+
opts: UpgradeApplyOptions = {},
|
|
51
|
+
): Promise<UpgradeApplyResult> {
|
|
52
|
+
const tacoHome = opts.tacoHome ?? TACO_HOME;
|
|
53
|
+
const markerPath = UPGRADE_MARKER.startsWith(tacoHome)
|
|
54
|
+
? UPGRADE_MARKER
|
|
55
|
+
: join(tacoHome, "upgrade-marker.json");
|
|
56
|
+
|
|
57
|
+
const marker = await readUpgradeMarker(markerPath);
|
|
58
|
+
if (!marker) {
|
|
59
|
+
throw new Error("no upgrade pending; marker absent at " + markerPath);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
log.info(`applying upgrade → version=${marker.version}, live=${marker.live_dir}`);
|
|
63
|
+
|
|
64
|
+
// Verify staging is still usable before touching live_dir.
|
|
65
|
+
//
|
|
66
|
+
// Two distinct failures, deliberately handled differently:
|
|
67
|
+
// - staging dir gone entirely (commonly /tmp cleanup) → this upgrade can
|
|
68
|
+
// never complete, so clear the marker. Leaving it would make every
|
|
69
|
+
// later boot re-attempt a dead path forever.
|
|
70
|
+
// - staging present but malformed → keep the marker. Re-running
|
|
71
|
+
// `taco upgrade` can re-download into the same slot and recover.
|
|
72
|
+
// Both still throw: the non-zero exit is the signal the desktop's
|
|
73
|
+
// reconnect loop needs to stop retrying the apply.
|
|
74
|
+
if (!(await isDirectory(marker.staging_dir))) {
|
|
75
|
+
log.warn(`staging dir missing (${marker.staging_dir}); clearing unusable marker`);
|
|
76
|
+
await clearUpgradeMarker(markerPath);
|
|
77
|
+
throw new Error(`staging dir missing: ${marker.staging_dir}`);
|
|
78
|
+
}
|
|
79
|
+
await assertBundleShape(marker.staging_dir);
|
|
80
|
+
|
|
81
|
+
const prevDir = `${marker.live_dir}.prev`;
|
|
82
|
+
// Clear any stale rollback target from a prior failed attempt.
|
|
83
|
+
await rm(prevDir, { recursive: true, force: true });
|
|
84
|
+
|
|
85
|
+
const renameFn = opts.rename ?? rename;
|
|
86
|
+
|
|
87
|
+
// Step 1: live → prev
|
|
88
|
+
try {
|
|
89
|
+
await renameFn(marker.live_dir, prevDir);
|
|
90
|
+
} catch (err) {
|
|
91
|
+
throw new Error(`failed to move live_dir → prev: ${String(err)}`);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Step 2: staging → live. Try the same-fs atomic rename first; on EXDEV
|
|
95
|
+
// (cross-filesystem) fall back to recursive copy + unlink so cross-mount
|
|
96
|
+
// installs aren't wedged. If the copy fails mid-flight, renameFn(prevDir,
|
|
97
|
+
// liveDir) restores the original.
|
|
98
|
+
try {
|
|
99
|
+
try {
|
|
100
|
+
await renameFn(marker.staging_dir, marker.live_dir);
|
|
101
|
+
} catch (err) {
|
|
102
|
+
const code = (err as NodeJS.ErrnoException).code;
|
|
103
|
+
if (code !== "EXDEV") throw err;
|
|
104
|
+
log.warn("cross-device rename; falling back to copyFile + unlink");
|
|
105
|
+
await copyDir(marker.staging_dir, marker.live_dir);
|
|
106
|
+
await rm(marker.staging_dir, { recursive: true, force: true });
|
|
107
|
+
}
|
|
108
|
+
} catch (err) {
|
|
109
|
+
log.error(`swap failed, rolling back: ${String(err)}`);
|
|
110
|
+
try {
|
|
111
|
+
await rm(marker.live_dir, { recursive: true, force: true });
|
|
112
|
+
await renameFn(prevDir, marker.live_dir);
|
|
113
|
+
} catch (rollbackErr) {
|
|
114
|
+
log.error(`rollback also failed: ${String(rollbackErr)}`);
|
|
115
|
+
}
|
|
116
|
+
throw err;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Step 3: clear the marker so the daemon's next boot doesn't re-trigger.
|
|
120
|
+
await clearUpgradeMarker(markerPath);
|
|
121
|
+
|
|
122
|
+
// Step 4: best-effort stop. The orchestrator already asked the daemon
|
|
123
|
+
// to shut down (when it saw the marker), but a slow shutdown or a
|
|
124
|
+
// non-orchestrator trigger (manual `taco upgrade --apply`) means the
|
|
125
|
+
// daemon might still be running with the old binary in memory. We
|
|
126
|
+
// send control.shutdown anyway; if it's already gone we swallow the
|
|
127
|
+
// ECONNREFUSED.
|
|
128
|
+
if (opts.stop) {
|
|
129
|
+
try {
|
|
130
|
+
await opts.stop();
|
|
131
|
+
} catch (err) {
|
|
132
|
+
log.warn(`best-effort stop failed (ignored): ${String(err)}`);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Step 5: drop the rollback target. Safe to delay if rm fails — the
|
|
137
|
+
// next upgrade overwrites it anyway.
|
|
138
|
+
await rm(prevDir, { recursive: true, force: true }).catch(() => undefined);
|
|
139
|
+
|
|
140
|
+
log.info(`upgrade applied → version=${marker.version}`);
|
|
141
|
+
return { version: marker.version };
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
async function isDirectory(path: string): Promise<boolean> {
|
|
145
|
+
try {
|
|
146
|
+
return (await stat(path)).isDirectory();
|
|
147
|
+
} catch {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
async function assertBundleShape(stagingDir: string): Promise<void> {
|
|
153
|
+
try {
|
|
154
|
+
await stat(join(stagingDir, "manifest.json"));
|
|
155
|
+
} catch {
|
|
156
|
+
throw new Error(`staging dir missing manifest.json: ${stagingDir}`);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Recursive copy used by the EXDEV fallback. `cp -R` semantics: each
|
|
161
|
+
* file's bytes copied; symlinks dereferenced (we don't trust the
|
|
162
|
+
* staging tarball to ship symlinks we want to preserve). */
|
|
163
|
+
async function copyDir(src: string, dest: string): Promise<void> {
|
|
164
|
+
await mkdir(dest, { recursive: true });
|
|
165
|
+
for await (const entry of await import("node:fs/promises").then((m) =>
|
|
166
|
+
m.readdir(src, { withFileTypes: true }),
|
|
167
|
+
)) {
|
|
168
|
+
const s = join(src, entry.name);
|
|
169
|
+
const d = join(dest, entry.name);
|
|
170
|
+
if (entry.isDirectory()) {
|
|
171
|
+
await copyDir(s, d);
|
|
172
|
+
} else if (entry.isFile()) {
|
|
173
|
+
await copyFile(s, d);
|
|
174
|
+
}
|
|
175
|
+
// Skip symlinks / sockets / devices — platform tarballs ship none,
|
|
176
|
+
// and copying them blindly is a security smell.
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tiny stderr logger so the upgrade flow doesn't need to depend on the
|
|
3
|
+
* sidecar's full `createLogger` (which pulls in the rest of the sidecar's
|
|
4
|
+
* runtime). Single-process CLI tool, no need for structured output.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Level = "info" | "warn" | "error";
|
|
8
|
+
|
|
9
|
+
function emit(level: Level, scope: string, msg: string): void {
|
|
10
|
+
const ts = new Date().toISOString();
|
|
11
|
+
process.stderr.write(`${ts} [${level}] [${scope}] ${msg}\n`);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface UpgradeLogger {
|
|
15
|
+
info(msg: string): void;
|
|
16
|
+
warn(msg: string): void;
|
|
17
|
+
error(msg: string): void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function createLogger(scope: string): UpgradeLogger {
|
|
21
|
+
return {
|
|
22
|
+
info(msg) {
|
|
23
|
+
emit("info", scope, msg);
|
|
24
|
+
},
|
|
25
|
+
warn(msg) {
|
|
26
|
+
emit("warn", scope, msg);
|
|
27
|
+
},
|
|
28
|
+
error(msg) {
|
|
29
|
+
emit("error", scope, msg);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI-side upgrade-marker helpers.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the on-disk shape that the sidecar's `upgrader/marker.ts` reads.
|
|
5
|
+
* We intentionally duplicate the tiny read/write/clear surface here rather
|
|
6
|
+
* than importing from `@taco-ai/sidecar` — the CLI doesn't depend on the
|
|
7
|
+
* sidecar's TS source (the bundled platform pkg is what ships at runtime),
|
|
8
|
+
* and the public exports of `@taco-ai/sidecar` are the runtime entry, not
|
|
9
|
+
* the marker module. The duplication is bounded: the type + 3 functions,
|
|
10
|
+
* covered by `upgradeMarker.test.ts` so on-disk drift surfaces immediately.
|
|
11
|
+
*
|
|
12
|
+
* Tolerant read: a missing file (the common case after `upgrade --apply`)
|
|
13
|
+
* returns null; a malformed file logs + returns null rather than throwing,
|
|
14
|
+
* so the operator-visible error stays with whoever wrote the bad marker.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { mkdir, readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
18
|
+
import { dirname, resolve } from "node:path";
|
|
19
|
+
import { createLogger } from "./upgradeLogger.ts";
|
|
20
|
+
import type { UpgradeMarker } from "./upgradeTypes.ts";
|
|
21
|
+
|
|
22
|
+
const log = createLogger("taco.cli.upgrade.marker");
|
|
23
|
+
|
|
24
|
+
const JSON_INDENT = 2;
|
|
25
|
+
|
|
26
|
+
/** True when the marker's live_dir is this CLI's own install root. Several
|
|
27
|
+
* installations can share one $TACO_HOME (npm sidecar + desktop-bundled
|
|
28
|
+
* sidecar) but only one marker exists, so ownership must be checked before
|
|
29
|
+
* applying. resolve() normalizes separators/trailing slashes; Windows
|
|
30
|
+
* compares case-insensitively (NTFS). */
|
|
31
|
+
export function markerTargetsInstall(
|
|
32
|
+
marker: UpgradeMarker,
|
|
33
|
+
ownRoot: string | null | undefined,
|
|
34
|
+
): boolean {
|
|
35
|
+
if (!ownRoot) return false;
|
|
36
|
+
const na = resolve(marker.live_dir);
|
|
37
|
+
const nb = resolve(ownRoot);
|
|
38
|
+
return process.platform === "win32" ? na.toLowerCase() === nb.toLowerCase() : na === nb;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export async function readUpgradeMarker(filePath: string): Promise<UpgradeMarker | null> {
|
|
42
|
+
let raw: string;
|
|
43
|
+
try {
|
|
44
|
+
raw = await readFile(filePath, "utf8");
|
|
45
|
+
} catch (err) {
|
|
46
|
+
if ((err as NodeJS.ErrnoException).code === "ENOENT") return null;
|
|
47
|
+
log.warn(`failed to read marker ${filePath}: ${String(err)}`);
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
return JSON.parse(raw) as UpgradeMarker;
|
|
52
|
+
} catch (err) {
|
|
53
|
+
log.warn(`malformed marker ${filePath}: ${String(err)}`);
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export async function writeUpgradeMarker(filePath: string, marker: UpgradeMarker): Promise<void> {
|
|
59
|
+
await mkdir(dirname(filePath), { recursive: true });
|
|
60
|
+
const tmp = `${filePath}.tmp`;
|
|
61
|
+
await writeFile(tmp, JSON.stringify(marker, null, JSON_INDENT), "utf8");
|
|
62
|
+
await rename(tmp, filePath);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export async function clearUpgradeMarker(filePath: string): Promise<void> {
|
|
66
|
+
await unlink(filePath).catch((err: NodeJS.ErrnoException) => {
|
|
67
|
+
if (err.code !== "ENOENT") throw err;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map the current process platform + arch to the npm package name suffix
|
|
3
|
+
* matching `release-sidecar.yml`'s matrix. The list MUST stay in sync
|
|
4
|
+
* with `packages/cli/lib/installHelpers.ts`'s PLATFORM_KEYS (and the
|
|
5
|
+
* six optional deps in `packages/sidecar/package.json`).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const PLATFORM_KEYS = [
|
|
9
|
+
"darwin-arm64",
|
|
10
|
+
"darwin-x64",
|
|
11
|
+
"linux-x64",
|
|
12
|
+
"linux-arm64",
|
|
13
|
+
"win32-x64",
|
|
14
|
+
"win32-arm64",
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
export type PlatformKey = (typeof PLATFORM_KEYS)[number];
|
|
18
|
+
|
|
19
|
+
export const PLATFORM_PKG_PREFIX = "@taco-ai/sidecar-";
|
|
20
|
+
|
|
21
|
+
/** npm package name for the current platform, e.g. `@taco-ai/sidecar-darwin-arm64`. */
|
|
22
|
+
export function currentPlatformPkg(): { key: PlatformKey; pkg: string } {
|
|
23
|
+
const key = currentPlatformKey();
|
|
24
|
+
return { key, pkg: `${PLATFORM_PKG_PREFIX}${key}` };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function currentPlatformKey(): PlatformKey {
|
|
28
|
+
const platform = process.platform;
|
|
29
|
+
const arch = process.arch;
|
|
30
|
+
const key = `${platform}-${arch}`;
|
|
31
|
+
if ((PLATFORM_KEYS as readonly string[]).includes(key)) {
|
|
32
|
+
return key as PlatformKey;
|
|
33
|
+
}
|
|
34
|
+
throw new Error(
|
|
35
|
+
`unsupported platform ${platform}/${arch} (known: ${PLATFORM_KEYS.join(", ")})`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the upgrade flow. The on-disk shape MUST match what
|
|
3
|
+
* the sidecar's `packages/sidecar/src/upgrader/types.ts` expects —
|
|
4
|
+
* the marker is the contract between the two packages.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export interface UpgradeMarker {
|
|
8
|
+
/** Target version (e.g. "0.2.0"). Surfaces in the UI's "daemon upgrading" notice. */
|
|
9
|
+
version: string;
|
|
10
|
+
/** Absolute path to the staging dir holding the new bundle contents. */
|
|
11
|
+
staging_dir: string;
|
|
12
|
+
/** Absolute path to the live dir the staging should replace. */
|
|
13
|
+
live_dir: string;
|
|
14
|
+
/** Wall-clock ISO when the marker was written; used for diagnostics only. */
|
|
15
|
+
written_at: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface PackageMetadata {
|
|
19
|
+
name: string;
|
|
20
|
+
version: string;
|
|
21
|
+
dist: {
|
|
22
|
+
tarball: string;
|
|
23
|
+
/** `sha512-<base64>` integrity string, verified against the downloaded bytes. */
|
|
24
|
+
integrity: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface UpgradeResult {
|
|
29
|
+
/** The version that was staged (e.g. "0.2.0"). */
|
|
30
|
+
version: string;
|
|
31
|
+
/** Absolute path to the staging dir. */
|
|
32
|
+
stagingDir: string;
|
|
33
|
+
/** Absolute path the `upgrade --apply` step will swap into. */
|
|
34
|
+
liveDir: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface UpgradeApplyResult {
|
|
38
|
+
/** Version that was just swapped in. */
|
|
39
|
+
version: string;
|
|
40
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taco-ai/cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Taco CLI — launcher + daemon supervisor for the sidecar. Wraps @taco-ai/sidecar with user-facing subcommands (start, status, install, upgrade).",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"taco": "./bin/taco.cjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"lib",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": "github:niuma996/taco",
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"tar": "^7.4.3",
|
|
25
|
+
"@taco-ai/sidecar": "0.1.1"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^22.7.0",
|
|
29
|
+
"esbuild": "^0.28.1",
|
|
30
|
+
"tsx": "^4.23.5",
|
|
31
|
+
"typescript": "^7.0.2"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"start": "tsx lib/index.ts start",
|
|
35
|
+
"build": "node esbuild.config.mjs",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "tsx --test 'tests/**/*.test.ts'"
|
|
38
|
+
}
|
|
39
|
+
}
|