mirror of
https://github.com/zadam/trilium.git
synced 2026-01-17 04:42:16 +01:00
- Implement --config (-c) flag to allow custom configuration file paths. - Add --help (-h) flag to display tool usage and available options. - Add --version (-v) flag to display the current Trilium version. - Update electron-start.mts to correctly pass command-line arguments to Electron. - Synchronize edit-docs version with the root package.json via update-version.ts. - Resolve config paths relative to the configuration file's directory. This makes edit-docs more robust and easier to use from external projects and immutable environments like Nix.
22 lines
1.0 KiB
JSON
22 lines
1.0 KiB
JSON
{
|
|
"name": "@triliumnext/edit-docs",
|
|
"version": "0.101.3",
|
|
"private": true,
|
|
"description": "Desktop version of Trilium which imports the demo database (presented to new users at start-up) or the user guide and other documentation and saves the modifications for committing.",
|
|
"dependencies": {
|
|
"archiver": "7.0.1",
|
|
"better-sqlite3": "12.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@triliumnext/client": "workspace:*",
|
|
"@triliumnext/desktop": "workspace:*",
|
|
"@types/fs-extra": "11.0.4",
|
|
"copy-webpack-plugin": "13.0.1",
|
|
"electron": "39.2.7",
|
|
"fs-extra": "11.3.3"
|
|
},
|
|
"scripts": {
|
|
"edit-docs": "cross-env TRILIUM_PORT=37741 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store tsx ../../scripts/electron-start.mts src/edit-docs.ts",
|
|
"edit-demo": "cross-env TRILIUM_PORT=37744 TRILIUM_DATA_DIR=data TRILIUM_INTEGRATION_TEST=memory-no-store DOCS_ROOT=../../../docs USER_GUIDE_ROOT=\"../../server/src/assets/doc_notes/en/User Guide\" tsx ../../scripts/electron-start.mts src/edit-demo.ts"
|
|
}
|
|
} |