Skip to content

Commit

Permalink
fix(custom-changelog): fix import of cjs lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchubert committed Jun 11, 2024
1 parent 5fa67ba commit cf044b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/custom-changelog/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import SemanticReleaseError from '@semantic-release/error';
import fs from 'node:fs';
import path from 'node:path';
import resolveOptions from './resolve-options.js';
import { template } from 'lodash';
import _ from 'lodash';

export default async (options, context) => {
const { commits, env: { CUSTOM_CHANGELOG_ENABLED }, logger } = context;
Expand All @@ -18,7 +18,7 @@ export default async (options, context) => {
// Format to expected format
.map((commit) => ({
date: new Date(commit.committerDate).toLocaleDateString(locale),
description: [template(filter)(commit)]
description: [_.template(filter)(commit)]
}))
// Remove empty descriptions
.filter(({ description }) => !!description[0])
Expand Down

0 comments on commit cf044b4

Please sign in to comment.