How to use the ern-orchestrator.Ensure.dependencyNotInUseByAMiniApp function in ern-orchestrator

To help you get started, we’ve selected a few ern-orchestrator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electrode-io / electrode-native / ern-local-cli / src / lib / logErrorAndExitIfNotSatisfied.ts View on Github external
if (dependencyIsInNativeApplicationVersionContainerWithDifferentVersion) {
      kaxTask = kax.task(
        'Ensuring that dependency(ies) is/are present in native application version container with different version(s)'
      )
      await Ensure.dependencyIsInNativeApplicationVersionContainerWithDifferentVersion(
        dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.dependency,
        dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.descriptor,
        dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (dependencyNotInUseByAMiniApp) {
      kaxTask = kax.task(
        'Ensuring that no MiniApp(s) is/are using a dependency'
      )
      await Ensure.dependencyNotInUseByAMiniApp(
        dependencyNotInUseByAMiniApp.dependency,
        dependencyNotInUseByAMiniApp.descriptor,
        dependencyNotInUseByAMiniApp.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (dependencyIsOrphaned) {
      kaxTask = kax.task('Ensuring that depedency/dependencies is/are orphaned')
      await Ensure.dependencyIsOrphaned(
        dependencyIsOrphaned.dependency,
        dependencyIsOrphaned.descriptor,
        dependencyIsOrphaned.extraErrorMessage
      )
      kaxTask.succeed()
    }
    if (isValidNpmPackageName) {