-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
189 lines (189 loc) · 9.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "threema-desktop",
"productName": "Threema",
"description": "Use Threema on your Desktop",
"author": "Threema GmbH",
"version": "2.0-beta47",
"versionCode": 49,
"license": "AGPL-3.0+",
"homepage": "https://threema.ch/",
"keywords": [
"threema",
"messenger",
"communication"
],
"private": true,
"type": "module",
"main": "build/electron/electron-main/electron-main.cjs",
"sideEffects": false,
"scripts": {
"clean": "npm run clean:build && npm run clean:node_modules",
"clean:build": "rm -rf build packaging/build && npm run clean:build:flatpak",
"clean:build:flatpak": "rm -rf packaging/flatpak/build packaging/flatpak/repo packaging/flatpak/ch.threema.*-desktop.yml packaging/flatpak/generated-sources.json packaging/flatpak/.flatpak-builder",
"clean:node_modules": "rm -rf node_modules && for d in \"libs/\"*; do rm -rf $d/node_modules; done",
"build": "npm run rebuild && node tools/build-electron.cjs",
"build:cli": "VITE_MAKE=cli,cli,consumer,sandbox vite build -m production -c config/vite.config.ts",
"dist:consumer-sandbox": "npm run build consumer sandbox && node tools/dist-electron.cjs consumer sandbox",
"dist:consumer-live": "npm run build consumer live && node tools/dist-electron.cjs consumer live",
"dist:work-sandbox": "npm run build work sandbox && node tools/dist-electron.cjs work sandbox",
"dist:work-live": "npm run build work live && node tools/dist-electron.cjs work live",
"dist:work-onprem": "npm run build work onprem && node tools/dist-electron.cjs work onprem",
"dist:test:consumer-sandbox": "npm run build -- --testing consumer sandbox && node tools/dist-electron.cjs --testing consumer sandbox",
"dist:test:consumer-live": "npm run build -- --testing consumer live && node tools/dist-electron.cjs --testing consumer live",
"dist:test:work-live": "npm run build -- --testing work live && node tools/dist-electron.cjs --testing work live",
"dev:cli": "npm run build:cli && node ./build/cli/cli/bin.cjs",
"dev:consumer-sandbox": "npm run rebuild && tools/dev-electron.sh consumer sandbox",
"dev:consumer-live": "npm run rebuild && tools/dev-electron.sh consumer live",
"dev:work-sandbox": "npm run rebuild && tools/dev-electron.sh work sandbox",
"dev:work-live": "npm run rebuild && tools/dev-electron.sh work live",
"dev:work-onprem": "npm run rebuild && tools/dev-electron.sh work onprem",
"generate-screenshots": "npm run dist:test:consumer-live && npm run dist:test:work-live && npm run test:playwright:screenshots:consumer-live && npm run test:playwright:screenshots:work-live && python3 tools/macos-style-screenshots.py",
"rebuild": "electron-rebuild",
"test:karma": "node tools/run-tests.cjs karma",
"test:mocha": "node tools/run-tests.cjs mocha",
"test:playwright:consumer-sandbox": "PW_FLAVOR=consumer-sandbox PW_PROFILE=playwright npx playwright test",
"test:playwright:screenshots:consumer-live": "PW_SCREENSHOTS=true PW_FLAVOR=consumer-live PW_PROFILE=playwright npx playwright test",
"test:playwright:screenshots:work-live": "PW_SCREENSHOTS=true PW_FLAVOR=work-live PW_PROFILE=playwright npx playwright test",
"lint": "FAILED=\"\"; for t in tsc:parallel svelte eslint prettier; do npm run lint:${t} || FAILED=\"$FAILED $t\"; done; if [ -n \"$FAILED\" ]; then echo \"Failed: $FAILED\"; false; else echo \"All linters passed.\"; fi",
"lint:fix": "npm run lint:eslint:fix && npm run lint:prettier:fix",
"lint:tsc": "find src packaging -name tsconfig.json -exec echo {} \\; -exec npx tsc --noEmit -p {} \\;",
"lint:tsc:parallel": "find src packaging -name tsconfig.json | xargs -I{} -P $(getconf _NPROCESSORS_ONLN) npx tsc --noEmit -p {}",
"lint:tsc:parallel:uniq": "npm run lint:tsc:parallel | grep -- '^src/' | sort -u",
"lint:eslint": "NODE_OPTIONS=\"--max-old-space-size=4096\" eslint . --ext .js,.cjs,.mjs,.svelte,.ts",
"lint:eslint:fix": "NODE_OPTIONS=\"--max-old-space-size=4096\" eslint . --ext .js,.cjs,.mjs,.svelte,.ts --fix",
"lint:prettier": "prettier -c \"**/*.{css,html,js,json,md,scss,svelte,ts,xml,yml}\"",
"lint:prettier:fix": "prettier --write \"**/*.{css,html,js,json,md,scss,svelte,ts,xml,yml}\"",
"lint:svelte": "svelte-check --workspace src/app/ --no-tsconfig --compiler-warnings \"a11y-click-events-have-key-events:ignore\"",
"package": "npm run package --prefix ./packaging --",
"protobuf:generate": "tools/generate-protobuf.sh",
"safe-enums:generate": "npm run safe-enums:generate:module && npm run safe-enums:generate:prettify",
"safe-enums:generate:module": "tools/generate-safe-enums.cjs < src/enum/schema.ts > src/common/enum.ts",
"safe-enums:generate:prettify": "prettier --write \"src/common/enum.ts\"",
"structbuf:generate": "tools/generate-structbuf.sh",
"i18n:parse": "i18next 'src/app/**/*.{ts,svelte}' 'src/common/dom/ui/**/*.ts' -o 'src/translations/$LOCALE/$NAMESPACE.json' -c config/i18next-parser.config.js",
"assets:generate:icons:macos": "tools/generate-icons-macos.sh",
"assets:generate:icons:windows": "tools/generate-icons-windows.sh",
"assets:generate:icons:flatpak": "tools/generate-icons-flatpak.sh",
"assets:generate:icons:web": "tools/generate-icons-web.sh",
"assets:generate:icons": "npm run assets:generate:icons:macos && npm run assets:generate:icons:windows && npm run assets:generate:icons:flatpak && npm run assets:generate:icons:web"
},
"engines": {
"node": "20.11.1",
"npm": "10.2.4"
},
"dependencies": {
"@badrap/valita": "0.3.9",
"@mattiasbuelens/web-streams-adapter": "0.1.0",
"@sentry/browser": "8.33.1",
"@threema/compose-area": "~0.4.6",
"@threema/threema-markup": "1.1.0",
"argon2": "threema-ch/node-argon2#threema-20241021",
"autolinker": "4.0.0",
"better-sqlcipher": "threema-ch/better-sqlcipher#11.3.0-sqlcipher4.6.1-bearssl0.6",
"emojibase-data": "15.3.2",
"fast-sha256": "1.3.0",
"i18next": "~23.14.0",
"i18next-icu": "~2.3.0",
"intl-messageformat": "~10.5.14",
"libthreema": "file:libs/libthreema",
"long": "5.2.3",
"protobufjs": "7.2.6",
"qrcode": "^1.5.3",
"scrypt-js": "3.0.1",
"svelte": "4.2.19",
"synchronous-promise": "~2.0.17",
"ts-events": "3.4.1",
"ts-sql-query": "1.65.0",
"tweetnacl": "1.0.3",
"web-streams-polyfill": "~3.3.2"
},
"electron": {
"external": [
"argon2",
"better-sqlcipher",
"electron"
],
"dist": {
"dependencyTree": {
"argon2": [
"@phc/format"
]
},
"include": {
"/": "^(LICENSE|package.json|package-lock.json|README.md)$",
"/build/electron/": "^(app($|\\/)|electron-main($|\\/)|electron-preload($|\\/))",
"/node_modules/@phc/format/": "^(index.js|package.json)$",
"/node_modules/argon2/": "^(argon2.cjs|package.json)$",
"/node_modules/argon2/build/Release/": "^argon2.node$",
"/node_modules/better-sqlcipher/": "^(lib($|\\/)|package.json$)",
"/node_modules/better-sqlcipher/build/Release/": "^better_sqlcipher.node$"
}
}
},
"devDependencies": {
"@electron/fuses": "1.8.0",
"@electron/notarize": "2.4.0",
"@electron/osx-sign": "1.3.1",
"@electron/packager": "18.3.4",
"@electron/rebuild": "3.6.0",
"@playwright/test": "1.46.1",
"@prettier/plugin-xml": "3.4.1",
"@sveltejs/vite-plugin-svelte": "2.5.3",
"@types/chai": "~4.3.0",
"@types/debug": "~4.1.12",
"@types/estree": "~1.0.5",
"@types/fs-extra": "~11.0.4",
"@types/mocha": "~10.0.0",
"@types/node": "~20.11.1",
"@types/qrcode": "^1.5.5",
"@types/sinon": "~17.0.2",
"@types/sinon-chai": "~3.2.9",
"@typescript-eslint/eslint-plugin": "~7.18.0",
"@typescript-eslint/parser": "~7.18.0",
"@typescript-eslint/types": "~7.18.0",
"@typescript-eslint/utils": "~7.18.0",
"chai": "~4.5.0",
"debug": "~4.3.5",
"electron": "34.0.0-beta.12",
"electron-installer-dmg": "~5.0.1",
"es-module-lexer": "~1.5.4",
"eslint": "~8.57.0",
"eslint-config-prettier": "~9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsdoc": "~50.2.2",
"eslint-plugin-svelte": "~2.43.0",
"eslint-plugin-threema": "file:libs/eslint-plugin-threema",
"fs-extra": "~11.2.0",
"i18next-parser": "~9.0.0",
"karma": "~6.4.0",
"karma-chai": "~0.1.0",
"karma-chrome-launcher": "~3.2.0",
"karma-firefox-launcher": "~2.1.2",
"karma-junit-reporter": "~2.0.1",
"karma-mocha": "~2.0.1",
"karma-mocha-reporter": "~2.2.5",
"magic-string": "0.30.11",
"mocha": "~10.7.3",
"mocha-junit-reporter": "~2.2.0",
"prettier": "3.3.3",
"prettier-plugin-svelte": "3.2.6",
"protobufjs-cli": "1.1.2",
"sass": "~1.77.5",
"sinon": "~18.0.1",
"sinon-chai": "~3.7.0",
"svelte-check": "3.8.6",
"svelte-preprocess": "5.1.4",
"svelte2tsx": "0.7.16",
"ts-proto": "~1.167.2",
"typescript": "~5.5.4",
"typescript-eslint-parser-for-extra-files": "~0.7.0",
"vite": "4.5.5",
"vite-tsconfig-paths": "4.2.1"
},
"overrides": {
"glob-parent": "^5.1.2",
"optionator": "0.9.3",
"node-gyp": "~9.3.1"
}
}