fix(cli): update cli files to be in line with gitzone cli template
This commit is contained in:
parent
edde87b6be
commit
db0b38bd7b
3
cli.js
Normal file
3
cli.js
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.CLI_CALL = 'true';
|
||||
require('./dist/index');
|
4
cli.ts.js
Normal file
4
cli.ts.js
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
process.env.CLI_CALL = 'true';
|
||||
require('@gitzone/tsrun');
|
||||
require('./ts/index');
|
@ -5,12 +5,12 @@
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"bin": {
|
||||
"npmci": "dist/cli.js"
|
||||
"npmci": "cli.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "(rm -f config.json) && tstest test/",
|
||||
"build": "(rm -f config.json) && tsbuild && (npm run testVersion)",
|
||||
"testVersion": "(cd test/assets/ && node ../../dist/cli.js -v)"
|
||||
"testVersion": "(cd test/assets/ && node ../../cli.js -v)"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user