feat: Add path information for copying data.json

This commit is contained in:
barkstone 2024-12-09 20:44:35 +09:00 committed by barkstone2
parent 64bda4f0d0
commit 8445d10981

View file

@ -15,6 +15,8 @@ export class Paths {
sourceDestPath;
sourcePublicPath;
typeJsonDestPath;
dataJsonSourcePath;
dataJsonDestPath;
constructor(app: App, settings: VaultToBlogSettings) {
this.app = app;
@ -31,6 +33,9 @@ export class Paths {
this.sourceDestPath = () => `${this.reactPath()}/public/sources`;
this.sourcePublicPath = () => `${this.reactPath()}/public`;
this.typeJsonDestPath = () => `${this.sourcePublicPath()}/types.json`;
this.dataJsonSourcePath = () => `${this.pluginPath()}/data.json`;
this.dataJsonDestPath = () => `${this.reactPath()}/src/stores/data.json`;
}
private getVaultPath() {