Skip to content

Commit 52331cf

Browse files
author
Martynas Žilinskas
committed
Fixed generator path appender.
1 parent 0b0952d commit 52331cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class Generator {
7777
filePath = filePath.split(path.sep).join('/');
7878
}
7979

80-
if (filePath.indexOf('/') === -1) {
80+
if (filePath.indexOf('../') !== 0) {
8181
filePath = './' + filePath;
8282
}
8383

0 commit comments

Comments
 (0)