Currently with dummy chain types file a project will build correctly but the project will not be valid to run. We should consider running validation before building.
To reproduce:
- Init a starter project
- Add an invalid chaintypes file (eg json) to the project manifest
- Build (
yarn && yarn codegen && yarn build
- Build should work fine but when running
subql validate it will fail
Solution:
Add a prebuild script to package.json which runs node dependencies subql validate
Currently with dummy chain types file a project will build correctly but the project will not be valid to run. We should consider running validation before building.
To reproduce:
yarn && yarn codegen && yarn buildsubql validateit will failSolution:
Add a prebuild script to
package.jsonwhich runs node dependenciessubql validate