Skip to content

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

moving pro location

Ilian Sapundshiev104a2fa8f555
diff --git a/app/pro/index.ts b/app/pro/index.ts
index f8bee0421..dbf67d160 100644
--- a/app/pro/index.ts
+++ b/app/pro/index.ts
@@ -19,7 +19,7 @@
let tsPro;
try {
- tsPro = require('../node_modules/@tagspaces/pro');
+ tsPro = require('../../extensions/pro');
} catch (e) {
if (e && e.code && e.code === 'MODULE_NOT_FOUND') {
console.log('PRO functionality not available');
diff --git a/package.json b/package.json
index 97c837a46..396905490 100644
--- a/package.json
+++ b/package.json
@@ -38,11 +38,11 @@
"package": "yarn build && yarn package-win && yarn package-linux && yarn package-mac && yarn package-web",
"package-ci": "yarn postinstall && yarn build && electron-builder --publish always",
"package-mac": "electron-builder --mac --x64 --config resources/builder.json",
- "package-mac-pro": "electron-builder --mac --x64 --config app/node_modules/@tagspaces/pro/resources/builder-pro.json",
+ "package-mac-pro": "electron-builder --mac --x64 --config extensions/pro/resources/builder-pro.json",
"package-win": "electron-builder --win --x64 --config resources/builder.json",
- "package-win-pro": "electron-builder --win --x64 --config app/node_modules/@tagspaces/pro/resources/builder-pro.json",
+ "package-win-pro": "electron-builder --win --x64 --config extensions/pro/resources/builder-pro.json",
"package-linux": "electron-builder --linux --config resources/builder.json",
- "package-linux-pro": "electron-builder --linux --config app/node_modules/@tagspaces/pro/resources/builder-pro.json",
+ "package-linux-pro": "electron-builder --linux --config extensions/pro/resources/builder-pro.json",
"package-pro": "node scripts/enablepro.js && yarn install-ext && yarn build && yarn package-web-pro && yarn clean-maps && yarn package-win-pro && yarn package-linux-pro && yarn package-web-pro && yarn package-mac-pro",
"package-android": "yarn build-cordova && cd cordova && yarn install && cordova build --release android && cd ../.. && ./prepare-android.sh",
"package-web": "yarn prepare-web && yarn clean-maps && zip -r ./builds/tagspaces-web.zip web -x web/files/**\\*",
@@ -50,7 +50,7 @@
"prepare-web": "rimraf web/node_modules && cp -r app/node_modules web && cp LICENSE.txt web && node scripts/genswconf.js",
"prepare-cordova": "rimraf cordova/www/dist && rimraf cordova/www/node_modules && cp -Lr app/node_modules cordova/www && cp LICENSE.txt cordova/www",
"clean": "rimraf node_modules && rimraf app/dist",
- "clean-pro": "yarn clean-maps && rimraf app/node_modules/@tagspaces/pro/*.ts* && rimraf app/node_modules/@tagspaces/pro/lib/ && rimraf app/node_modules/@tagspaces/pro/modules/ && rimraf app/node_modules/@tagspaces/pro/test/",
+ "clean-pro": "yarn clean-maps",
"clean-maps": "rimraf app/dist/**/*.map && rimraf web/dist/**/*.map",
"install-ext": "cd app && yarn install --force --prod --no-lockfile && cd ..",
"setup-ext": "node scripts/setupextensions.js",