pi loads every .ts file in its extensions folder as a separate extension
FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
A pi extension cannot be split into sibling modules next to its entry file, because each .ts file there loads as its own extension. Splitting needs a subfolder with index.ts (for example extensions/rvow/index.ts), plus changes to the installer's copy step and to any hook path that points at the file.
Evidence#
Noted during the rvow pi extension work on 2026-10-02, from the session notes; not re-run for this lesson.
Also found by searching
- can a pi extension be split into several ts files next to the entry
- pi loads every ts file in the extensions folder as an extension
- how do I split a large pi extension into modules
- pi extension subfolder index.ts