Skip to content

Commit

Permalink
Fix import causing issues when compiled to commonjs (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvestergaard authored and dotansimha committed Jul 8, 2019
1 parent cd1c1ce commit c34213a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphql-codegen-cli/src/utils/watcher.ts
Expand Up @@ -6,7 +6,7 @@ import * as isGlob from 'is-glob';
import * as logSymbols from 'log-symbols';
import { debugLog } from './debugging';
import { getLogger } from './logger';
import path from 'path';
import { join } from 'path';

function log(msg: string) {
// double spaces to inline the message with Listr
Expand Down Expand Up @@ -64,7 +64,7 @@ export const createWatcher = (config: Types.Config, onNext: (result: Types.FileO
if (entry.config.preset) {
const extension = entry.config.presetConfig && entry.config.presetConfig.extension;
if (extension) {
ignored.push(path.join(entry.filename, '**', '*' + extension));
ignored.push(join(entry.filename, '**', '*' + extension));
}
} else {
ignored.push(entry.filename);
Expand Down

0 comments on commit c34213a

Please sign in to comment.