fix(core): Replace smartchok/smartfile with smartwatch/smartfs, update watcher and plugins, and bump dependencies

This commit is contained in:
2025-12-01 12:03:00 +00:00
parent f73ca7ac2f
commit bcbf6fc139
11 changed files with 2681 additions and 1644 deletions

View File

@@ -14,7 +14,8 @@
6. **echo**: Test mode that runs `npm -v` (for testing)
## Key Implementation Details
- Uses `@push.rocks/smartchok` for file watching
- Uses `@push.rocks/smartwatch` (v5.x) for file watching - class is `Smartwatch`
- Uses `@push.rocks/smartfs` (v1.x) for directory operations - uses `SmartFs` with `SmartFsProviderNode`
- Uses `@git.zone/tsbundle` for bundling with esbuild
- Uses `@api.global/typedserver` for development server in element mode
- Element/website modes watch multiple `ts*/` directories
@@ -41,4 +42,9 @@
## Common Issues to Watch For
- The test mode runs `test2` script, not `test`
- Website mode restarts the entire server process on backend changes
- Element mode rebuilds and reloads on any ts* folder change
- Element mode rebuilds and reloads on any ts* folder change
## Migration Notes (v2.2.x)
- Replaced `@push.rocks/smartchok` with `@push.rocks/smartwatch` (v5.x)
- Replaced `@push.rocks/smartfile` with `@push.rocks/smartfs` for directory listing
- Class names: `Smartwatch` for file watching, `SmartFs` + `SmartFsProviderNode` for filesystem ops