Files
anomalyco__opentui/packages/core/package.json
T
2026-06-09 12:44:23 +02:00

95 lines
3.5 KiB
JSON

{
"name": "@opentui/core",
"description": "OpenTUI is a TypeScript library on a native Zig core for building terminal user interfaces (TUIs)",
"repository": {
"type": "git",
"url": "https://github.com/anomalyco/opentui",
"directory": "packages/core"
},
"types": "src/index.ts",
"module": "src/index.ts",
"main": "src/index.ts",
"version": "0.4.0",
"type": "module",
"scripts": {
"build": "bun run build:native && bun run build:lib",
"build:dev": "bun run build:native:dev && bun run build:lib",
"build:lib": "bun scripts/build.ts --lib",
"build:native": "bun scripts/build.ts --native",
"build:native:dev": "bun scripts/build.ts --native --dev",
"test:native": "cd src/zig && zig build test --summary all",
"bench:native": "cd src/zig && zig build bench -Dbench-optimize=ReleaseFast --",
"bench:box-draw": "bun src/benchmark/box-draw-benchmark.ts",
"bench:text-table": "bun src/benchmark/text-table-benchmark.ts",
"bench:ts": "bun src/benchmark/native-span-feed-benchmark.ts --suite=quick --json=src/benchmark/latest-quick-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=default --json=src/benchmark/latest-default-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=large --json=src/benchmark/latest-large-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=all --json=src/benchmark/latest-all-bench-run.json && bun src/benchmark/native-span-feed-async-benchmark.ts --json=src/benchmark/latest-async-bench-run.json",
"publish": "bun scripts/publish.ts",
"test:dist": "bun scripts/dist-test.ts",
"test:js": "bun test",
"test:js:node": "bun scripts/test-node.ts",
"test": "bun run test:native && bun run test:js"
},
"license": "MIT",
"devDependencies": {
"@opentui/keymap": "workspace:*",
"@types/bun": "latest",
"@types/node": "^24.0.0",
"commander": "^13.1.0",
"typescript": "^5",
"web-tree-sitter": "0.25.10"
},
"dependencies": {
"bun-ffi-structs": "0.2.3",
"diff": "9.0.0",
"marked": "17.0.1",
"string-width": "7.2.0",
"strip-ansi": "7.1.2",
"yoga-layout": "3.2.1"
},
"peerDependencies": {
"web-tree-sitter": "0.25.10"
},
"optionalDependencies": {
"@opentui/core-darwin-x64": "0.4.0",
"@opentui/core-darwin-arm64": "0.4.0",
"@opentui/core-linux-x64": "0.4.0",
"@opentui/core-linux-arm64": "0.4.0",
"@opentui/core-win32-x64": "0.4.0",
"@opentui/core-win32-arm64": "0.4.0",
"@opentui/core-linux-x64-musl": "0.4.0",
"@opentui/core-linux-arm64-musl": "0.4.0"
},
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
},
"./testing": {
"types": "./src/testing.ts",
"import": "./src/testing.ts"
},
"./runtime-plugin": {
"types": "./src/runtime-plugin.ts",
"import": "./src/runtime-plugin.ts"
},
"./runtime-plugin-support": {
"types": "./src/runtime-plugin-support.ts",
"import": "./src/runtime-plugin-support.ts"
},
"./runtime-plugin-support/configure": {
"types": "./src/runtime-plugin-support-configure.ts",
"import": "./src/runtime-plugin-support-configure.ts"
},
"./tree-sitter/update-assets": {
"types": "./src/lib/tree-sitter/update-assets.ts",
"import": "./src/lib/tree-sitter/update-assets.ts"
},
"./parser.worker": {
"types": "./src/lib/tree-sitter/parser.worker.ts",
"import": "./src/lib/tree-sitter/parser.worker.ts"
}
},
"engines": {
"bun": ">=1.3.0"
}
}