Skip to content

Commit

Permalink
refactor: convert to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanabaroa committed Feb 25, 2024
1 parent 4c59b65 commit 1f198e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/release-body.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const {execSync} = require('child_process')
const path = require('path')
const conventionalChangelog = path.join('node_modules', '.bin', 'conventional-changelog')
import {execSync} from 'child_process'
import path from 'path'
import {fileURLToPath} from 'url'
const dirname = path.join(path.dirname(fileURLToPath(import.meta.url)))
const conventionalChangelog = path.join(dirname, '..', 'node_modules', '.bin', 'conventional-changelog')

// sometimes release-count 1 is empty
let releaseChangelog =
Expand Down

0 comments on commit 1f198e0

Please sign in to comment.