patch bump, fix unexpected process, console error on fail
This commit is contained in:
parent
104bbc8416
commit
b7944eb89c
2 changed files with 3 additions and 4 deletions
3
cli.js
3
cli.js
|
@ -9,7 +9,6 @@ const argv = require('yargs')
|
|||
.alias('help', 'h')
|
||||
.help()
|
||||
.version()
|
||||
.wrap(process.stdout.columns)
|
||||
.argv
|
||||
|
||||
let [src, dest] = argv._
|
||||
|
@ -19,6 +18,6 @@ svgdir2sprite(src, dest)
|
|||
if (dest) {
|
||||
console.log('Spritesheet successfully generated as ' + dest)
|
||||
} else {
|
||||
console.log(svgContents)
|
||||
console.error(svgContents)
|
||||
}
|
||||
})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "svgdir2sprite",
|
||||
"version": "1.0.4",
|
||||
"description": "Creates a spritesheet from a directory of svgs.",
|
||||
"repository": "sharpshark28/svgdir2sprite",
|
||||
"repository": "git@gitlab.com:gaiety/svgdir2sprite.git",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"svgdir2sprite": "./cli.js"
|
||||
|
@ -19,7 +19,7 @@
|
|||
"icon",
|
||||
"icons"
|
||||
],
|
||||
"author": "Joe Wroten <joe@wroten.me> (https://www.wroten.me/)",
|
||||
"author": "Ava Gaiety W. <ava@wroten.me> (https://gaiety.me/)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"async": "^2.6.1",
|
||||
|
|
Loading…
Add table
Reference in a new issue