Lines 6-46json
6 "homepage": "https://rudder.viraat.dev",
9 "url": "git+https://github.com/viraatdas/rudder.git"
13 "rudder": "dist/index.js"
16 "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
17 "build": "npm run clean && tsc -p tsconfig.json && npm run build-board && npm run build-native && npm run copy-native && npm run chmod-cli",
18 "build-board": "esbuild src/board/ui/index.tsx --bundle --minify --format=esm --jsx=automatic --jsx-import-source=preact --outfile=dist/board/board.js && esbuild src/board/ui/board.css --bundle --minify --outfile=dist/board/board.css",
19 "build-native": "cargo build --release --manifest-path native/Cargo.toml",
20 "check": "tsc -p tsconfig.json --noEmit",
21 "test": "tsc -p tsconfig.json && npm run chmod-cli && node --test tests/*.test.mjs",
22 "test:worker-scroll": "cargo test --manifest-path native/Cargo.toml top_origin_scroll_region_history_scrolls_like_terminal_scrollback && cargo test --manifest-path native/Cargo.toml worker_wheel && cargo test --manifest-path native/Cargo.toml wheel_scroll && cargo test --manifest-path native/Cargo.toml worker_page && cargo test --manifest-path native/Cargo.toml codex_alternate_screen_page_key",
23 "copy-native": "node -e \"const fs=require('fs');const path=require('path');const sources=[path.join('target','release','rudder-native'),path.join('native','target','release','rudder-native')];const src=sources.find((candidate)=>fs.existsSync(candidate));const dest=path.join('dist','native','rudder-native');if(src){fs.mkdirSync(path.dirname(dest),{recursive:true});fs.copyFileSync(src,dest);fs.chmodSync(dest,0o755);}else if(fs.existsSync(dest)){fs.unlinkSync(dest);}\"",
24 "chmod-cli": "node -e \"require('fs').chmodSync('dist/index.js',0o755)\"",
25 "prepack": "npm run build",
26 "postinstall": "node scripts/postinstall.mjs",
HighInstall Time Lifecycle Scripts
Package defines install-time lifecycle scripts.
package.jsonView on unpkg · L26 MediumAmbiguous Install Lifecycle Script
Install-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkg · L26 27 "start": "node dist/index.js"
32 "scripts/postinstall.mjs",
43 "@types/node": "^22.15.3",
44 "@types/ws": "^8.5.13",