mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 04:26:57 +00:00
Bugfix: Updated json2ts script to avoid empty files from generating (#1342)
* Bugfix: Updated json2ts script to avoid empty files from generating * Added TS generation script to build script * Removing json2ts from build script
This commit is contained in:
parent
f6dfc62a4b
commit
4fa46156cc
@ -34,7 +34,12 @@ getTypes(){
|
||||
fileTS=${f//.json/.ts}
|
||||
fileTS=${fileTS//$2/$3}
|
||||
mkdir -p "$(dirname "$fileTS")" && quicktype -s schema "$f" -o "$fileTS" --just-types
|
||||
addLicensing "$fileTS"
|
||||
if [[ -s $fileTS ]]
|
||||
then
|
||||
addLicensing "$fileTS"
|
||||
else
|
||||
rm -f $fileTS
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user