File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import * as path from "@std/path" ;
2- import type { ResolvedFreshConfig } from "./config.ts" ;
2+ import { getSnapshotPath , type ResolvedFreshConfig } from "./config.ts" ;
33import { DENO_DEPLOYMENT_ID , setBuildId } from "./runtime/build_id.ts" ;
44import * as colors from "@std/fmt/colors" ;
55
@@ -30,7 +30,7 @@ export interface BuildCache {
3030
3131export class ProdBuildCache implements BuildCache {
3232 static async fromSnapshot ( config : ResolvedFreshConfig , islandCount : number ) {
33- const snapshotPath = path . join ( config . build . outDir , "snapshot.json" ) ;
33+ const snapshotPath = getSnapshotPath ( config ) ;
3434
3535 const staticFiles = new Map < string , FileSnapshot > ( ) ;
3636 const islandToChunk = new Map < string , string > ( ) ;
Original file line number Diff line number Diff line change 11import type { BuildCache , StaticFile } from "../build_cache.ts" ;
22import * as path from "@std/path" ;
33import { SEPARATOR as WINDOWS_SEPARATOR } from "@std/path/windows/constants" ;
4- import type { ResolvedFreshConfig } from "../config.ts" ;
4+ import { getSnapshotPath , type ResolvedFreshConfig } from "../config.ts" ;
55import type { BuildSnapshot } from "../build_cache.ts" ;
66import { encodeHex } from "@std/encoding/hex" ;
77import { crypto } from "@std/crypto" ;
@@ -284,7 +284,7 @@ export class DiskBuildCache implements DevBuildCache {
284284 }
285285
286286 await Deno . writeTextFile (
287- path . join ( this . config . build . outDir , "snapshot.json" ) ,
287+ getSnapshotPath ( this . config ) ,
288288 JSON . stringify ( snapshot , null , 2 ) ,
289289 ) ;
290290 }
You can’t perform that action at this time.
0 commit comments