From d7d3a1fd20ca5d45a5f213243aeb47701dbe5025 Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Mon, 27 May 2024 11:54:00 -0700 Subject: [PATCH] Fixes lodash import that isn't playing nice with ESM --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 90dbe07..97703cc 100644 --- a/index.js +++ b/index.js @@ -5,11 +5,12 @@ import { EOL } from 'os'; import fs from 'fs'; import which from 'which'; import { Plugin } from 'release-it'; -import template from 'lodash/template'; +import _ from 'lodash'; import tmp from 'tmp'; import execa from 'execa'; import { fromMarkdown } from 'mdast-util-from-markdown'; +const template = _.template; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename);