trilium/apps/desktop/package.json
Elian Doran b6b9ca1ab5
chore(nx/forge): add strange workaround to solve node modules
Here we need to ensure that there is no `node_modules` in
`apps/desktop` since electron-forge will pick it up and use only that,
meaning that all the hoisted dependencies available in the project root
will not be accessible and it will error out.

See https://github.com/pnpm/pnpm/issues/7880 for more information.
2025-04-26 00:42:43 +03:00

71 lines
1.9 KiB
JSON

{
"name": "@triliumnext/desktop",
"version": "0.0.1",
"private": true,
"main": "dist/main.js",
"dependencies": {
"@electron/remote": "2.1.2",
"better-sqlite3": "^11.9.1",
"electron-debug": "4.1.0",
"electron-dl": "4.0.0",
"electron-squirrel-startup": "1.0.1"
},
"devDependencies": {
"@types/electron-squirrel-startup": "1.0.2",
"@triliumnext/server": "workspace:*",
"copy-webpack-plugin": "13.0.0",
"electron": "35.1.5",
"@electron/rebuild": "3.7.2",
"@electron-forge/cli": "7.8.0",
"@electron-forge/maker-deb": "7.8.0",
"@electron-forge/maker-dmg": "7.8.0",
"@electron-forge/maker-flatpak": "7.8.0",
"@electron-forge/maker-rpm": "7.8.0",
"@electron-forge/maker-squirrel": "7.8.0",
"@electron-forge/maker-zip": "7.8.0",
"@electron-forge/plugin-auto-unpack-natives": "7.8.0"
},
"scripts": {
"start-prod": "nx build desktop && cross-env TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=dist TRILIUM_PORT=37841 electron dist/main.js",
"rebuild": "electron-rebuild"
},
"nx": {
"targets": {
"serve": {
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"dependsOn": [
"build"
],
"options": {
"buildTarget": "@triliumnext/desktop:build",
"runBuildTargetDependencies": false
},
"configurations": {
"development": {
"buildTarget": "@triliumnext/desktop:build:development"
},
"production": {
"buildTarget": "@triliumnext/desktop:build:production"
}
}
},
"build": {
"dependsOn": [
{
"target": "build",
"projects": [
"client",
"server"
]
}
]
},
"make": {
"dependsOn": [ "build" ],
"command": "pnpm exec electron-forge make apps/desktop"
}
}
}
}