RejectedSoftware Forums

Sign up

Select a specific 'dependecy's 'configuration'

In my app package.json

...
"dependencies": {
		"vibe-d": ">=0.7.16",
		"ddbc": ">=0.2.9"
	},
...

ddbc should be using the configuration

"configurations":[
...
{ 
  ...
  "name": PGSQL,
  "versions": ["USE_PGSQL"],
  ...
},
...

How do I configure my apps package.json to force the use of USE_PGSQL?

Thanks,
Arjan

Re: Select a specific 'dependecy's 'configuration'

On Fri, 30 Aug 2013 12:36:04 GMT, Arjan wrote:

In my app package.json

...
"dependencies": {
		"vibe-d": ">=0.7.16",
		"ddbc": ">=0.2.9"
	},
...

ddbc should be using the configuration

"configurations":[
...
{ 
  ...
  "name": PGSQL,
  "versions": ["USE_PGSQL"],
  ...
},
...

How do I configure my apps package.json to force the use of USE_PGSQL?

Thanks,
Arjan

The subConfigurations field will achieve that:

{
  ...
  "dependencies": {
    "vibe-d": ">=0.7.16",
    "ddbc": ">=0.2.9"
  },
  "subConfigurations": {
    "ddbc": "PGSQL"
  }
  ...
}

I'll add a sentence in the configurations section to make this more obvious in the docs.