Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async host => {
if (!getPackageJsonDependency(host, '@nguniversal/express-engine')) {
throw new SchematicsException('Could not find dependency on @nguniversal/express-engine');
}
const collectionPath = require.resolve('../../collection.json');
return version9UpdateRule(collectionPath);
};
}
return async host => {
if (!getPackageJsonDependency(host, '@nguniversal/hapi-engine')) {
throw new SchematicsException('Could not find dependency on @nguniversal/hapi-engine');
}
const collectionPath = require.resolve('../../collection.json');
return version9UpdateRule(collectionPath);
};
}