(pkg)
| 1 | import { execSync } from 'child_process'; |
| 2 | |
| 3 | export function getBundleBanner(pkg) { |
| 4 | const lastCommitHash = execSync('git rev-parse --short HEAD').toString().trim(); |
| 5 | const version = process.env.SHIPJS ? pkg.version : `${pkg.version} (UNRELEASED ${lastCommitHash})`; |
| 6 | const authors = '© Algolia, Inc. and contributors'; |
| 7 | |
| 8 | return `/*! ${pkg.name} ${version} | MIT License | ${authors} | ${pkg.homepage} */`; |
| 9 | } |
no outgoing calls
no test coverage detected