It is good practice to follow at first the package.json main file instead to load the default file.
This can avoid relative path issues.
e.g
build: ./herkules node-conpose should looking for the main file in the package section. If no package.json exists fallback to default behaviour 'index.js'