How to use the bower-json.getIssues function in bower-json

To help you get started, we’ve selected a few bower-json examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bower / bower / lib / util / readJson.js View on Github external
function(json, jsonFile) {
            var deprecated;

            if (options.logger) {
                var issues = bowerJson.getIssues(json);
                if (issues.warnings.length > 0) {
                    options.logger.warn('invalid-meta', 'for:' + jsonFile);
                }
                issues.warnings.forEach(function(warning) {
                    options.logger.warn('invalid-meta', warning);
                });
            }

            jsonFile = path.basename(jsonFile);
            deprecated = jsonFile === 'component.json' ? jsonFile : false;

            return [json, deprecated, false];
        },
        function(err) {

bower-json

Read bower.json files with semantics, normalisation, defaults and validation

MIT
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis