Skip to content

Commit d22bf26

Browse files
committed
Fix some loc typings generation issues.
1 parent a4fd76a commit d22bf26

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack/localization-plugin/src/TypingsGenerator.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ export class TypingsGenerator {
8181
const locFilePaths: string[] = glob.sync(
8282
path.join('**', '*+(.resx|.loc.json)'),
8383
{
84-
root: this._options.srcFolder,
85-
absolute: true
84+
cwd: this._options.srcFolder,
85+
absolute: true,
86+
nosort: true,
87+
nodir: true
8688
}
8789
);
8890

8991
for (let locFilePath of locFilePaths) {
90-
locFilePath = path.resolve(locFilePath);
92+
locFilePath = path.resolve(this._options.srcFolder, locFilePath);
9193

9294
if (filesToIgnore.has(locFilePath)) {
9395
continue;

0 commit comments

Comments
 (0)