added a filenamemapper , used to faster switch between filenames.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export const jsonFileNames = {
|
||||
steMedusaStarter: "ste.medusa-starter.design.json",
|
||||
stePlayGround: "ste.playground.design.json"
|
||||
};
|
||||
Reference in New Issue
Block a user