Replace script files with entries in package.json
Run build before tests in CI