validate and modify some files the io-ts way.
This is my exploration on how to do the thing.
npm itThis command checks that the files inside /files are valid. The commited one are valid, feel free to try to experiment with them.
npm run vers <hero> <new version>The corresponding file in ./files is modified based on value provided. If the hero is present in both files it will be updated with the same version in both of the files.
the arguments are positionals and are validated. Same for the files inside the folder.
npm run vers wonder-woman 3.0.1 npm run vers wonderWoman 3.0.1 npm run vers wonder-woman npm run vers wonder-woman 3.0.1This will update the value in both files
npm run vers capitan-marvel 3.9.1