subql icon indicating copy to clipboard operation
subql copied to clipboard

fix: JSON and directory handling

Open mdqst opened this issue 3 months ago • 0 comments

Description

I’ve improved the scripts to handle JSON and directory checks more reliably:

  • while read loops now run in the current process using process substitution, so file updates work correctly.
  • added checks for missing directories in tsconfig.json to prevent errors.
  • version checks now handle empty or null values from package.json properly.
  • removed the -r flag when modifying JSON with jq to 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

mdqst avatar Sep 18 '25 10:09 mdqst