Skip to content

Commit

Permalink
fix(cli): migrate path changes also over to cli script
Browse files Browse the repository at this point in the history
release-npm
  • Loading branch information
tobua committed Jul 2, 2023
1 parent 8e4bf72 commit f7c7f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { cachePath } from './config.js'

// Remove additional parameter when used with flag like --yes in older node versions.
if (process.argv[2] === 'now') {
process.argv.splice(2, 1)
process.argv.splice(2, 1)
}
// eslint-disable-next-line prefer-const
let [packageName, destination, template = 'default', ...variableArguments] = process.argv.slice(2)

packageName = validatePackageName(packageName)
destination = getDestinationPath(destination)
destination = await getDestinationPath(destination)
const cache = cachePath(`${packageName}-${template}`)

cleanup(cache)
Expand Down

0 comments on commit f7c7f41

Please sign in to comment.