From 79e667e8f9a3e699f4204d0aec2402eb10b56f22 Mon Sep 17 00:00:00 2001 From: Yavor Ivanov Date: Tue, 9 Apr 2024 15:38:55 +0300 Subject: [PATCH] refactor: Reorder modules --- scripts/metadataProvider/createPseudoModulesInfo.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/metadataProvider/createPseudoModulesInfo.ts b/scripts/metadataProvider/createPseudoModulesInfo.ts index 8ae66114a..913bf91d3 100644 --- a/scripts/metadataProvider/createPseudoModulesInfo.ts +++ b/scripts/metadataProvider/createPseudoModulesInfo.ts @@ -1,15 +1,15 @@ -import {pipeline} from "node:stream/promises"; +import {createRequire} from "module"; +import {createWriteStream} from "node:fs"; +import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; import https from "node:https"; -import yauzl from "yauzl-promise"; import path from "node:path"; +import {pipeline} from "node:stream/promises"; +import yauzl from "yauzl-promise"; import MetadataProvider from "./MetadataProvider.js"; -import {writeFile, readdir, mkdir, unlink} from "node:fs/promises"; -import {createWriteStream} from "node:fs"; -import {createRequire} from "module"; -const require = createRequire(import.meta.url); import type {UI5Enum, UI5EnumValue} from "@ui5-language-assistant/semantic-model-types"; +const require = createRequire(import.meta.url); const RAW_API_JSON_FILES_FOLDER = "tmp/apiJson"; async function fetchAndExtractAPIJsons(url: string) {