Skip to content

Commit 9e404b7

Browse files
committed
Fix for issue #2149
1 parent 6e88c4c commit 9e404b7

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/Constants.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var bower = require('bower'),
2-
fs = require('fs');
2+
fs = require('fs'),
3+
JsonWriter = require('./JsonWriter');
34

45
module.exports = {
56
DefaultProjectManifestPath : './adapt.json',
@@ -31,7 +32,9 @@ function searchForHome() {
3132
}
3233

3334
function getRegistry() {
34-
if (process.env.ADAPT_REGISTRY) return process.env.ADAPT_REGISTRY;
3535
if (fs.existsSync('./.bowerrc')) return bower.config.registry.publish;
36+
37+
JsonWriter.writeJSONSync('.bowerrc', {registry:'http://adapt-bower-repository.herokuapp.com/'});
38+
3639
return 'http://adapt-bower-repository.herokuapp.com/';
3740
}

0 commit comments

Comments
 (0)