We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e88c4c commit 9e404b7Copy full SHA for 9e404b7
1 file changed
lib/Constants.js
@@ -1,5 +1,6 @@
1
var bower = require('bower'),
2
- fs = require('fs');
+ fs = require('fs'),
3
+ JsonWriter = require('./JsonWriter');
4
5
module.exports = {
6
DefaultProjectManifestPath : './adapt.json',
@@ -31,7 +32,9 @@ function searchForHome() {
31
32
}
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