Skip to content

Commit

Permalink
fix: revert changes from stephenh#283
Browse files Browse the repository at this point in the history
  • Loading branch information
doochik committed May 23, 2021
1 parent b64d851 commit 8f639fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parse } from 'path';
import { promisify } from 'util';
import { generateFile, makeUtils } from '../src/main';
import { createTypeMap } from '../src/types';
import { prefixDisableLinter, protoFilesToGenerate } from '../src/utils';
import { prefixDisableLinter } from '../src/utils';
import { getTsPoetOpts, optionsFromParameter } from '../src/options';
import { Context } from '../src/context';
import { generateTypeRegistry } from '../src/generate-type-registry';
Expand All @@ -31,7 +31,7 @@ async function generate(binFile: string, baseDir: string, parameter: string) {
const options = optionsFromParameter(parameter || '');
const typeMap = createTypeMap(request, options);

for (let file of protoFilesToGenerate(request)) {
for (let file of request.protoFile) {
// Make a different utils per file to track per-file usage
const utils = makeUtils(options);
const ctx: Context = { options, typeMap, utils };
Expand Down

0 comments on commit 8f639fa

Please sign in to comment.