Skip to content

Commit 8e56ac2

Browse files
committed
Fix "glob" issue with windows paths
`shelljs.pwd()` returns the absolute paths with backslashes on Windows, while the glob package works only with forward slashes. The fix here was to replace backslashes with forward slashes when the whole path was set.
1 parent f28ea05 commit 8e56ac2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/angular/projects/tx-native-angular-sdk/src/lib/translation.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export class TranslationService {
2626
}
2727

2828
// A dictionary with additional TX Native instances for translation
29+
// eslint-disable-next-line space-infix-ops
2930
private additionalInstances: { [id: string]: any } = {};
3031

3132
// A subject for managing locale changes

packages/cli/src/commands/push.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class PushCommand extends Command {
4040
if (isFolder(filePattern)) {
4141
filePattern = path.join(filePattern, PushCommand.args[0].default);
4242
}
43+
filePattern = filePattern.replace(/\\/g, '/');
4344

4445
const appendTags = stringToArray(flags['append-tags']);
4546
const filterWithTags = stringToArray(flags['with-tags-only']);

0 commit comments

Comments
 (0)