Running node as entrypoint instead of ts-node will most probably
result in some ESM-related problems down the road.
For some reason, I used cwd for optstooling-scripts as
opstooling-js's directory. That doesn't go well in other repos.
Added modification of NODE_PATH to ensure that scripts in
opstooling-js get their own deps.
Specified tsconfig.json in parameters, so it would be always right
one
generate-types didn't want to work with joi of different versions
in opstooling-js and the target repo. Aligned the versions.
This'll probably happen again, but good thing is, we'll notice it only
when we'll change schemas (as we commit the results)
Added prettier to deps: prettier is used in generate-types, and it must be in deps for it to work in other repositories
Problems found:
cwd
foroptstooling-scripts
asopstooling-js
's directory. That doesn't go well in other repos.opstooling-js
get their own deps.joi
of different versions inopstooling-js
and the target repo. Aligned the versions. This'll probably happen again, but good thing is, we'll notice it only when we'll change schemas (as we commit the results)