feat(FN-968): initialize @fusion/tui workspace package
- Add @fusion/tui as a new private workspace package with ink and React dependencies - Configure TypeScript with JSX (react-jsx), strict mode, and Node16 module resolution - Add minimal src/index.tsx entry point with package exports - Update root README.md with tui package reference - Add pnpm-lock.yaml entries for ink, ink-text-input, and @types/react
This commit is contained in:
7
packages/tui/README.md
Normal file
7
packages/tui/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# @fusion/tui
|
||||
|
||||
Terminal UI components for kb, built with [Ink](https://github.com/vadimdemedes/ink) (React for the command line).
|
||||
|
||||
## Status
|
||||
|
||||
This package is under active development and not yet published.
|
||||
35
packages/tui/package.json
Normal file
35
packages/tui/package.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "@fusion/tui",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.tsx",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "echo 'No tests yet' && exit 0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fusion/core": "workspace:*",
|
||||
"ink": "^6.8.0",
|
||||
"ink-text-input": "^6.0.0",
|
||||
"react": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^25.5.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"typescript": "^5.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.5.0"
|
||||
},
|
||||
"private": true
|
||||
}
|
||||
3
packages/tui/src/index.tsx
Normal file
3
packages/tui/src/index.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
/** @fusion/tui — Terminal UI components for kb */
|
||||
|
||||
export {};
|
||||
11
packages/tui/tsconfig.json
Normal file
11
packages/tui/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"jsx": "react-jsx",
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/**/__tests__/**/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user