2026-03-13 12:21:09 -06:00
|
|
|
{
|
|
|
|
|
"name": "@gsd/native",
|
|
|
|
|
"version": "0.1.0",
|
2026-03-13 12:48:27 -06:00
|
|
|
"description": "Native Rust bindings for GSD — high-performance native modules via N-API",
|
2026-03-13 12:21:09 -06:00
|
|
|
"type": "module",
|
|
|
|
|
"main": "./src/index.ts",
|
|
|
|
|
"types": "./src/index.ts",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build:native": "node ../../native/scripts/build.js",
|
|
|
|
|
"build:native:dev": "node ../../native/scripts/build.js --dev",
|
2026-03-13 13:11:40 -06:00
|
|
|
"test": "node --test src/__tests__/grep.test.mjs src/__tests__/ps.test.mjs src/__tests__/glob.test.mjs src/__tests__/clipboard.test.mjs src/__tests__/highlight.test.mjs src/__tests__/html.test.mjs"
|
2026-03-13 12:21:09 -06:00
|
|
|
},
|
|
|
|
|
"exports": {
|
|
|
|
|
".": {
|
|
|
|
|
"types": "./src/index.ts",
|
|
|
|
|
"import": "./src/index.ts"
|
|
|
|
|
},
|
|
|
|
|
"./grep": {
|
|
|
|
|
"types": "./src/grep/index.ts",
|
|
|
|
|
"import": "./src/grep/index.ts"
|
2026-03-13 12:43:50 -06:00
|
|
|
},
|
|
|
|
|
"./ps": {
|
|
|
|
|
"types": "./src/ps/index.ts",
|
|
|
|
|
"import": "./src/ps/index.ts"
|
feat: add native glob and fs_cache modules with gitignore-aware discovery (#226)
Port glob, glob_util, and fs_cache modules from Oh My Pi's pi-natives crate,
adapted for napi-rs v2. Provides gitignore-respecting filesystem discovery
with a TTL-based scan cache, mtime sorting, file-type filtering, and
node_modules exclusion.
Includes a task module for async N-API work scheduling with cooperative
cancellation (timeout-based), TypeScript type declarations and wrapper,
and 12 integration tests covering pattern matching, recursion, gitignore,
maxResults, sortByMtime, fileType filtering, and cache invalidation.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 12:45:56 -06:00
|
|
|
},
|
|
|
|
|
"./glob": {
|
|
|
|
|
"types": "./src/glob/index.ts",
|
|
|
|
|
"import": "./src/glob/index.ts"
|
2026-03-13 12:48:27 -06:00
|
|
|
},
|
|
|
|
|
"./clipboard": {
|
|
|
|
|
"types": "./src/clipboard/index.ts",
|
|
|
|
|
"import": "./src/clipboard/index.ts"
|
2026-03-13 13:01:41 -06:00
|
|
|
},
|
|
|
|
|
"./ast": {
|
|
|
|
|
"types": "./src/ast/index.ts",
|
|
|
|
|
"import": "./src/ast/index.ts"
|
2026-03-13 13:11:40 -06:00
|
|
|
},
|
2026-03-13 12:40:22 -06:00
|
|
|
"./html": {
|
|
|
|
|
"types": "./src/html/index.ts",
|
|
|
|
|
"import": "./src/html/index.ts"
|
2026-03-13 12:21:09 -06:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"files": [
|
|
|
|
|
"src"
|
|
|
|
|
],
|
|
|
|
|
"license": "MIT"
|
|
|
|
|
}
|