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

Commit 496af40

Browse files
committed
fix(deep-linking): ensure the deepLinkDir ends in path.sep
1 parent 0b28326 commit 496af40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deep-linking/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { basename, dirname, extname, relative } from 'path';
1+
import { basename, dirname, extname, relative, sep } from 'path';
22

33
import {
44
ArrayLiteralExpression,
@@ -88,7 +88,7 @@ export function filterTypescriptFilesForDeepLinks(fileCache: FileCache): File[]
8888
}
8989

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

0 commit comments

Comments
 (0)