96b5a079ff
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
16 lines
465 B
TypeScript
16 lines
465 B
TypeScript
import { App } from "../../app/app"
|
|
import { VERSION } from "../version"
|
|
import { cmd } from "./cmd"
|
|
|
|
export const ScrapCommand = cmd({
|
|
command: "scrap <file>",
|
|
builder: (yargs) =>
|
|
yargs.positional("file", { type: "string", demandOption: true }),
|
|
describe: "test command",
|
|
async handler() {
|
|
await App.provide({ cwd: process.cwd(), version: VERSION }, async (app) => {
|
|
Bun.resolveSync("typescript/lib/tsserver.js", app.path.cwd)
|
|
})
|
|
},
|
|
})
|