Configuration options
Result with discovered classes and generated manifest path
decorators, and writes an import manifest that prevents tree-shaking from removing those classes.
import { generateClassRegistrationsManifest } from '@memberjunction/codegen-lib';
const result = await generateClassRegistrationsManifest({
outputPath: './src/generated/class-manifest.ts'
});
if (result.success) {
console.log(`Manifest: ${result.packages.length} packages, ${result.classes.length} classes`);
}
Generates a class registrations manifest for the app in the given directory.
Walks the app's dependency tree from its package.json, scans each dependency for