- fix for lint errors

This commit is contained in:
ezolenko 2019-03-11 14:02:46 -06:00
parent 4806613ed8
commit 33b99bf9af
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -319,7 +319,7 @@ const typescript: PluginImpl<Partial<IOptions>> = (options) =>
else
{
// Otherwise, take the directory name from the path and make sure it is absolute.
const destDirname = bundleFile ? dirname(bundleFile) : <string>outputDir;
const destDirname = bundleFile ? dirname(bundleFile) : outputDir as string;
const destDirectory = isAbsolute(destDirname) ? destDirname : join(process.cwd(), destDirname);
writeToPath = join(destDirectory, relative(process.cwd(), fileName));
}