Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

fix: upgrade oclif and twilio-cli dependencies #27

Merged
merged 1 commit into from
Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,24 @@
"author": "Dominik Kundel <[email protected]>",
"bugs": "https://github.com/twilio-labs/plugin-serverless/issues",
"dependencies": {
"@oclif/command": "^1.5.12",
"@oclif/config": "^1.12.10",
"@twilio/cli-core": "^3.0.3",
"@oclif/command": "^1.5.19",
"@oclif/config": "^1.13.3",
"@twilio/cli-core": "^4.3.3",
"create-twilio-function": "^2.0.0",
"lodash.camelcase": "^4.3.0",
"lodash.kebabcase": "^4.1.1",
"twilio-run": "^2.1.1"
},
"devDependencies": {
"@oclif/dev-cli": "^1.21.3",
"@oclif/plugin-help": "^2.1.6",
"@oclif/test": "^1.2.4",
"@twilio/cli-test": "^1.0.0",
"@oclif/dev-cli": "^1.22.2",
"@oclif/plugin-help": "^2.2.1",
"@oclif/test": "^1.2.5",
"@twilio/cli-test": "^2.0.2",
"all-contributors-cli": "^6.7.0",
"chai": "^4.2.0",
"eslint": "^4.19.1",
"eslint-config-oclif": "^1.5.1",
"globby": "^8.0.2",
"keytar": "^4.11.0",
"mocha": "^5.2.0",
"nyc": "^13.3.0"
},
Expand Down
8 changes: 2 additions & 6 deletions src/commands/serverless/activate.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ const {
} = require('../../utils');

class FunctionsActivate extends TwilioClientCommand {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);
async run() {
await super.run();

this.showHeaders = true;
}

async runCommand() {
let { flags, args } = this.parse(FunctionsActivate);
flags = normalizeFlags(flags);

Expand Down
8 changes: 2 additions & 6 deletions src/commands/serverless/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ const {
} = require('../../utils');

class FunctionsDeploy extends TwilioClientCommand {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);
async run() {
await super.run();

this.showHeaders = true;
}

async runCommand() {
let { flags, args } = this.parse(FunctionsDeploy);
flags = normalizeFlags(flags);

Expand Down
8 changes: 2 additions & 6 deletions src/commands/serverless/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ const {
} = require('../../utils');

class FunctionsInit extends TwilioClientCommand {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);
async run() {
await super.run();

this.showHeaders = true;
}

async runCommand() {
let { flags, args } = this.parse(FunctionsInit);
flags = normalizeFlags(flags);

Expand Down
6 changes: 0 additions & 6 deletions src/commands/serverless/list-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ const {
} = require('../../utils');

class FunctionsListTemplates extends Command {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);

this.showHeaders = true;
}

async run() {
let { flags, args } = this.parse(FunctionsListTemplates);
flags = normalizeFlags(flags);
Expand Down
11 changes: 3 additions & 8 deletions src/commands/serverless/list.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// const { Command } = require('@oclif/command');
const { TwilioClientCommand } = require('@twilio/cli-core').baseCommands;

const { handler, cliInfo, describe } = require('twilio-run/dist/commands/list');
Expand All @@ -9,13 +8,9 @@ const {
} = require('../../utils');

class FunctionsList extends TwilioClientCommand {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);
async run() {
await super.run();

this.showHeaders = true;
}

async runCommand() {
let { flags, args } = this.parse(FunctionsList);
flags = normalizeFlags(flags);

Expand All @@ -34,7 +29,7 @@ FunctionsList.args = [
required: false,
default: cliInfo.argsDefaults.types,
description:
'Comma seperated list of things to list (services,environments,functions,assets,variables)',
'Comma separated list of things to list (services,environments,functions,assets,variables)',
},
];

Expand Down
6 changes: 0 additions & 6 deletions src/commands/serverless/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ const {
} = require('../../utils');

class FunctionsNew extends Command {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);

this.showHeaders = true;
}

async run() {
let { flags, args } = this.parse(FunctionsNew);
flags = normalizeFlags(flags);
Expand Down
6 changes: 0 additions & 6 deletions src/commands/serverless/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ const {
} = require('../../utils');

class FunctionsStart extends Command {
constructor(argv, config, secureStorage) {
super(argv, config, secureStorage);

this.showHeaders = true;
}

async run() {
let { flags, args } = this.parse(FunctionsStart);

Expand Down