Skip to content

Commit

Permalink
refactor(): run format, remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 24, 2020
1 parent 56d1dfd commit a03eba4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/compiler/plugins-loader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { existsSync } from 'fs';
import { join, resolve } from 'path';
import { join } from 'path';
import * as ts from 'typescript';
import { isObject } from 'util';
import { CLI_ERRORS } from '../ui';
Expand Down Expand Up @@ -33,7 +32,7 @@ export class PluginsLoader {
];
const pluginRefs: NestCompilerPlugin[] = pluginNames.map(item => {
try {
const binaryPath = require.resolve(item, {paths: nodeModulePaths});
const binaryPath = require.resolve(item, { paths: nodeModulePaths });
return require(binaryPath);
} catch (e) {
throw new Error(`"${item}" plugin could not be found!`);
Expand Down

0 comments on commit a03eba4

Please sign in to comment.