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

Commit

Permalink
fix: use npm pack in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 8, 2018
1 parent 8e17b32 commit 1a4de12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = file => {
sh.exec('node ./bin/run hello')
sh.exec('node ./bin/run')
sh.exec('node ./bin/run --help')
sh.exec('yarn run prepublishOnly')
sh.exec('npm pack')
break
case 'single':
build(cmd, name)
Expand All @@ -72,7 +72,7 @@ module.exports = file => {
sh.exec('node ./bin/run hello')
sh.exec('node ./bin/run help hello')
sh.exec('node ./bin/run hello --help')
sh.exec('yarn run prepublishOnly')
sh.exec('npm pack')
break
case 'command':
build('plugin', name)
Expand All @@ -82,14 +82,14 @@ module.exports = file => {
sh.exec('node ./bin/run foo:bar:baz')
sh.exec('node ./bin/run help foo:bar:baz')
sh.exec('node ./bin/run foo:bar:baz --help')
sh.exec('yarn run prepublishOnly')
sh.exec('npm pack')
break
case 'hook':
build('plugin', name)
generate('hook myhook --defaults --force')
sh.exec('yarn test')
sh.exec('node ./bin/run hello')
sh.exec('yarn run prepublishOnly')
sh.exec('npm pack')
break
}
})
Expand Down

0 comments on commit 1a4de12

Please sign in to comment.