Documentation / zerotal / build / registerProvider
Function: registerProvider()
registerProvider(
options):Promise<RegisterResult>
Defined in: packages/core/src/build/codemod.ts:52
Register a provider in the app's bootstrap providers file: adds the import and appends it to the default-exported array. Idempotent.
Parameters
options
Returns
Promise<RegisterResult>
'added' | 'exists' (already registered) | 'missing' (no bootstrap file)