other litte fixes

This commit is contained in:
Tommy Parnell
2022-07-23 17:25:04 -04:00
parent 452e03fffe
commit 5e910c5049
3 changed files with 8 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import { widgets } from './widgets';
const program = new Command();
program.description('Our New CLI');
program.option('-v, --verbose', 'verbose logging');
program.version('0.0.1');
program.version('0.0.1', '--version', 'output the current version');
program.addCommand(widgets);
async function main() {

8
package-lock.json generated
View File

@@ -9,7 +9,6 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"@types/node": "^18.0.3",
"commander": "^9.3.0",
"esbuild": "^0.14.48",
"ora": "^6.1.2"
@@ -18,13 +17,15 @@
"terribledev": "dist/index.js"
},
"devDependencies": {
"@types/node": "^18.0.3",
"typescript": "^4.7.4"
}
},
"node_modules/@types/node": {
"version": "18.0.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.3.tgz",
"integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ=="
"integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ==",
"dev": true
},
"node_modules/ansi-regex": {
"version": "6.0.1",
@@ -693,7 +694,8 @@
"@types/node": {
"version": "18.0.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.3.tgz",
"integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ=="
"integrity": "sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ==",
"dev": true
},
"ansi-regex": {
"version": "6.0.1",

View File

@@ -11,7 +11,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@types/node": "^18.0.3",
"commander": "^9.3.0",
"esbuild": "^0.14.48",
"ora": "^6.1.2"
@@ -20,6 +19,7 @@
"terribledev": "./dist/index.js"
},
"devDependencies": {
"typescript": "^4.7.4"
"typescript": "^4.7.4",
"@types/node": "^18.0.3"
}
}