Skip to content

Commit

Permalink
chore: use name req
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Feb 15, 2024
1 parent 09f2dec commit d739bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/release-it-pnpm/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import fg from 'fast-glob'
import { Plugin } from 'release-it'
import { parse } from 'yaml'

const require = module.createRequire(import.meta.url)
const req = module.createRequire(import.meta.url)

const prompts = {
bump: {
Expand Down Expand Up @@ -58,7 +58,7 @@ class ReleaseItPnpmPlugin extends Plugin {

const absPaths = entries.map(entry => path.join(cwd, entry))
for (const absPath of absPaths) {
const pkg = require(absPath)
const pkg = req(absPath)
const version = pkg.version
const isPrivate = pkg.private
const name = pkg.name
Expand Down

0 comments on commit d739bce

Please sign in to comment.