From b80525315dc503cfeaaaecab5ed376caf11ce751 Mon Sep 17 00:00:00 2001 From: Robin Scholtes Date: Wed, 10 May 2023 23:16:32 +1200 Subject: [PATCH] return imports to original ( assert {type:json}). This stops local dev from working though --- src/core/ChefWorker.js | 3 +-- src/core/Recipe.mjs | 3 +-- src/core/lib/Magic.mjs | 3 +-- src/web/TODO.md | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/core/ChefWorker.js b/src/core/ChefWorker.js index 0bdedab5..a43993f9 100644 --- a/src/core/ChefWorker.js +++ b/src/core/ChefWorker.js @@ -7,8 +7,7 @@ */ import Chef from "./Chef.mjs"; -// @TODO dolphin: import OperationConfig from "./config/OperationConfig.json" assert {type: "json"}; -import OperationConfig from "./config/OperationConfig.json"; +import OperationConfig from "./config/OperationConfig.json" assert {type: "json"}; import OpModules from "./config/modules/OpModules.mjs"; import loglevelMessagePrefix from "loglevel-message-prefix"; diff --git a/src/core/Recipe.mjs b/src/core/Recipe.mjs index 1b981bca..3ce40aa4 100755 --- a/src/core/Recipe.mjs +++ b/src/core/Recipe.mjs @@ -4,8 +4,7 @@ * @license Apache-2.0 */ -// @TODO dolphin: import OperationConfig from "./config/OperationConfig.json" assert {type: "json"}; -import OperationConfig from "./config/OperationConfig.json"; +import OperationConfig from "./config/OperationConfig.json" assert {type: "json"}; import OperationError from "./errors/OperationError.mjs"; import Operation from "./Operation.mjs"; import DishError from "./errors/DishError.mjs"; diff --git a/src/core/lib/Magic.mjs b/src/core/lib/Magic.mjs index b6de2158..921fc3f6 100644 --- a/src/core/lib/Magic.mjs +++ b/src/core/lib/Magic.mjs @@ -1,5 +1,4 @@ -// @TODO dolphin: import OperationConfig from "../config/OperationConfig.json" assert {type: "json"}; -import OperationConfig from "../config/OperationConfig.json"; +import OperationConfig from "../config/OperationConfig.json" assert {type: "json"}; import Utils, { isWorkerEnvironment } from "../Utils.mjs"; import Recipe from "../Recipe.mjs"; import Dish from "../Dish.mjs"; diff --git a/src/web/TODO.md b/src/web/TODO.md index 3a9528f8..f1beb042 100644 --- a/src/web/TODO.md +++ b/src/web/TODO.md @@ -9,9 +9,9 @@ is expanded and double click the window to fs > resolve. Reset layout ### JS: -- `core/Recipe.mjs`, `core/lib/Magic.js` return imports to original +- `core/Recipe.mjs`, `core/lib/Magic.js`, `core/ChefWorker.js` return imports to original +> but then dev wont run anymore :( ### Misc: -- Gruntfile revert dev config - delete this file when done :)