diff --git a/pages/api/typescript-to-json-schema.ts b/pages/api/typescript-to-json-schema.ts index a70ca54..604d208 100644 --- a/pages/api/typescript-to-json-schema.ts +++ b/pages/api/typescript-to-json-schema.ts @@ -18,7 +18,9 @@ export default async (req: NextApiRequest, res: NextApiResponse) => { encoding: "utf-8" }); - const stdout = await _exec(`typescript-json-schema ${filePath} Root`); + const stdout = await _exec( + `./node_modules/.bin/typescript-json-schema ${filePath} Root` + ); res.status(200).send(stdout.stdout); } catch (e) { res.status(500).send(e.message);