Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function isDefaultAddonBlueprint(blueprint) {
let isCustomBlueprint = !isDefaultBlueprint(blueprint);
let isDefaultAddonBlueprint;
if (isCustomBlueprint) {
let keywords;
if (blueprint.path) {
keywords = utils.require(path.join(blueprint.path, 'package')).keywords;
} else {
keywords = await npm.json(`v ${blueprint.packageName} keywords`);
}
isDefaultAddonBlueprint = !(keywords && keywords.includes('ember-blueprint'));
}
return isDefaultAddonBlueprint;
}