Skip to content

Commit

Permalink
fix test of source filename against baseDir (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier authored and dylans committed Jan 8, 2019
1 parent 74b9c7b commit d62a874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default function generate(options: Options): Promise<void> {
program.getSourceFiles().some(function (sourceFile) {
// Source file is a default library, or other dependency from another project, that should not be included in
// our bundled output
if (pathUtil.normalize(sourceFile.fileName).indexOf(baseDir) !== 0) {
if (pathUtil.normalize(sourceFile.fileName).indexOf(baseDir + pathUtil.sep) !== 0) {
return;
}

Expand Down

0 comments on commit d62a874

Please sign in to comment.