Derives vite build.lib.entry from the exports and bin fields of the
nearest package.json. Code exports are identified by their types condition
pointing at a source file (e.g. "./src/index.ts"), and bin entries are read
from publishConfig.bin (which points at "./dist/bin/…" and is mapped back
to the corresponding source file).
Falls back to DEFAULT_ENTRY when no code entries can be derived.
Derives vite
build.lib.entryfrom theexportsandbinfields of the nearestpackage.json. Code exports are identified by theirtypescondition pointing at a source file (e.g."./src/index.ts"), and bin entries are read frompublishConfig.bin(which points at"./dist/bin/…"and is mapped back to the corresponding source file).Falls back to
DEFAULT_ENTRYwhen no code entries can be derived.