Fix build chain to use package.json