Download next.js/packages/next/src/build/write-build-id.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/write-build-id.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/build/write-build-id.ts
-
curl -L -o write-build-id.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/build/write-build-id.ts
317 Bytes
| import { promises } from 'fs' | |
| import { join } from 'path' | |
| import { BUILD_ID_FILE } from '../shared/lib/constants' | |
| export async function writeBuildId( | |
| distDir: string, | |
| buildId: string | |
| ): Promise<void> { | |
| const buildIdPath = join(distDir, BUILD_ID_FILE) | |
| await promises.writeFile(buildIdPath, buildId, 'utf8') | |
| } | |