mirror of
https://github.com/baairon/torlink.git
synced 2026-07-08 18:28:22 +02:00
The postbuild step was using cp and chmod, which only work on Unix. On Windows npm run build would run tsup successfully but then fail at the cp command, leaving dist/cli.cjs missing. Since the package.json bin field points there, npx torlnk would just say the command isn't recognized.I replaced the shell one-liner with scripts/postbuild.mjs Small Node script that copies cli-entry.cjs to dist/cli.cjs and marks it executable. chmod is a no-op on Windows but still does the right thing for the published package, so the output is identical across Windows, macOS, and Linux.
75 lines
1.6 KiB
JSON
75 lines
1.6 KiB
JSON
{
|
|
"name": "torlnk",
|
|
"version": "1.1.1",
|
|
"description": "A sleek, zero-setup torrent finder and downloader that lives right in your terminal.",
|
|
"type": "module",
|
|
"bin": {
|
|
"torlnk": "./dist/cli.cjs"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"preview"
|
|
],
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx src/index.tsx",
|
|
"build": "tsup",
|
|
"postbuild": "node scripts/postbuild.cjs",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"verify:seeding": "tsx scripts/verify-seeding.ts",
|
|
"previews": "tsx scripts/render-previews.tsx",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"torrent",
|
|
"torrent-client",
|
|
"torrent-search",
|
|
"downloader",
|
|
"magnet",
|
|
"magnet-links",
|
|
"p2p",
|
|
"webtorrent",
|
|
"seeding",
|
|
"tui",
|
|
"terminal",
|
|
"cli",
|
|
"ink",
|
|
"zero-configuration",
|
|
"zero-setup",
|
|
"fitgirl"
|
|
],
|
|
"author": "bairon",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/baairon/torlink.git"
|
|
},
|
|
"homepage": "https://github.com/baairon/torlink#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/baairon/torlink/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {
|
|
"env-paths": "^4.0.0",
|
|
"ink": "^7.0.5",
|
|
"parse-torrent": "^11.0.21",
|
|
"react": "^19.2.7",
|
|
"webtorrent": "^2.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.9.2",
|
|
"@types/react": "^19.2.17",
|
|
"ink-testing-library": "^4.0.0",
|
|
"tsup": "^8.5.1",
|
|
"tsx": "^4.22.4",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.8"
|
|
}
|
|
}
|