-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
126 lines (126 loc) · 3.44 KB
/
package.json
File metadata and controls
126 lines (126 loc) · 3.44 KB
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
{
"name": "opentype",
"version": "1.3.0",
"description": "OpenType - Intelligent voice dictation. Speak naturally, get polished text.",
"author": {
"name": "WEIFENG2333",
"email": "liangweifeng@bytedance.com"
},
"license": "MIT",
"engines": {
"node": ">=20.0.0"
},
"main": "dist-electron/electron/main.js",
"scripts": {
"dev": "vite",
"build:frontend": "vite build",
"build:electron": "tsc -p tsconfig.electron.json",
"build:native": "swiftc -O -o native/fn-monitor native/fn-monitor.swift -framework Cocoa 2>/dev/null || true",
"build": "npm run build:native && npm run build:frontend && npm run build:electron",
"electron:dev": "concurrently \"vite\" \"wait-on http://localhost:5173 && npm run build:electron && electron .\"",
"electron:build": "npm run build && electron-builder",
"electron:build:linux": "npm run build && electron-builder --linux",
"electron:build:mac": "npm run build && electron-builder --mac",
"electron:build:win": "npm run build && electron-builder --win",
"test": "tsx scripts/test-config-helpers.ts && tsx scripts/test-migration.ts && tsx scripts/test-llm-helpers.ts && tsx scripts/test-auto-dict.ts && tsx scripts/test-word-count.ts && tsx scripts/test-i18n.ts && tsx scripts/test-pipeline-e2e.ts",
"test:api": "tsx scripts/test-api.ts",
"test:stt": "tsx scripts/test-stt.ts",
"test:pipeline": "tsx scripts/test-pipeline.ts",
"typecheck": "tsc --noEmit && tsc -p tsconfig.electron.json --noEmit",
"check": "npm run typecheck && npm test"
},
"build": {
"appId": "com.opentype.app",
"productName": "OpenType",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"dist-electron/**/*"
],
"extraResources": [
{
"from": "native/fn-monitor",
"to": "native/fn-monitor",
"filter": [
"fn-monitor"
]
}
],
"mac": {
"category": "public.app-category.productivity",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
],
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
}
],
"category": "Utility"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true
},
"publish": {
"provider": "github",
"owner": "WEIFENG2333",
"repo": "OpenType"
}
},
"dependencies": {
"electron-updater": "^6.8.3",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"ws": "^8.19.0",
"zustand": "^4.5.0"
},
"devDependencies": {
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"@types/ws": "^8.18.1",
"@vitejs/plugin-react": "^4.3.0",
"autoprefixer": "^10.4.20",
"concurrently": "^8.2.2",
"electron": "^32.0.0",
"electron-builder": "^25.0.0",
"postcss": "^8.4.40",
"tailwindcss": "^3.4.10",
"tsx": "^4.19.0",
"typescript": "^5.5.0",
"vite": "^5.4.0",
"wait-on": "^7.2.0"
}
}