Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
fix: Version hook using execa (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
IniZio committed Jan 20, 2018
1 parent 14113df commit dd79131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clipped/src/instance/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function basePreset (clipped: Object, opt: Object = {}) {

clipped.hook('version')
.add('clipped', async clipped => {
const version = await clipped.exec('npm view clipped version')
const version = await clipped.exec('npm', ['view', 'clipped', 'version'])
clipped.print(version)
})

Expand Down

0 comments on commit dd79131

Please sign in to comment.