subql
subql copied to clipboard
fix: JSON and directory handling
Description
I’ve improved the scripts to handle JSON and directory checks more reliably:
while readloops now run in the current process using process substitution, so file updates work correctly.- added checks for missing directories in
tsconfig.jsonto prevent errors. - version checks now handle empty or
nullvalues frompackage.jsonproperly. - removed the
-rflag when modifying JSON withjqto preserve the correct structure.
these changes ensure the scripts run smoothly without failing on missing paths or malformed JSON.
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist
- [x] I have tested locally
- [x] I have performed a self review of my changes
- [x] My code is up to date with the base branch