Move pi-web-plugins/relays/ to pi-packages/relays/ so PiWebPluginCatalog's bundled directory scan (dist/pi-web-plugins) can never discover it, while scripts/build-plugins.mjs still builds it into dist/pi-packages/relays for shipping inside the npm tarball. This is prep for auto-installing it as a real Pi package instead of relying on bundled discovery. - Extend build-plugins.mjs to build both pi-web-plugins/ and pi-packages/ into their own dist/ output directories (build and --watch mode). - Add pi-packages/**/*.ts to tsconfig.json, tsconfig.plugins.json, eslint.config.js, knip.json, package.json's lint script, and vitest.config.ts's test include so the relocated package keeps being typechecked, linted, knip-checked, and tested in its new location. - Extend scripts/verify-staged.mjs's lintable/related-source directory lists and its plugin-public-API test trigger to also cover pi-packages/. - Extend pi-web-plugins/pluginPublicApi.test.ts to scan both pi-web-plugins/ and pi-packages/ for public-API compliance. - Add a defaultPluginRoots regression test confirming pi-packages/ is never a bundled/local discovery root, and extend the clean-build fixture test to assert relays ships into dist/pi-packages/ and never leaks into dist/pi-web-plugins/. - Update docs/plugins.md's Relays section and rename "Dual-shaped plugin packages" to "Pi packages shipped alongside bundled plugins" to describe the new location and that relays now requires Pi-package install instead of bundled discovery; update skills/README.md's path reference. - Update the relays-standalone-pi-package changeset to reflect the new shape instead of the now-stale "remains bundled" claim. No code changes were needed in src/server/piWebPluginCatalog.ts: its bundled root already resolves to exactly dist/pi-web-plugins and no root ever pointed at pi-packages, so the relocation alone removes relays from bundled/local discovery. Verification: npm run verify (typecheck + lint + knip + vitest, 334 files / 3258 tests) passes on the full tree, including the relocated package's own tests (relayDiscovery/relayResources/relaysPanelElement/markdownDocument) running unchanged from pi-packages/relays/.
8 lines
146 B
JSON
8 lines
146 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"noEmit": true
|
|
},
|
|
"include": ["pi-web-plugins/**/*.ts", "pi-packages/**/*.ts"]
|
|
}
|