Skip to content

Commit 84b663c

Browse files
committed
fix: lodash import #41
1 parent b7d588f commit 84b663c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/prepare.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Options } from 'execa';
22
import fs from 'fs';
3-
import { template } from 'lodash';
3+
import _ from 'lodash';
44
import os from 'os';
55
import path from 'path';
66
import type { Context } from './@types/semantic-release/index.js';
@@ -113,7 +113,7 @@ async function prepare(pluginConfig: PluginConfig, context: Context) {
113113
const version = await normalizeVersion(nextRelease.version, execaOptions);
114114

115115
if (versionCmd) {
116-
const cmd = template(versionCmd)({ version });
116+
const cmd = _.template(versionCmd)({ version });
117117
logger.log(`Running versionCmd: ${cmd}`);
118118
const [file, ...args] = cmd.split(' ');
119119
await assertExitCode(file, args, { ...execaOptions, cwd: srcDir }, 0);

0 commit comments

Comments
 (0)