Improved Import Specificity
The CLI now uses more targeted imports instead of importing entire modules:
- Process Module: Instead of importing the entire
node:processmodule, the CLI now imports only thecwdfunction directly:
// Before: import YP6 from "node:process"
// After: import { cwd as Ti0 } from "node:process"
This change reduces memory footprint by only loading the specific functionality needed for getting the current working directory.
- Stream Module: Similarly, the stream module import has been optimized to import only the
PassThroughclass:
// Before: import Uz4 from "stream"
// After: import { PassThrough as MW8 } from "stream"
The PassThrough stream is used internally for piping data between different parts of the CLI without transformation.