mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-21 09:08:01 +02:00
Root package.json declared no main or exports, so OpenCode npm plugin resolution (import.meta.resolve) failed and the plugin was silently skipped (#3127). The .opencode TypeScript sources imported siblings with .js specifiers that only exist after compilation, so the home install, which loads the .ts files in place, crashed the tool registry with ERR_MODULE_NOT_FOUND (#3112). Declare main/types/exports on the root package pointing at the compiled plugin entry, switch the sources to .ts specifiers, and enable allowImportingTsExtensions with rewriteRelativeImportExtensions so the emitted dist keeps working .js specifiers. Add smoke tests that build the package, resolve and import the entry by name from a temp install, and verify every in-place relative import resolves. Fixes #3127 Fixes #3112
16 lines
611 B
TypeScript
16 lines
611 B
TypeScript
/**
|
|
* ECC Custom Tools for OpenCode
|
|
*
|
|
* These tools extend OpenCode with additional capabilities.
|
|
*/
|
|
|
|
// Re-export all tools
|
|
export { default as runTests } from "./run-tests.ts"
|
|
export { default as checkCoverage } from "./check-coverage.ts"
|
|
export { default as securityAudit } from "./security-audit.ts"
|
|
export { default as formatCode } from "./format-code.ts"
|
|
export { default as lintCheck } from "./lint-check.ts"
|
|
export { default as gitSummary } from "./git-summary.ts"
|
|
export { default as changedFiles } from "./changed-files.ts"
|
|
export { default as dependencyAnalyzer } from "./dependency-analyzer.ts"
|