Comparing version 1.2.0 to 1.3.0
@@ -13,3 +13,4 @@ #!/usr/bin/env node | ||
{ | ||
alias: {'c': 'create', 'b': 'barrel'}, | ||
alias: {'c': 'create', 'b': 'barrel', 'v': 'version', 'h': 'help'}, | ||
boolean: ['version', 'help'], | ||
default: {barrel: 'index.ts'} | ||
@@ -19,2 +20,20 @@ } | ||
if (config.version) { | ||
console.log("1.3.0"); | ||
process.exit(0); | ||
} | ||
if (config.help) { | ||
console.log(` | ||
Usage: | ||
ng g c foo | ngb [options] | ||
Options: | ||
-h, --help print usage information | ||
-v, --version show version info and exit | ||
-c, --create define path to put index file | ||
-b, --barrel define barrel file name`); | ||
process.exit(0); | ||
} | ||
stdin.on('data', function (chunk) { | ||
@@ -21,0 +40,0 @@ data += chunk; |
{ | ||
"name": "ng-barrel", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "CLI tool to add generated Angular files to barrel files", | ||
@@ -5,0 +5,0 @@ "main": "ng-barrel.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8680
128