@@ -6,8 +6,6 @@ import * as process from 'node:process'
66import { version as packageVersion } from '../package.json'
77import { getNextVersion } from '../scripts/next-version'
88
9- export { packageVersion as version }
10-
119/**
1210 * Environment variable `PULL_REQUEST` provided by Netlify.
1311 * @see {@link https://docs.netlify.com/build/configure-builds/environment-variables/#git-metadata }
@@ -17,7 +15,7 @@ export { packageVersion as version }
1715 *
1816 * Whether triggered by a GitHub PR
1917 */
20- export const isPR = process . env . PULL_REQUEST === 'true' || ! ! process . env . VERCEL_GIT_PULL_REQUEST_ID
18+ const isPR = process . env . PULL_REQUEST === 'true' || ! ! process . env . VERCEL_GIT_PULL_REQUEST_ID
2119
2220/**
2321 * Environment variable `REVIEW_ID` provided by Netlify.
@@ -28,7 +26,7 @@ export const isPR = process.env.PULL_REQUEST === 'true' || !!process.env.VERCEL_
2826 *
2927 * Pull request number (if in a PR environment)
3028 */
31- export const prNumber = process . env . REVIEW_ID || process . env . VERCEL_GIT_PULL_REQUEST_ID || null
29+ const prNumber = process . env . REVIEW_ID || process . env . VERCEL_GIT_PULL_REQUEST_ID || null
3230
3331/**
3432 * Environment variable `BRANCH` provided by Netlify.
@@ -39,7 +37,7 @@ export const prNumber = process.env.REVIEW_ID || process.env.VERCEL_GIT_PULL_REQ
3937 *
4038 * Git branch
4139 */
42- export const gitBranch = process . env . BRANCH || process . env . VERCEL_GIT_COMMIT_REF
40+ const gitBranch = process . env . BRANCH || process . env . VERCEL_GIT_COMMIT_REF
4341
4442/**
4543 * Whether this is the canary environment (main.npmx.dev).
@@ -68,7 +66,7 @@ export const isCanary =
6866 *
6967 * Whether this is some sort of preview environment.
7068 */
71- export const isPreview =
69+ const isPreview =
7270 isPR ||
7371 ( process . env . CONTEXT && process . env . CONTEXT !== 'production' ) ||
7472 process . env . VERCEL_ENV === 'preview' ||
@@ -118,7 +116,7 @@ export const getProductionUrl = () =>
118116 : undefined
119117
120118const git = Git ( )
121- export async function getGitInfo ( ) {
119+ async function getGitInfo ( ) {
122120 let branch
123121 try {
124122 branch = gitBranch || ( await git . revparse ( [ '--abbrev-ref' , 'HEAD' ] ) )
0 commit comments