{
  "main": "./electron-main.js",
  "bin": {
    "trilium": "src/main.js"
  },
  "type": "module",
  "scripts": {    
    "server:start-safe": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts",
    "server:start-no-dir": "cross-env TRILIUM_ENV=dev nodemon src/main.ts",
    "server:start-test": "npm run server:switch && rimraf ./data-test && cross-env TRILIUM_DATA_DIR=./data-test TRILIUM_ENV=dev TRILIUM_PORT=9999 nodemon src/main.ts",
    "server:qstart": "npm run server:switch && npm run server:start",
    "server:switch": "rimraf ./node_modules/better-sqlite3 && npm install",
    "electron:start-no-dir": "cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_ENV=dev TRILIUM_PORT=37742 electron --inspect=5858 .",
    "electron:start-nix": "electron-rebuild --version 33.3.1 && cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nix-shell -p electron_33 --run \"electron ./electron-main.ts --inspect=5858 .\"",
    "electron:start-nix-no-dir": "electron-rebuild --version 33.3.1 && cross-env NODE_OPTIONS=\"--import tsx\" TRILIUM_ENV=dev TRILIUM_PORT=37742 nix-shell -p electron_33 --run \"electron ./electron-main.ts --inspect=5858 .\"",    
    "electron:start-prod-no-dir": "npm run build:prepare-dist && cross-env TRILIUM_ENV=prod electron --inspect=5858 .",
    "electron:start-prod-nix": "electron-rebuild --version 33.3.1 && npm run build:prepare-dist && cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nix-shell -p electron_33 --run \"electron ./dist/electron-main.js --inspect=5858 .\"",
    "electron:start-prod-nix-no-dir": "electron-rebuild --version 33.3.1 && npm run build:prepare-dist && cross-env TRILIUM_ENV=dev nix-shell -p electron_33 --run \"electron ./dist/electron-main.js --inspect=5858 .\"",
    "electron:qstart": "npm run electron:switch && npm run electron:start",
    "electron:switch": "electron-rebuild",    
    "docs:build": "typedoc",        
    "test": "npm run client:test && npm run server:test",    
    "client:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app",
    "client:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app --coverage",
    "test:playwright": "playwright test --workers 1",
    "test:integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",
    "test:integration-mem-db": "cross-env    nodemon src/main.ts",
    "test:integration-mem-db-dev": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",
    "dev:watch-dist": "tsx ./bin/watch-dist.ts",
    "dev:format-check": "eslint -c eslint.format.config.js .",
    "dev:format-fix": "eslint -c eslint.format.config.js . --fix",
    "dev:linter-check": "eslint .",
    "dev:linter-fix": "eslint . --fix",    
    "chore:generate-document": "cross-env nodemon ./bin/generate_document.ts 1000",
    "chore:generate-openapi": "tsx bin/generate-openapi.js"
  },
  "devDependencies": {    
    "@playwright/test": "1.57.0",
    "@stylistic/eslint-plugin": "5.6.1",        
    "@types/express": "5.0.5",    
    "@types/node": "24.10.1",    
    "@types/yargs": "17.0.35",
    "@vitest/coverage-v8": "4.0.14",
    "eslint": "9.39.1",
    "eslint-plugin-simple-import-sort": "12.1.1",
    "esm": "3.2.25",
    "jsdoc": "4.0.5",
    "lorem-ipsum": "2.0.8",    
    "rcedit": "5.0.2",
    "rimraf": "6.1.2",    
    "tslib": "2.8.1" 
  },
  "optionalDependencies": {
    "appdmg": "0.6.6"
  }
}
