From a801686e9cbb5a2c9de0aec72775252086268b36 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Tue, 4 Nov 2025 16:02:53 +0100 Subject: [PATCH] docs(build-id): add code block example (#3600) Adds a module doc and code block to help satisfy JSR's scoring. Suggestions for alternatives or improvements very welcome. Part of #3597 --- packages/build-id/mod.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/build-id/mod.ts b/packages/build-id/mod.ts index ccc191e5..0778a5d7 100644 --- a/packages/build-id/mod.ts +++ b/packages/build-id/mod.ts @@ -1,3 +1,17 @@ +/** + * Don't use this package directly. It's considered internal for Fresh. + * + * @example + * ```ts + * // `BUILD_ID` is based on the `DENO_DEPLOYMENT_ID` environment variable. + * ``` + * + * @see https://fresh.deno.dev/docs/deployment/docker + * + * @module + * @private + */ + import { encodeHex } from "@std/encoding/hex"; export const DENO_DEPLOYMENT_ID: string | undefined = Deno.env.get(