Files
actual/packages/desktop-electron/package.json
Matiss Janis Aboltins 31a027fc64 [AI] Add per-package tsconfigs and typescript-strict-plugin for typecheck (#7019)
* [AI] Add per-package tsconfigs and typescript-strict-plugin for typecheck

Co-authored-by: Cursor <cursoragent@cursor.com>

* Update TypeScript configuration across multiple packages to correct plugin path key from "path" to "paths" and add reference to process-worker typings in index.electron.ts.

* Remove reference to process-worker typings in index.electron.ts and add new process-worker typings file for global Process augmentation.

* Refactor TypeScript build configurations across multiple packages by removing tsconfig.dist.json files and updating build scripts to use default TypeScript compilation. Adjusted compiler options to target ES2021 and enable declaration generation.

* Update TypeScript configuration in api package to refine include and exclude patterns for better file management.

* Update build script in api package to ensure migration SQL files are copied to the correct directory by creating the destination folder if it doesn't exist.

* Update TypeScript configurations in crdt and desktop-electron packages to refine include and exclude patterns for improved file management.

* Update TypeScript dependencies across multiple packages to include typescript-strict-plugin for enhanced type checking and maintain consistency in package.json files.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-21 21:26:22 +00:00

130 lines
3.5 KiB
JSON

{
"name": "desktop-electron",
"version": "26.2.0",
"description": "A simple and powerful personal finance system",
"author": "Actual",
"main": "build/desktop-electron/index.js",
"scripts": {
"clean": "rm -rf dist",
"update-client": "bin/update-client",
"build": "yarn build:dist && electron-builder",
"build:dist": "tsc && yarn copy-static-assets",
"typecheck": "tsc --noEmit && tsc-strict",
"copy-static-assets": "copyfiles --exclude 'build/**/*' **/*.html icons/**/* build/desktop-electron",
"watch": "yarn build:dist && cross-env ACTUAL_DOCUMENT_DIR=\"../../data\" ACTUAL_DATA_DIR=\"../../data\" electron .",
"e2e": "npx playwright test"
},
"dependencies": {
"@actual-app/sync-server": "workspace:*",
"better-sqlite3": "^12.6.2",
"fs-extra": "^11.3.3",
"promise-retry": "^2.0.1"
},
"devDependencies": {
"@electron/notarize": "3.1.1",
"@electron/rebuild": "4.0.2",
"@playwright/test": "1.58.2",
"@types/copyfiles": "^2",
"@types/fs-extra": "^11",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"electron": "39.2.7",
"electron-builder": "26.4.0",
"typescript": "^5.9.3",
"typescript-strict-plugin": "^2.4.4"
},
"build": {
"appId": "com.actualbudget.actual",
"files": [
"build",
"!node_modules/@actual-app/web",
"node_modules/@actual-app/web/build",
"node_modules/@actual-app/web/package.json",
"!node_modules/better-sqlite3/{benchmark,src,bin,docs,deps,build/Release/obj,build/Release/sqlite3.a,build/Release/test_extension.node}",
"!**/*.js.map",
"!**/stats.json",
"!build/client-build/sql-wasm.wasm",
"!build/loot-core/lib-dist/electron/{browser,bundle.mobile*}"
],
"beforePack": "./build/desktop-electron/beforePackHook.js",
"mac": {
"category": "public.app-category.finance",
"icon": "icons/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"artifactName": "${productName}-mac-${arch}.${ext}",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
]
},
"linux": {
"target": [
{
"target": "flatpak",
"arch": [
"x64"
]
},
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "${productName}-linux-${arch}.${ext}",
"extraResources": [
"extra-resources/linux"
],
"desktop": {
"entry": {
"Categories": "Finance;Office",
"Keywords": "Budget;Finance;Money;Expenses;Savings;"
}
},
"executableName": "actual"
},
"flatpak": {
"runtimeVersion": "24.08",
"baseVersion": "24.08"
},
"win": {
"target": [
{
"target": "appx",
"arch": [
"ia32",
"x64",
"arm64"
]
},
{
"target": "nsis",
"arch": [
"ia32",
"x64",
"arm64"
]
}
],
"icon": "icons/icon.png",
"artifactName": "${productName}-windows-${arch}.${ext}"
},
"appx": {
"identityName": "actualbudget.org.ActualBudget",
"publisherDisplayName": "actualbudget.org",
"displayName": "Actual Budget",
"publisher": "CN=19454997-90E1-4473-879D-96D6A77A6056"
},
"npmRebuild": false
},
"productName": "Actual"
}