Skip to content

The adapter-registry does not always use a custom index-adapter #65

@ghost

Description

Re: comments on https://github.com/achambers/ember-cli-deploy/pull/47

When installing a custom index-adapter, the adapter-registry will only use the first index-adapter it finds. Depending on the order of dependencies inside an app's package.json, the first index-adapter may be the default ember-cli-deploy-redis-index-adapter.

This makes it difficult to install a custom index-adapter named ember-cli-deploy-***, since npm will usually save dependencies in alphabetical order.

Suggested Solutions
  1. Skip registering the default ember-cli-deploy-redis-index-adapter if another index-adapter exists
  2. Remove ember-cli-deploy-redis-index-adapter from the ember-cli-deploy dependencies

I can create a PR once we decide upon the best solution.

Work around

Move the custom index-adapter above the ember-cli-deploy package in your ember-cli app's package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions