From 804161459ab0b8f20b5f46420b6a886b53670fb5 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 12 Sep 2023 19:15:45 +0100 Subject: [PATCH] style(scripts/license-checker): destruct upath module import --- scripts/license-checker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/license-checker.js b/scripts/license-checker.js index e84d143..732ad78 100644 --- a/scripts/license-checker.js +++ b/scripts/license-checker.js @@ -8,7 +8,7 @@ const { init } = require("license-checker"); /** @type {string[]} */ // @ts-ignore: module is a JSON file const copyLeftLicenses = require("spdx-copyleft"); -const path = require("upath"); +const { joinSafe } = require("upath"); const check = promisify(init); @@ -57,7 +57,7 @@ async function checkLicenses() { const licenses = await check({ direct: true, production: true, - start: path.joinSafe(__dirname, ".."), + start: joinSafe(__dirname, ".."), }); const copyLeftLicensesList = Object.keys(licenses).filter((license) =>