tutanota/package.json
das f69466a713 Add tensorflow.js library
Reviewed by jhm, abp, das.

The library is added to support training a spam classification model on
client. A custom rollupTensorFlow was created to only use the needed
methods on the final file, which also has multiple stubs which remove
code which is unwanted such as Requests.

Co-authored-by: jhm <17314077+jomapp@users.noreply.github.com>
Co-authored-by: abp <abp@tutao.de>
2025-10-14 12:32:04 +02:00

121 lines
4.2 KiB
JSON

{
"name": "tutanota",
"version": "310.251008.0",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/tutao/tutanota.git"
},
"type": "module",
"exports": {
"./*": "./build/prebuilt/*",
"./buildSrc/*": "./buildSrc/*"
},
"scripts": {
"build-packages": "node buildSrc/buildPackages.js all",
"build-runtime-packages": "node buildSrc/buildPackages.js runtime",
"start": "./start-desktop.sh",
"test-ci": "npm run --if-present test -ws && cd test && node test",
"test": "npm run --if-present test -ws && cd test && node --enable-source-maps test",
"test:app": "cd test && node --enable-source-maps test",
"types": "tsc --incremental true --noEmit true",
"prebuild": "node buildSrc/prebuild.js",
"preinstall": "git config core.hooksPath githooks || true",
"postinstall": "node buildSrc/postinstall.js",
"bump-version": "node buildSrc/bump-version.js",
"generate-ipc": "npm run build -w @tutao/licc && licc ./ipc-schema && npm run style:fix",
"style:check": "prettier -c \"**/*.(ts|js|json|json5)\" --cache --cache-location cache/prettier",
"style:fix": "prettier -w \"**/*.(ts|js|json|json5)\"",
"lint:check": "eslint . --cache --cache-location cache/eslint",
"lint:fix": "eslint --fix .",
"check": "npm run style:check && npm run lint:check",
"fix": "npm run style:fix && npm run lint:fix",
"trace-imports": "node --import ./buildSrc/review/import-hooks.js",
"review-import-trace": "node ./buildSrc/review/review.js import-trace.json"
},
"dependencies": {
"@fingerprintjs/botd": "1.9.1",
"@indutny/simple-windows-notifications": "git+https://github.com/tutao/simple-windows-notifications.git#536bc9bd736986828d5125e0278ba271ebc6006c",
"@material/material-color-utilities": "git+https://github.com/tutao/material-color-utilities#064dcc2768cb0c8106c150a819eedb6233bb1d0a",
"@signalapp/sqlcipher": "git+https://github.com/tutao/node-sqlcipher#8d7eaa36321d7147faa3583231635855d8a991e7",
"@tutao/node-mimimi": "310.251008.0",
"@tensorflow/tfjs-core": "4.22.0",
"@tensorflow/tfjs-layers": "4.22.0",
"@tensorflow/tfjs-backend-webgl": "4.22.0",
"@tensorflow/tfjs-backend-cpu": "4.22.0",
"@tutao/oxmsg": "0.0.9-beta.0",
"@tutao/tuta-wasm-loader": "310.251008.0",
"@tutao/tutanota-crypto": "310.251008.0",
"@tutao/tutanota-error": "310.251008.0",
"@tutao/tutanota-usagetests": "310.251008.0",
"@tutao/tutanota-utils": "310.251008.0",
"@types/better-sqlite3": "7.4.2",
"@types/luxon": "3.6.2",
"@types/mithril": "2.0.11",
"@types/qrcode-svg": "1.1.4",
"cborg": "4.2.2",
"dompurify": "3.2.6",
"electron": "38.1.2",
"electron-updater": "6.3.4",
"jsqr": "1.4.0",
"jszip": "3.10.1",
"linkify-html": "4.3.2",
"linkifyjs": "4.3.2",
"luxon": "3.6.1",
"mithril": "2.2.2",
"pako": "2.1.0",
"qrcode-svg": "1.1.0",
"squire-rte": "2.2.7",
"undici": "7.11.0"
},
"optionalDependencies": {
"dmg-license": "^1.0.11"
},
"devDependencies": {
"@electron/notarize": "3.0.1",
"@eslint/js": "9.29.0",
"@octokit/auth-token": "6.0.0",
"@octokit/rest": "22.0.0",
"@rollup/plugin-alias": "5.1.1",
"@rollup/plugin-commonjs": "26.0.1",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.3.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "12.1.2",
"@tutao/licc": "310.251008.0",
"@tutao/otest": "310.251008.0",
"@tutao/tutanota-test-utils": "310.251008.0",
"@types/express": "5.0.3",
"@types/pako": "^2.0.3",
"body-parser": "2.2.0",
"commander": "14.0.0",
"electron-builder": "26.0.17",
"eslint": "9.29.0",
"eslint-plugin-unicorn": "59.0.1",
"express": "5.1.0",
"fs-extra": "11.3.0",
"globals": "16.2.0",
"js-yaml": "4.1.0",
"jsdom": "26.1.0",
"node-gyp": "11.2.0",
"octokit": "5.0.3",
"prettier": "3.5.3",
"rolldown": "1.0.0-beta.16",
"rollup": "4.44.2",
"rollup-plugin-visualizer": "6.0.3",
"testdouble": "3.20.2",
"typescript": "5.8.3",
"typescript-eslint": "8.34.0",
"wasm-pack": "git+https://github.com/tutao/wasm-pack.git#69f8269704aaccd8294edbb33e819687dfc227bf",
"xhr2": "0.2.1",
"zx": "8.5.5"
},
"workspaces": [
"./packages/*"
],
"engines": {
"npm": ">=10.0.0",
"node": ">=22.16.0"
}
}