Skip to content

Commit 8bd82c7

Browse files
committed
Removing edits to Constants to avoid conflict with #113
1 parent 95d0bca commit 8bd82c7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/Constants.js

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

54
module.exports = {
65
DefaultProjectManifestPath : './adapt.json',
@@ -32,9 +31,7 @@ function searchForHome() {
3231
}
3332

3433
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-
3936
return 'http://adapt-bower-repository.herokuapp.com/';
4037
}

0 commit comments

Comments
 (0)