fix: harden prerender publication boundary
This commit is contained in:
14
scripts/safe-publication.d.mts
Normal file
14
scripts/safe-publication.d.mts
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface DirectoryIdentity {
|
||||
dev: number;
|
||||
ino: number;
|
||||
}
|
||||
|
||||
export function captureDirectoryIdentity(path: string): Promise<DirectoryIdentity>;
|
||||
export function publishStagedDirectory(options: {
|
||||
repositoryRoot: string;
|
||||
finalRoot: string;
|
||||
stagingRoot: string;
|
||||
expectedStagingIdentity: DirectoryIdentity;
|
||||
renameDirectory?: (from: string, to: string) => Promise<void>;
|
||||
beforeCommit?: () => Promise<void>;
|
||||
}): Promise<void>;
|
||||
Reference in New Issue
Block a user