mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
17 lines
374 B
JavaScript
Executable File
17 lines
374 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
import { spawnSync } from 'node:child_process';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const child = spawnSync(
|
|
process.execPath,
|
|
[
|
|
'--loader',
|
|
'ts-node/esm/transpile-only',
|
|
fileURLToPath(new URL('./af.ts', import.meta.url)),
|
|
...process.argv.slice(2),
|
|
],
|
|
{ stdio: 'inherit' }
|
|
);
|
|
|
|
if (child.status) process.exit(child.status);
|