mirror of
https://github.com/ritz078/transform.git
synced 2026-11-23 01:12:07 +03:00
fixes
This commit is contained in:
1 parent
4224032034
commit
2c1eb2faf6
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user