xonecas.io
70160
Ce

cel-tui / commit a05e989

chore: prepare packages for npm publishing

- Add exports map, files, description, repository, homepage, keywords,
  and peerDependencies to all three package.json files.
- Move get-east-asian-width from root devDeps to @cel-tui/core deps.
- Exclude test files via files glob negation pattern.
- Follow yoctomarkdown pattern: ship TypeScript source, no build step.

xonecas2026-04-04 a05e9890525a82463083b546d93a1ff2f9b088f2 parent a70a559

4 files changed

bun.lock+13−3
@@ -17,22 +17,32 @@
1717 },
1818 "packages/components": {
1919 "name": "@cel-tui/components",
20- "version": "0.0.1",
20+ "version": "0.1.0",
2121 "dependencies": {
2222 "@cel-tui/core": "workspace:*",
2323 "@cel-tui/types": "workspace:*",
2424 },
25+ "peerDependencies": {
26+ "typescript": ">=5.0.0",
27+ },
2528 },
2629 "packages/core": {
2730 "name": "@cel-tui/core",
28- "version": "0.0.1",
31+ "version": "0.1.0",
2932 "dependencies": {
3033 "@cel-tui/types": "workspace:*",
34+ "get-east-asian-width": "^1.5.0",
35+ },
36+ "peerDependencies": {
37+ "typescript": ">=5.0.0",
3138 },
3239 },
3340 "packages/types": {
3441 "name": "@cel-tui/types",
35- "version": "0.0.1",
42+ "version": "0.1.0",
43+ "peerDependencies": {
44+ "typescript": ">=5.0.0",
45+ },
3646 },
3747 },
3848 "packages": {
packages/components/package.json+29−2
@@ -1,12 +1,39 @@
11 {
22 "name": "@cel-tui/components",
33 "version": "0.1.0",
4+ "description": "Pre-made components for cel-tui — Button, Spacer, Divider",
45 "type": "module",
5- "main": "src/index.ts",
6- "types": "src/index.ts",
6+ "module": "src/index.ts",
7+ "types": "./src/index.ts",
8+ "exports": {
9+ ".": {
10+ "types": "./src/index.ts",
11+ "import": "./src/index.ts",
12+ "default": "./src/index.ts"
13+ }
14+ },
15+ "files": [
16+ "src/**/*.ts"
17+ ],
718 "license": "MIT",
19+ "repository": {
20+ "type": "git",
21+ "url": "https://github.com/sacenox/cel-tui",
22+ "directory": "packages/components"
23+ },
24+ "homepage": "https://github.com/sacenox/cel-tui#readme",
25+ "keywords": [
26+ "tui",
27+ "terminal",
28+ "components",
29+ "button",
30+ "typescript"
31+ ],
832 "dependencies": {
933 "@cel-tui/types": "workspace:*",
1034 "@cel-tui/core": "workspace:*"
35+ },
36+ "peerDependencies": {
37+ "typescript": ">=5.0.0"
1138 }
1239 }
packages/core/package.json+34−3
@@ -1,11 +1,42 @@
11 {
22 "name": "@cel-tui/core",
33 "version": "0.1.0",
4+ "description": "Core framework engine for cel-tui — primitives, layout, rendering, input",
45 "type": "module",
5- "main": "src/index.ts",
6- "types": "src/index.ts",
6+ "module": "src/index.ts",
7+ "types": "./src/index.ts",
8+ "exports": {
9+ ".": {
10+ "types": "./src/index.ts",
11+ "import": "./src/index.ts",
12+ "default": "./src/index.ts"
13+ }
14+ },
15+ "files": [
16+ "src/**/*.ts",
17+ "!src/**/*.test.ts"
18+ ],
719 "license": "MIT",
20+ "repository": {
21+ "type": "git",
22+ "url": "https://github.com/sacenox/cel-tui",
23+ "directory": "packages/core"
24+ },
25+ "homepage": "https://github.com/sacenox/cel-tui#readme",
26+ "keywords": [
27+ "tui",
28+ "terminal",
29+ "cli",
30+ "typescript",
31+ "bun",
32+ "flexbox",
33+ "layout"
34+ ],
835 "dependencies": {
9- "@cel-tui/types": "workspace:*"
36+ "@cel-tui/types": "workspace:*",
37+ "get-east-asian-width": "^1.5.0"
38+ },
39+ "peerDependencies": {
40+ "typescript": ">=5.0.0"
1041 }
1142 }
packages/types/package.json+29−3
@@ -1,8 +1,34 @@
11 {
22 "name": "@cel-tui/types",
33 "version": "0.1.0",
4+ "description": "Type definitions for cel-tui, a TypeScript TUI framework",
45 "type": "module",
5- "main": "src/index.ts",
6- "types": "src/index.ts",
7- "license": "MIT"
6+ "module": "src/index.ts",
7+ "types": "./src/index.ts",
8+ "exports": {
9+ ".": {
10+ "types": "./src/index.ts",
11+ "import": "./src/index.ts",
12+ "default": "./src/index.ts"
13+ }
14+ },
15+ "files": [
16+ "src/index.ts"
17+ ],
18+ "license": "MIT",
19+ "repository": {
20+ "type": "git",
21+ "url": "https://github.com/sacenox/cel-tui",
22+ "directory": "packages/types"
23+ },
24+ "homepage": "https://github.com/sacenox/cel-tui#readme",
25+ "keywords": [
26+ "tui",
27+ "terminal",
28+ "types",
29+ "typescript"
30+ ],
31+ "peerDependencies": {
32+ "typescript": ">=5.0.0"
33+ }
834 }