You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a side note, I was able to solve the problem using the script below, but am still curious if the CLI supports the functionality natively:
// RUN THIS FROM THE ROOT OF THE JSON SCHEMA DIRECTORY.varJS2TS=require("json-schema-to-typescript");varglob=require("glob");// npm install glob --savevarfs=require("fs");glob("./*.json",function(err,files){if(err){console.log(err);console.log(files);}else{files.map(function(file){JS2TS.compileFromFile(file).then(function(data){varnewFile=file.split(".")newFile.pop();fs.writeFileSync("./"+newFile.join("")+".d.ts",data);});});}});
Hi,
Thanks for the great library, and sorry if this question has already been answered in the docs (I was not able to find anything as far as I know).
Is it possible to perform batch compilation? For example, with the following directory structure:
is it possible to create the following output?
Thanks again for all the great work on this project. It's very much appreciated.
The text was updated successfully, but these errors were encountered: