Skip to content

Commit

Permalink
fix(compiler): emit compiled sources
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekcode committed Mar 4, 2020
1 parent dea7636 commit 592ef68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/compiler/typescript-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export const compileSources = (filePaths: string[]): void => {
target: ts.ScriptTarget.ESNext,
module: ts.ModuleKind.ESNext
};
ts.createProgram(filePaths, compilerOptions);
ts.createProgram(filePaths, compilerOptions).emit();
};
4 changes: 2 additions & 2 deletions src/lib/converters/multiple-files.converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const convertToMultipleFiles = async (convertionOptions: ConvertionOption

try {
const filePaths = await getFilePathsFromRegex(srcFiles);
await deleteFolder(`${outputDirectory}/icons`);
info(`deleting output directory: ${outputDirectory}`);
await deleteFolder(`${outputDirectory}/${generateIconsFolderName}`);
info(`deleting output directory: ${outputDirectory}/${generateIconsFolderName}`);

for (let i = 0; i < filePaths.length; i++) {
const fileNameWithEnding = path.basename(filePaths[i]);
Expand Down

0 comments on commit 592ef68

Please sign in to comment.