diff --git a/api/src/services/contentful.service.ts b/api/src/services/contentful.service.ts index 62cf4e5b2..fb220820b 100644 --- a/api/src/services/contentful.service.ts +++ b/api/src/services/contentful.service.ts @@ -14,7 +14,6 @@ import jsonRTE from "./contentful/jsonRTE.js"; import { getAllLocales, getLogMessage } from "../utils/index.js"; import customLogger from "../utils/custom-logger.utils.js"; - const { DATA, // DIR diff --git a/api/src/services/sitecore.service.ts b/api/src/services/sitecore.service.ts index 24757e6a7..539291442 100644 --- a/api/src/services/sitecore.service.ts +++ b/api/src/services/sitecore.service.ts @@ -13,7 +13,6 @@ import { getLogMessage } from '../utils/index.js'; import customLogger from '../utils/custom-logger.utils.js'; import { getSafePath } from '../utils/sanitize-path.utils.js'; - const append = 'a'; const baseDirName = MIGRATION_DATA_CONFIG.DATA; const { diff --git a/api/src/services/wordpress.service.ts b/api/src/services/wordpress.service.ts index efaff7778..72b517c6e 100644 --- a/api/src/services/wordpress.service.ts +++ b/api/src/services/wordpress.service.ts @@ -10,7 +10,6 @@ import { getLogMessage } from "../utils/index.js"; import { v4 as uuidv4 } from "uuid"; import { orgService } from "./org.service.js"; - const { JSDOM } = jsdom; const virtualConsole = new jsdom.VirtualConsole(); // Get the current file's path diff --git a/remove-broken-imports.js b/remove-broken-imports.js index f60702305..f19b14e18 100644 --- a/remove-broken-imports.js +++ b/remove-broken-imports.js @@ -2,7 +2,7 @@ const fs = require('fs'); const path = require('path'); const exts = ['.js', '.ts', '.tsx']; -const targetDirs = ['api']; +const targetDirs = ['api','ui','upload-api']; function resolveImport(importPath, fileDir) { const absPath = path.resolve(fileDir, importPath);