diff --git a/src/bin-fix-mismatches.ts b/src/bin-fix-mismatches.ts index f26861e7..ec95d2a4 100644 --- a/src/bin-fix-mismatches.ts +++ b/src/bin-fix-mismatches.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import chalk from 'chalk'; -import program = require('commander'); +import * as program from 'commander'; import { run } from './fix-mismatches'; program.description( diff --git a/src/bin-format.ts b/src/bin-format.ts index dd45b8fb..afc63769 100644 --- a/src/bin-format.ts +++ b/src/bin-format.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import chalk from 'chalk'; -import program = require('commander'); +import * as program from 'commander'; import { run } from './format'; program.description( diff --git a/src/bin-list-mismatches.ts b/src/bin-list-mismatches.ts index e168c51f..75164a04 100644 --- a/src/bin-list-mismatches.ts +++ b/src/bin-list-mismatches.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import chalk from 'chalk'; -import program = require('commander'); +import * as program from 'commander'; import { run } from './list-mismatches'; program.description( diff --git a/src/bin-list.ts b/src/bin-list.ts index ce9c7c94..5f210cb6 100644 --- a/src/bin-list.ts +++ b/src/bin-list.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import chalk from 'chalk'; -import program = require('commander'); +import * as program from 'commander'; import { run } from './list'; program.description( diff --git a/src/bin-set-semver-ranges.ts b/src/bin-set-semver-ranges.ts index 47444674..92a0a86d 100644 --- a/src/bin-set-semver-ranges.ts +++ b/src/bin-set-semver-ranges.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import chalk from 'chalk'; -import program = require('commander'); +import * as program from 'commander'; import { run } from './set-semver-ranges'; program.description( diff --git a/src/bin.ts b/src/bin.ts index b0417dd2..a9dd213d 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node -import program = require('commander'); +import * as program from 'commander'; import { run } from './syncpack'; run(program); diff --git a/src/fix-mismatches.ts b/src/fix-mismatches.ts index 56617834..0460dd41 100644 --- a/src/fix-mismatches.ts +++ b/src/fix-mismatches.ts @@ -1,6 +1,6 @@ import chalk from 'chalk'; import { writeJson } from 'fs-extra'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { relative } from 'path'; import { OPTION_INDENT, diff --git a/src/format.ts b/src/format.ts index 20e1627d..c6a363ea 100644 --- a/src/format.ts +++ b/src/format.ts @@ -1,6 +1,6 @@ import chalk from 'chalk'; import { writeJson } from 'fs-extra'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { relative } from 'path'; import { OPTION_INDENT, diff --git a/src/lib/version.spec.ts b/src/lib/version.spec.ts index daa49808..30849d50 100644 --- a/src/lib/version.spec.ts +++ b/src/lib/version.spec.ts @@ -1,4 +1,4 @@ -import _ = require('lodash'); +import * as _ from 'lodash'; import { getNewest, getVersionRange, sortBySemver } from './version'; describe('getNewest', () => { diff --git a/src/lib/version.ts b/src/lib/version.ts index 58401601..47d8dab9 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -1,5 +1,5 @@ -import _ = require('lodash'); -import semver = require('semver'); +import * as _ from 'lodash'; +import * as semver from 'semver'; import { GREATER, LESSER, SAME, SEMVER_ORDER } from '../constants'; const isSemver = (version: string) => diff --git a/src/list-mismatches.ts b/src/list-mismatches.ts index 471cbc60..5da8cd17 100644 --- a/src/list-mismatches.ts +++ b/src/list-mismatches.ts @@ -1,5 +1,5 @@ import chalk from 'chalk'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { OPTION_SOURCES, OPTIONS_DEV, diff --git a/src/list.ts b/src/list.ts index 838cfe64..f1925228 100644 --- a/src/list.ts +++ b/src/list.ts @@ -1,5 +1,5 @@ import chalk from 'chalk'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { OPTION_SOURCES, OPTIONS_DEV, diff --git a/src/set-semver-ranges.ts b/src/set-semver-ranges.ts index 89d809e0..f0a95648 100644 --- a/src/set-semver-ranges.ts +++ b/src/set-semver-ranges.ts @@ -1,8 +1,8 @@ import chalk from 'chalk'; import { writeJson } from 'fs-extra'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { relative } from 'path'; -import semver = require('semver'); +import * as semver from 'semver'; import { OPTION_INDENT, OPTION_SEMVER_RANGE, diff --git a/test/helpers.ts b/test/helpers.ts index a68b2a25..15944440 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -1,5 +1,5 @@ import { readJsonSync } from 'fs-extra'; -import _ = require('lodash'); +import * as _ from 'lodash'; import { CommanderApi } from '../src/typings'; const shuffle = (value: any): typeof value =>