This commit is contained in:
Ritesh Kumar committed 2022-10-29 01:30:25 +05:30
1 parent 4224032034
commit 2c1eb2faf6
1 file changed
+3 -1
+3 -1
View File
@@ -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);