fix(build): migrate project config to .smartconfig.json and replace smartfile usage with native fs

This commit is contained in:
2026-04-07 15:58:41 +00:00
parent d2f38be0af
commit 54caa7ae8c
15 changed files with 2050 additions and 3311 deletions

View File

@@ -33,11 +33,18 @@ The library uses feature detection to adapt to different environments:
## Available Destinations
- Console (built-in)
- File (ts_destination_file)
- Local (ts_destination_local)
- File (ts_destination_file) — uses native Node `fs` (no longer depends on @push.rocks/smartfile)
- Local (ts_destination_local)
- Clickhouse (ts_destination_clickhouse)
- Developer Tools (ts_destination_devtools)
- Receiver (ts_destination_receiver)
- Buffer (ts_destination_buffer) — in-memory circular buffer with query/filter/pagination
## Build & TS Config Notes
- `tsconfig.json` requires `"types": ["node"]` for Node globals (Buffer, process, NodeJS namespace) to be picked up by tsbuild 4.4+ / TypeScript 6.x. Without it, transitive deps like @tsclass/tsclass and @push.rocks/smartrx fail to compile because they reference Node types in their public `.d.ts`.
- Do NOT add `baseUrl` or `paths: {}``baseUrl` is deprecated in TS 6.x and triggers TS5101.
- Configuration is now in `.smartconfig.json` (renamed from `npmextra.json` in tsbuild 4.4).
## Advanced Features