chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -51,9 +51,7 @@ const readCommitFromPackageJson = () => {
|
||||
}
|
||||
};
|
||||
|
||||
export const resolveCommitHash = (
|
||||
options: { cwd?: string; env?: NodeJS.ProcessEnv } = {},
|
||||
) => {
|
||||
export const resolveCommitHash = (options: { cwd?: string; env?: NodeJS.ProcessEnv } = {}) => {
|
||||
if (cachedCommit !== undefined) return cachedCommit;
|
||||
const env = options.env ?? process.env;
|
||||
const envCommit = env.GIT_COMMIT?.trim() || env.GIT_SHA?.trim();
|
||||
|
||||
Reference in New Issue
Block a user