From 3e5a88f42dc36419cbc62d9ca57d1ca21dfbe76f Mon Sep 17 00:00:00 2001 From: Stephan Stang Date: Tue, 25 Nov 2025 15:41:46 +0100 Subject: [PATCH] added a filenamemapper , used to faster switch between filenames. --- src/vibentec/configloader.ts | 4 ++-- src/vibentec/devJsonFileNames.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 src/vibentec/devJsonFileNames.ts diff --git a/src/vibentec/configloader.ts b/src/vibentec/configloader.ts index 209e26d..8dae4ca 100644 --- a/src/vibentec/configloader.ts +++ b/src/vibentec/configloader.ts @@ -1,8 +1,8 @@ import fs from "fs" import path from "path" +import { jsonFileNames } from "./devJsonFileNames"; -//const fileName = "ste.medusa-starter.design.json"; -const fileName = "ste.playground.design.json"; +const fileName = jsonFileNames.stePlayGround; export async function loadDesignConfig() { const filePath = path.join(process.cwd(), "config", fileName) diff --git a/src/vibentec/devJsonFileNames.ts b/src/vibentec/devJsonFileNames.ts new file mode 100644 index 0000000..d2daa69 --- /dev/null +++ b/src/vibentec/devJsonFileNames.ts @@ -0,0 +1,4 @@ +export const jsonFileNames = { + steMedusaStarter: "ste.medusa-starter.design.json", + stePlayGround: "ste.playground.design.json" +}; \ No newline at end of file