Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6 default registry config should come from .bowerrc #80

Open
oliverfoster opened this issue Oct 10, 2017 · 0 comments
Open

v6 default registry config should come from .bowerrc #80

oliverfoster opened this issue Oct 10, 2017 · 0 comments
Assignees

Comments

@oliverfoster
Copy link
Member

instead of a hard coded value, we can get this from the adapt-cli/.bowerrc

function getRegistry() {
    if (process.env.ADAPT_REGISTRY) return process.env.ADAPT_REGISTRY;
    if (fs.existsSync('./.bowerrc')) {
        return JSON.parse(fs.readFileSync('./.bowerrc').toString()).registry;
    }
    if (fs.existsSync('../../.bowerrc')) {
        return JSON.parse(fs.readFileSync('../../.bowerrc').toString()).registry;
    }
    return JSON.parse(fs.readFileSync(path.join(__dirname, '../.bowerrc')).toString()).registry;
}
@oliverfoster oliverfoster changed the title v4 default registry config should come from .bowerrc v6 default registry config should come from .bowerrc Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants