npm.io
1.0.37 • Published 3d ago

@tim-fs/shared-fs

Licence
MIT
Version
1.0.37
Deps
6
Size
14 kB
Vulns
0
Weekly
0

@tim-fs/shared-fs

Internal filesystem helpers for TIM. The package wraps chokidar watchers, glob matching, JSON patching, and path utilities used by @tim-fs/core.

Main exports

  • watch
  • test
  • globFiles
  • calculateFileForGlob
  • getMachines
  • getInBetweenPaths
  • patchJson

Run

From the repo root:

  • pnpm install
  • pnpm --filter ./packages/shared-fs build
  • pnpm --filter ./packages/shared-fs typecheck
  • pnpm --filter ./packages/shared-fs test

Key paths

  • src/chokidar.ts: watcher helpers
  • src/glob.ts: glob and machine discovery helpers
  • src/fs.ts: JSON patch helpers
  • src/paths.ts: path utilities