From 2c1eb2faf6382e454e21e315d3970da5c6f3b2e9 Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Sat, 29 Oct 2022 01:30:25 +0530 Subject: [PATCH] fixes --- pages/api/typescript-to-json-schema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);