mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 11:56:10 +02:00
chore(pdfjs): copy locales during build
This commit is contained in:
@@ -87,6 +87,15 @@ export default class BuildHelper {
|
||||
}
|
||||
}
|
||||
|
||||
writeJson(relativePath: string, data: any) {
|
||||
const fullPath = join(this.outDir, relativePath);
|
||||
const dirPath = fullPath.substring(0, fullPath.lastIndexOf("/"));
|
||||
if (dirPath) {
|
||||
mkdirpSync(dirPath);
|
||||
}
|
||||
writeFileSync(fullPath, JSON.stringify(data, null, 4), "utf-8");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function tryPath(paths: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user