We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d0bca commit 8bd82c7Copy full SHA for 8bd82c7
1 file changed
lib/Constants.js
@@ -1,6 +1,5 @@
1
var bower = require('bower'),
2
- fs = require('fs'),
3
- JsonWriter = require('./JsonWriter');
+ fs = require('fs');
4
5
module.exports = {
6
DefaultProjectManifestPath : './adapt.json',
@@ -32,9 +31,7 @@ function searchForHome() {
32
31
}
33
34
function getRegistry() {
+ if (process.env.ADAPT_REGISTRY) return process.env.ADAPT_REGISTRY;
35
if (fs.existsSync('./.bowerrc')) return bower.config.registry.publish;
36
-
37
- JsonWriter.writeJSONSync('.bowerrc', {registry:'http://adapt-bower-repository.herokuapp.com/'});
38
39
return 'http://adapt-bower-repository.herokuapp.com/';
40
0 commit comments