Files
oh-my-pi/packages/natives/package.json
T
can1357 edc0caeb0f feat(builtins): sweep of GNU/BSD compat fixes + str performance opts
Addresses a broad audit of built-in shell utilities against their real counterparts: timeout gains signal delivery, -s/-k/--preserve-status/--foreground/-v, and GNU exit codes; diff defaults to normal format and gains -w/-b/-B/-i/-c/-x/-L/-s/--strip-trailing-cr and proper -r gating; find fixes -newerXY timestamp comparison direction, anchors -regex to whole paths, and gains BSD -perm +mode, -type lists, -size T/P suffixes, -E/-x/-s flags; date gains BSD -r epoch, -v adjustments, -j -f strptime, and non-greedy -I; tail/head accept obsolete -N/+N at any position with any file count; rg resolves case flags by last occurrence and gains --path-separator and clean -0 output; stat prints integer epochs for %X/%Y/%Z and gains BSD -s/-x/-t; cksum is registered as a builtin; truncate implements -o/--io-blocks and b/= size suffixes; sleep/timeout accept infinity; yes/errno/kill accept hyphen-prefixed operands; nohup -- cmd no longer runs --; which gains BSD -s.
2026-08-20 02:33:10 +02:00

85 lines
2.1 KiB
JSON

{
"name": "@oh-my-pi/pi-natives",
"version": "17.3.8",
"description": "Native Rust bindings for PDF conversion, audio, WebRTC, grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
"type": "module",
"homepage": "https://omp.sh",
"author": "Can Boluk",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/can1357/oh-my-pi.git",
"directory": "packages/natives"
},
"bugs": {
"url": "https://github.com/can1357/oh-my-pi/issues"
},
"keywords": [
"napi",
"rust",
"native",
"grep",
"text-processing",
"clipboard",
"image",
"pty",
"shell",
"syntax-highlighting"
],
"main": "./native/index.js",
"types": "./native/index.d.ts",
"scripts": {
"build": "bun ../../scripts/bazel-natives.ts host --dest native",
"build:bindings": "bun scripts/build-bindings.ts",
"check": "biome check . && bun run check:types",
"check:types": "tsgo -p tsconfig.json --noEmit",
"lint": "biome lint .",
"test": "bun test --parallel",
"fix": "biome check --write --unsafe .",
"fmt": "biome format --write .",
"gen:native": "bun scripts/embed-native.ts",
"gen:native:reset": "bun scripts/embed-native.ts --reset",
"gen:npm": "bun scripts/gen-npm-packages.ts",
"bench": "bun bench/grep.ts",
"bench:text": "bun bench/text.ts"
},
"devDependencies": {
"@napi-rs/cli": "catalog:",
"@types/bun": "catalog:",
"cli-truncate": "6.1.1",
"diff": "9.0.0",
"gpt-tokenizer": "4.0.0",
"mitata": "1.0.34",
"slice-ansi": "9.0.0",
"string-width": "8.2.2",
"wrap-ansi": "10.0.0"
},
"engines": {
"bun": ">=1.3.14"
},
"napi": {
"binaryName": "pi_natives",
"triples": {}
},
"files": [
"src",
"native",
"README.md",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./native/index.d.ts",
"import": "./native/index.js"
},
"./desktop": {
"types": "./native/desktop.d.ts",
"import": "./native/desktop.js"
},
"./clipboard": {
"types": "./native/clipboard.d.ts",
"import": "./native/clipboard.js"
}
}
}