Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: optimizing linking script

Ilian Sapundshiev1002678efadb
diff --git a/app/services/electron-io.ts b/app/services/electron-io.ts
index 3298dfc88..ed5a1de0e 100644
--- a/app/services/electron-io.ts
+++ b/app/services/electron-io.ts
@@ -408,11 +408,19 @@ export default class ElectronIO {
}
// Read tsm.json from sub folders
- if (!eentry.isFile && mode.includes('extractThumbPath') && !eentry.path.includes(PlatformIO.getDirSeparator() + AppConfig.metaFolder)) {
+ if (
+ !eentry.isFile &&
+ mode.includes('extractThumbPath') &&
+ !eentry.path.includes(
+ PlatformIO.getDirSeparator() + AppConfig.metaFolder
+ )
+ ) {
const folderMetaPath =
eentry.path +
AppConfig.dirSeparator +
- (!eentry.path.includes(PlatformIO.getDirSeparator() + AppConfig.metaFolder) // TODO this will set parent folder description to /.ts folder too
+ (!eentry.path.includes(
+ PlatformIO.getDirSeparator() + AppConfig.metaFolder
+ ) // TODO this will set parent folder description to /.ts folder too
? AppConfig.metaFolder + AppConfig.dirSeparator
: '') +
AppConfig.metaFolderFile;
diff --git a/package.json b/package.json
index 9d11326f6..c1240d05d 100644
--- a/package.json
+++ b/package.json
@@ -134,7 +134,7 @@
"update-changelog-pro": "cd extensions/tagspacespro && git log v3.11.6..HEAD --no-merges --format=%B > ../../CHANGELOG-PRO.TXT",
"update-i18n": "tx pull -a -d",
"version-meta": "node scripts/versionmeta.js",
- "ts-extension-symlink": "rimraf app/node_modules/@tagspaces/extensions && cd app/node_modules/@tagspaces && ln -s ../../../extensions extensions && cd .. && cd .. && cd .."
+ "ts-extension-symlink": "rimraf app/node_modules/@tagspaces/extensions && cd app/node_modules/@tagspaces && ln -s ../../../extensions extensions && cd ../../.."
},
"husky": {
"hooks": {