Skip to content

Commit

Permalink
modified package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentine-Mario committed Jun 26, 2019
1 parent a32050b commit 19dc9f0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "commander-cli",
"version": "1.0.0",
"description": "a simple cli tool",
"main": "index.js",
"name": "typescript-generator",
"version": "1.1.0",
"description": "a simple cli tool to help you generate typescript setup",
"main": "tssg.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node tssg.js"
},
"preferGlobal": true,
"bin": {
"tssg": "tssg.js"
},
"author": "Valentine Oragbakosi",
"license": "ISC",
Expand Down
13 changes: 7 additions & 6 deletions tssg.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ program


if(program.create) {
fse.copy('./setup', `./${`-%s create`, program.create}`, err=>{
console.log(`Typescript setup created`);
console.log(`cd ${`-%s create`, program.create}`);
console.log(`npm install`)
})

try{
fse.copySync('./setup', `./${`-%s create`, program.create}`)
console.log(`cd ${`-%s create`, program.create}`);
console.log(`npm install`)
}catch(err){
console.log(err)
}
rl.close();
}

0 comments on commit 19dc9f0

Please sign in to comment.