office-addin-cli
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,23 +5,21 @@ #!/usr/bin/env node | ||
// Licensed under the MIT license. | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const commander_1 = __importDefault(require("commander")); | ||
const commander_1 = require("commander"); | ||
const office_addin_usage_data_1 = require("office-addin-usage-data"); | ||
/* global process */ | ||
commander_1.default.name("office-addin-cli"); | ||
commander_1.default.version(process.env.npm_package_version || "(version not available)"); | ||
const commander = new commander_1.Command(); | ||
commander.name("office-addin-cli"); | ||
commander.version(process.env.npm_package_version || "(version not available)"); | ||
// if the command is not known, display an error | ||
commander_1.default.on("command:*", function () { | ||
commander.on("command:*", function () { | ||
(0, office_addin_usage_data_1.logErrorMessage)(`The command syntax is not valid.\n`); | ||
process.exitCode = 1; | ||
commander_1.default.help(); | ||
commander.help(); | ||
}); | ||
if (process.argv.length > 2) { | ||
commander_1.default.parse(process.argv); | ||
commander.parse(process.argv); | ||
} | ||
else { | ||
commander_1.default.help(); | ||
commander.help(); | ||
} | ||
//# sourceMappingURL=cli.js.map |
{ | ||
"name": "office-addin-cli", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A command-line interface for Office Add-ins.", | ||
@@ -24,3 +24,3 @@ "main": "./lib/main.js", | ||
"dependencies": { | ||
"commander": "^6.2.1", | ||
"commander": "^13.0.0", | ||
"node-fetch": "^2.6.1", | ||
@@ -30,14 +30,14 @@ "read-package-json-fast": "^2.0.2" | ||
"devDependencies": { | ||
"@types/mocha": "^8.2.2", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^14.17.2", | ||
"@types/node-fetch": "^2.5.10", | ||
"concurrently": "^6.2.2", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-office-addins": "^4.0.1", | ||
"concurrently": "^9.0.0", | ||
"eslint": "^9.0.0", | ||
"eslint-plugin-office-addins": "^4.0.2", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"mocha": "^9.1.1", | ||
"mocha": "^11.0.1", | ||
"office-addin-prettier-config": "^2.0.0", | ||
"office-addin-usage-data": "^2.0.1", | ||
"office-addin-usage-data": "^2.0.2", | ||
"prettier": "^2.1.2", | ||
"rimraf": "^3.0.2", | ||
"rimraf": "^6.0.1", | ||
"ts-node": "^10.9.1", | ||
@@ -55,3 +55,3 @@ "typescript": "^4.7.4", | ||
"prettier": "office-addin-prettier-config", | ||
"gitHead": "8a6aef73e5cea7aa8ca71023a86e06f6290cb80d" | ||
"gitHead": "05fbb226e1de4c8c0038dda07ef7e54c17ef74fd" | ||
} |
Sorry, the diff of this file is not supported yet
13434
199
+ Addedcommander@13.0.0(transitive)
- Removedcommander@6.2.1(transitive)
Updatedcommander@^13.0.0