mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Fixed localization files reading path out issue
This commit is contained in:
@@ -123,6 +123,10 @@ async function readDirectory(filePath: string) {
|
|||||||
|
|
||||||
return dirContent.map(async (fileName) => {
|
return dirContent.map(async (fileName) => {
|
||||||
const content = await fs.readFile(path.resolve(filePath, fileName));
|
const content = await fs.readFile(path.resolve(filePath, fileName));
|
||||||
return getObjectFromModelFile(filePath, content, 1);
|
return getObjectFromModelFile(
|
||||||
|
path.resolve(filePath, fileName),
|
||||||
|
content,
|
||||||
|
2,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user