-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathpackage.json
More file actions
179 lines (179 loc) · 5.39 KB
/
Copy pathpackage.json
File metadata and controls
179 lines (179 loc) · 5.39 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
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
{
"name": "rescript",
"version": "1.2.3",
"description": "Rescript — edit video and audio like you edit text, fully offline.",
"private": true,
"author": {
"name": "Wassim Gharbi",
"email": "wassgha@gmail.com",
"url": "https://github.com/wassgha"
},
"license": "PolyForm-Noncommercial-1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/wassgha/rescript.git"
},
"main": "./electron-dist/main.js",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint",
"test:i18n": "tsx tests/i18n-test.ts",
"test:timeline": "tsx tests/serialize-timeline-test.ts",
"test:ffmpeg": "tsx tests/ffmpeg-watchdog-test.ts && tsx tests/ffmpeg-core-test.ts && tsx tests/export-args-test.ts && tsx tests/native-ffmpeg-test.ts",
"postinstall": "patch-package && node scripts/copy-assets.mjs",
"build:electron": "node scripts/build-electron.mjs",
"fetch:ffmpeg": "node scripts/fetch-ffmpeg.mjs",
"typecheck:electron": "tsc -p electron/tsconfig.json --noEmit",
"electron:dev": "npm run fetch:ffmpeg -- --host && npm run build:electron && concurrently -k -n next,electron -c cyan,magenta \"next dev\" \"node scripts/electron-dev.mjs\"",
"export:web": "cross-env STATIC_EXPORT=1 next build",
"export:desktop": "cross-env STATIC_EXPORT=1 NEXT_PUBLIC_ELECTRON=1 next build",
"dist": "npm run export:desktop && npm run build:electron && npm run fetch:ffmpeg && electron-builder --config.npmRebuild=false",
"release": "npm run export:desktop && npm run build:electron && npm run fetch:ffmpeg && electron-builder --publish always --config.npmRebuild=false",
"cut:patch": "npm version patch -m \"Release v%s\" && git push --follow-tags",
"cut:minor": "npm version minor -m \"Release v%s\" && git push --follow-tags",
"cut:major": "npm version major -m \"Release v%s\" && git push --follow-tags",
"notes:preview": "tsx scripts/generate-release-notes.ts HEAD \"$(git tag --sort=-v:refname | head -1)\""
},
"dependencies": {
"@chatoctopus/timeline": "^0.3.0",
"@ffmpeg/core": "0.12.10",
"@ffmpeg/core-mt": "^0.12.10",
"@ffmpeg/ffmpeg": "0.12.15",
"@ffmpeg/util": "^0.12.2",
"@floating-ui/react": "^0.27.20",
"@huggingface/transformers": "4.2.0",
"@next/third-parties": "^16.2.12",
"@sentry/electron": "^7.16.0",
"@sentry/react": "^10.69.0",
"@vercel/analytics": "^2.0.1",
"cfb": "^1.2.2",
"lucide-react": "^1.27.0",
"next": "16.2.12",
"parakeet.js": "^1.4.4",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-resizable-panels": "^4.12.2",
"weightlift": "^0.2.1",
"zustand": "^5.0.14"
},
"devDependencies": {
"@ai-sdk/gateway": "^3.0.0",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"ai": "^6.0.193",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"dotenv": "^17.4.2",
"electron": "^42.3.0",
"electron-builder": "^26.16.1",
"electron-log": "^5.4.3",
"electron-updater": "^6.6.2",
"esbuild": "^0.28.1",
"eslint": "^9",
"eslint-config-next": "16.2.12",
"patch-package": "^8.0.1",
"tailwindcss": "^4",
"tsx": "^4.22.4",
"typescript": "^5"
},
"build": {
"appId": "io.rescript.app",
"productName": "Rescript",
"directories": {
"output": "dist",
"buildResources": "build"
},
"publish": [
{
"provider": "github",
"owner": "wassgha",
"repo": "rescript"
}
],
"files": [
"electron-dist/**/*",
"out/**/*",
"package.json",
"!electron-dist/**/*.map",
"!**/node_modules/**"
],
"asar": true,
"extraResources": [
{
"from": "build/ffmpeg/${os}-${arch}",
"to": "ffmpeg"
}
],
"afterPack": "scripts/after-pack.cjs",
"mac": {
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
},
{
"target": "zip",
"arch": [
"x64",
"arm64"
]
}
],
"category": "public.app-category.video",
"artifactName": "${productName}-mac-${arch}.${ext}",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"notarize": true,
"extendInfo": {
"NSMicrophoneUsageDescription": "Rescript can use the microphone for on-device speech transcription features.",
"NSDocumentsFolderUsageDescription": "Rescript opens and exports video and audio files you select."
}
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"arm64"
]
}
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"installerLanguages": [
"en_US",
"zh_CN",
"zh_TW",
"ja_JP",
"ko_KR",
"es_ES",
"fr_FR",
"de_DE",
"pt_BR"
],
"multiLanguageInstaller": true,
"artifactName": "${productName}-Setup.${ext}"
},
"linux": {
"target": [
"AppImage",
"deb"
],
"category": "AudioVideo",
"artifactName": "${productName}-linux.${ext}"
}
}
}