diff --git a/src/cli/args.ts b/src/cli/args.ts index 63948d28a2..ac5c2de8c0 100644 --- a/src/cli/args.ts +++ b/src/cli/args.ts @@ -16,7 +16,7 @@ function dashToCamelCase(dash) { : dash.replace(/-[a-z]/g, (m) => m[1].toUpperCase()); } -export default function args(processargv) { +export function args(processargv) { // all arguments after a '--' are taken as is and passed to the next process // (see the snyk-mvn-plugin or snyk-gradle-plugin) // these agrs are split by spaces and sent as an array of strings diff --git a/src/cli/copy.ts b/src/cli/copy.ts index 72e37b5567..490c8ea338 100644 --- a/src/cli/copy.ts +++ b/src/cli/copy.ts @@ -6,6 +6,6 @@ const program = { win32: 'clip', }[process.platform]; -export default function copy(str) { +export function copy(str) { return execSync(program, {input: str}); } diff --git a/src/cli/index.ts b/src/cli/index.ts index 5a00a2a312..ae7a394663 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -7,8 +7,8 @@ import * as runtime from './runtime'; import * as analytics from '../lib/analytics'; import * as alerts from '../lib/alerts'; import * as sln from '../lib/sln'; -import argsLib from './args'; -import copy from './copy'; +import {args as argsLib} from './args'; +import {copy} from './copy'; import spinner = require('../lib/spinner'); import errors = require('../lib/error'); import ansiEscapes = require('ansi-escapes'); diff --git a/test/args.test.js b/test/args.test.js index 453c7a3605..e26898059f 100644 --- a/test/args.test.js +++ b/test/args.test.js @@ -1,5 +1,5 @@ var test = require('tap').test; -var args = require('../src/cli/args').default; +var args = require('../src/cli/args').args; test('test command line arguments', function(t) { t.plan(1); diff --git a/tslint.json b/tslint.json index ab2b6db7fa..4e790c06aa 100644 --- a/tslint.json +++ b/tslint.json @@ -13,6 +13,7 @@ "ordered-imports": false, "quotemark": [true, "single", "avoid-escape", "avoid-template"], "semicolon": [true, "always"], - "no-console": [false] + "no-console": [false], + "no-default-export": true } }