diff --git a/bin/index.js b/bin/index.js index d6569ff..7ba0870 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,12 +1,11 @@ #!/usr/bin/env node import { release, publish, changelog, commitLint } from '../dist/index.js' import { Command } from 'commander' -import { fileURLToPath } from 'url' import fse from 'fs-extra' const program = new Command() -const packageJson = fse.readJSONSync(fileURLToPath(new URL('../package.json', import.meta.url))) +const packageJson = fse.readJSONSync(new URL('../package.json', import.meta.url)) program.version(packageJson.version)