From 6de63fa1183706070e43d35c46c01473b14ebc8b Mon Sep 17 00:00:00 2001 From: mrkarimoff Date: Wed, 24 Jan 2024 15:20:28 +0500 Subject: [PATCH] add node:path to import statement in exportFile.js --- lib/network-exporters/exportFile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/network-exporters/exportFile.js b/lib/network-exporters/exportFile.js index 3b540d863..d6b748a7e 100644 --- a/lib/network-exporters/exportFile.js +++ b/lib/network-exporters/exportFile.js @@ -1,5 +1,5 @@ import fs from 'node:fs'; -import path from 'path'; +import { join } from 'node:path'; import { ExportError } from './errors/ExportError'; import { getFileExtension, makeFilename } from './utils/general'; import getFormatterClass from './utils/getFormatterClass'; @@ -56,7 +56,7 @@ const exportFile = ( extension, ); - const filePath = path.join(outDir, outputName); + const filePath = join(outDir, outputName); const writeStream = fs.createWriteStream(filePath);