office-addin-cli
Advanced tools
Comparing version 0.2.0 to 0.2.1
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
// | ||
// The intension of the file is to avoid error during "npm install" in the root directory. | ||
// package.json bin field calls into this file first. If ./lib/cli.js is used directly, | ||
// lerna bootstrap will cause an error. | ||
// If the package.json bin config specifies a file in the lib folder, it will cause an | ||
// error during "npm install" if the lib folder doesn't exist (because the package hasn't been built yet). | ||
// It specifies this file instead which then calls into the file in the lib folder. | ||
require("./lib/cli.js"); |
#!/usr/bin/env node | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const commander = require("commander"); | ||
commander.parse(process.argv); | ||
const log_1 = require("./log"); | ||
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.on("command:*", function () { | ||
log_1.logErrorMessage(`The command syntax is not valid.\n`); | ||
process.exitCode = 1; | ||
commander.help(); | ||
}); | ||
if (process.argv.length > 2) { | ||
commander.parse(process.argv); | ||
} | ||
else { | ||
commander.help(); | ||
} | ||
//# sourceMappingURL=cli.js.map |
{ | ||
"name": "office-addin-cli", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A command-line interface for Office Add-ins.", | ||
"main": "./lib/main.js", | ||
"scripts": { | ||
"cli": "node lib/cli.js", | ||
"tsc": "tsc -p tsconfig.json", | ||
@@ -45,3 +46,3 @@ "tsc-watch": "tsc -p tsconfig.json -w", | ||
}, | ||
"gitHead": "416db4c11018473074697acfd47b283b8e43c220" | ||
"gitHead": "6e786084d8a03f7373f1e73f3bf4e9d22e842aff" | ||
} |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
7050
75
1