chore: organized package distribution files and synchronized export metadata

- Updated package.json files arrays across multiple packages to include CHANGELOG.md and README.md for distribution.
- Expanded natives package description and keywords to document Rust bindings for clipboard, image, PTY, shell, and syntax-highlighting functionality.
- Added sync-exports npm script to root package.json for managing package export synchronization.
- Removed public directory from stats package and README.md from utils package distribution files.
This commit is contained in:
can1357
2026-02-21 16:35:32 +01:00
parent 82c0d9bb4b
commit 830cb54c3a
9 changed files with 28 additions and 12 deletions
+2 -1
View File
@@ -36,7 +36,8 @@
"publish:dry": "bun run prepublishOnly && npm publish -ws --access public --dry-run",
"release": "bun scripts/release.ts",
"generate-models": "bun --cwd=packages/ai scripts/generate-models.ts",
"generate-docs-index": "bun --cwd=packages/coding-agent run generate-docs-index"
"generate-docs-index": "bun --cwd=packages/coding-agent run generate-docs-index",
"sync-exports": "bun scripts/sync-exports.ts"
},
"devDependencies": {
"@biomejs/biome": "^2",
+2 -1
View File
@@ -44,7 +44,8 @@
},
"files": [
"src",
"README.md"
"README.md",
"CHANGELOG.md"
],
"exports": {
".": {
+2 -1
View File
@@ -63,7 +63,8 @@
},
"files": [
"src",
"README.md"
"README.md",
"CHANGELOG.md"
],
"exports": {
".": {
+7
View File
@@ -1,11 +1,18 @@
# Changelog
## [Unreleased]
### Added
- Expanded package exports to support subpath imports for clipboard, glob, grep, highlight, html, image, keys, ps, pty, shell, text, and work modules
- Added wildcard export patterns (`./*`) for all submodules to enable flexible import paths
### Changed
- Updated package description to clarify native bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations
- Expanded package keywords to include clipboard, image, pty, shell, and syntax-highlighting for better discoverability
- Added README.md to package distribution files
## [12.10.0] - 2026-02-18
### Changed
+9 -3
View File
@@ -2,7 +2,7 @@
"type": "module",
"name": "@oh-my-pi/pi-natives",
"version": "12.17.0",
"description": "Native Rust functionality via N-API",
"description": "Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
"homepage": "https://github.com/can1357/oh-my-pi",
"author": "Can Bölük",
"license": "MIT",
@@ -19,7 +19,12 @@
"rust",
"native",
"grep",
"text-processing"
"text-processing",
"clipboard",
"image",
"pty",
"shell",
"syntax-highlighting"
],
"main": "./src/index.ts",
"types": "./src/index.ts",
@@ -43,7 +48,8 @@
},
"files": [
"src",
"native"
"native",
"README.md"
],
"exports": {
".": {
-1
View File
@@ -55,7 +55,6 @@
},
"files": [
"src",
"public",
"build.ts",
"tailwind.config.js",
"README.md"
+2 -1
View File
@@ -39,6 +39,7 @@
]
},
"files": [
"src"
"src",
"README.md"
]
}
+3 -2
View File
@@ -48,8 +48,9 @@
"bun": ">=1.3.7"
},
"files": [
"src/**/*",
"README.md"
"src",
"README.md",
"CHANGELOG.md"
],
"exports": {
".": {
+1 -2
View File
@@ -37,8 +37,7 @@
"bun": ">=1.3.7"
},
"files": [
"src",
"README.md"
"src"
],
"exports": {
".": {