Socket
Socket
Sign inDemoInstall

@lerna-dockerize/cli

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna-dockerize/cli - npm Package Compare versions

Comparing version 0.9.0-build.6d2a683.0 to 0.9.0-build.a11499b.0

README.md

4

dist/index.d.ts
import { CommandModule } from 'yargs';
export declare function cli(commands: CommandModule<{}, any>[]): Promise<void>;
export { CommandModule } from 'yargs';
export type { CommandModule } from 'yargs';
export declare function cli(commands: CommandModule<{}, any>[], defaultCommand: string): Promise<void>;

@@ -10,3 +10,3 @@ "use strict";

const yargs_1 = __importDefault(require("yargs"));
async function cli(commands) {
async function cli(commands, defaultCommand) {
var _a;

@@ -33,3 +33,12 @@ let config = {};

for (const command of commands) {
builder = builder.command(command);
let yargsCommand = command;
if (command.command) {
if (typeof command.command === 'string' && command.command === defaultCommand) {
yargsCommand.command = [command.command, '$0'];
}
if (Array.isArray(command.command) && command.command[0] === defaultCommand) {
yargsCommand.command = [...command.command, '$0'];
}
}
builder = builder.command(yargsCommand);
}

@@ -36,0 +45,0 @@ builder

{
"name": "@lerna-dockerize/cli",
"version": "0.9.0-build.6d2a683.0",
"version": "0.9.0-build.a11499b.0",
"description": "A dockerfile generator for lerna projects",

@@ -26,3 +26,3 @@ "keywords": [

"dependencies": {
"@lerna-dockerize/logger": "0.9.0-build.6d2a683.0",
"@lerna-dockerize/logger": "0.9.0-build.a11499b.0",
"yargs": "^17.0.1"

@@ -29,0 +29,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc