From 172477bf308e5c6eaafa56996e5233c60c7af7fa Mon Sep 17 00:00:00 2001 From: Filip Pospisil Date: Sun, 13 Oct 2024 21:33:35 +0200 Subject: [PATCH] fix postintall 3 --- scripts/postinstall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index c8832e61..450f6c9f 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -2,7 +2,8 @@ const LSP_SERVER_VERSION = "1.26.0-SNAPSHOT"; -import { download } from "mvn-artifact-download"; // Named export +import pkg from "mvn-artifact-download"; // Default import +const { default: download } = pkg; // Destructure the download function import * as fs from 'fs'; import * as path from 'path';