feat(plugin-cli): add cli af (#3465)

This commit is contained in:
Alex Yang
2023-07-30 11:10:45 -07:00
committed by GitHub
parent 568d5e4cdf
commit 18fcaff5ee
27 changed files with 469 additions and 59 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/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);