Initial commit
CI / check (push) Successful in 56s

This commit is contained in:
rudder
2026-08-12 14:02:25 +03:00
commit 3ab2d4a6cf
85 changed files with 10257 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { resolve } from 'node:path';
import type { SeedArtifact } from './types.js';
export const ARTIFACT_PATH = resolve(process.cwd(), '.e2e-prod.local.json');
export function writeArtifact(artifact: SeedArtifact): void {
writeFileSync(ARTIFACT_PATH, JSON.stringify(artifact, null, 2));
}
export function readArtifact(): SeedArtifact | null {
if (!existsSync(ARTIFACT_PATH)) return null;
return JSON.parse(readFileSync(ARTIFACT_PATH, 'utf8')) as SeedArtifact;
}
export function removeArtifact(): void {
if (existsSync(ARTIFACT_PATH)) rmSync(ARTIFACT_PATH);
}