Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(deep-linking): ensure the deepLinkDir ends in path.sep
Browse files Browse the repository at this point in the history
  • Loading branch information
danbucholtz committed Oct 6, 2017
1 parent 0b28326 commit 496af40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deep-linking/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { basename, dirname, extname, relative } from 'path';
import { basename, dirname, extname, relative, sep } from 'path';

import {
ArrayLiteralExpression,
Expand Down Expand Up @@ -88,7 +88,7 @@ export function filterTypescriptFilesForDeepLinks(fileCache: FileCache): File[]
}

export function isDeepLinkingFile(filePath: string) {
const deepLinksDir = getStringPropertyValue(Constants.ENV_VAR_DEEPLINKS_DIR);
const deepLinksDir = getStringPropertyValue(Constants.ENV_VAR_DEEPLINKS_DIR) + sep;
const moduleSuffix = getStringPropertyValue(Constants.ENV_NG_MODULE_FILE_NAME_SUFFIX);
const result = extname(filePath) === '.ts' && filePath.indexOf(moduleSuffix) === -1 && filePath.indexOf(deepLinksDir) >= 0;
return result;
Expand Down

0 comments on commit 496af40

Please sign in to comment.