You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
663 B
26 lines
663 B
import {Awaitable, UniversalPath} from '../util'
|
|
import {ExtolloAwareNodeModule} from './types'
|
|
import {BaseEvent} from './bus'
|
|
|
|
/**
|
|
* An event indicating that an NPM package has been discovered
|
|
* by the framework.
|
|
*
|
|
* Application services can listen for this event to register
|
|
* various discovery logic (e.g. automatically boot units
|
|
*/
|
|
export class PackageDiscovered extends BaseEvent {
|
|
constructor(
|
|
public packageConfig: ExtolloAwareNodeModule,
|
|
public packageJson: UniversalPath,
|
|
) {
|
|
super()
|
|
}
|
|
|
|
eventName = '@extollo/lib.PackageDiscovered'
|
|
|
|
shouldBroadcast(): Awaitable<boolean> {
|
|
return false
|
|
}
|
|
}
|