-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
42 lines (42 loc) · 3.42 KB
/
Copy pathpackage.json
File metadata and controls
42 lines (42 loc) · 3.42 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
{
"name": "f11esync",
"version": "1.3.0",
"description": "",
"type": "module",
"scripts": {
"pack": "bun -e \"const fs = require('fs'); const p = 'script/script.json'; const j = JSON.parse(fs.readFileSync(p)); j.remoteResource.hash = crypto.randomUUID().toUpperCase(); const v = j.version.split('.'); v[2] = parseInt(v[2] || 0) + 1; j.version = v.join('.'); fs.writeFileSync(p, JSON.stringify(j, null, 2)); console.log('Version:', j.version)\" && mkdir -p dist && rm -f dist/script.zip && cd script && zip -r ../dist/script.zip . -x '*.DS_Store' -x '__MACOSX/*'",
"pack:release": "bun -e \"const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json')); const p = 'script/script.json'; const j = JSON.parse(fs.readFileSync(p)); j.remoteResource.hash = crypto.randomUUID().toUpperCase(); j.version = pkg.version; fs.writeFileSync(p, JSON.stringify(j, null, 2)); console.log('Version:', j.version)\" && mkdir -p dist && rm -f dist/script.zip && cd script && zip -r ../dist/script.zip . -x '*.DS_Store' -x '__MACOSX/*'",
"build:linux": "python3 scripts/generate-third-party-licenses.py && bun build ./ws.ts --compile --minify --target=bun-linux-x64 --outfile=dist/f11esync-linux-x64 && cd dist && zip f11esync-linux-x64.zip f11esync-linux-x64 THIRD_PARTY_LICENSES.txt && rm f11esync-linux-x64",
"build:linux-arm": "python3 scripts/generate-third-party-licenses.py && bun build ./ws.ts --compile --minify --target=bun-linux-arm64 --outfile=dist/f11esync-linux-arm64 && cd dist && zip f11esync-linux-arm64.zip f11esync-linux-arm64 THIRD_PARTY_LICENSES.txt && rm f11esync-linux-arm64",
"build:mac": "python3 scripts/generate-third-party-licenses.py && bun build ./ws.ts --compile --minify --target=bun-darwin-x64 --outfile=dist/f11esync-darwin-x64 && cd dist && zip f11esync-darwin-x64.zip f11esync-darwin-x64 THIRD_PARTY_LICENSES.txt && rm f11esync-darwin-x64",
"build:mac-arm": "python3 scripts/generate-third-party-licenses.py && bun build ./ws.ts --compile --minify --target=bun-darwin-arm64 --outfile=dist/f11esync-darwin-arm64 && cd dist && zip f11esync-darwin-arm64.zip f11esync-darwin-arm64 THIRD_PARTY_LICENSES.txt && rm f11esync-darwin-arm64",
"build:win": "python3 scripts/generate-third-party-licenses.py && bun build ./ws.ts --compile --minify --target=bun-windows-x64 --outfile=dist/f11esync-windows-x64.exe && cd dist && zip f11esync-windows-x64.zip f11esync-windows-x64.exe THIRD_PARTY_LICENSES.txt && rm f11esync-windows-x64.exe",
"build:all": "bun run build:linux && bun run build:linux-arm && bun run build:mac && bun run build:mac-arm && bun run build:win",
"version": "node scripts/sync-rust-version.mjs && git add app/Cargo.toml",
"release": "npm version patch && git push && git push --tags",
"release:minor": "npm version minor && git push && git push --tags",
"release:major": "npm version major && git push && git push --tags"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/eslint-config-prettier": "^6.11.3",
"@types/fs-extra": "^11.0.4",
"bun-types": "^1.3.3",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"jiti": "^2.6.1",
"prettier": "^3.7.4",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1"
},
"keywords": [],
"author": "SaintWe",
"license": "MIT",
"dependencies": {
"chokidar": "^5.0.0",
"commander": "^14.0.2",
"fs-extra": "^11.3.2",
"socket.io": "^4.8.1"
}
}