Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(tree: Tree, context: SchematicContext) =>
options.needsIndex
? addToFeature(
'',
'component',
options,
'libs',
tree,
'_base_index',
true
)(tree, context)
: noop()(tree, context),
// adjust libs barrel
(tree: Tree, context: SchematicContext) =>
!options.onlyProject && options.createBase
? addToFeature('', 'component', options, 'libs', tree, '_base', true)(
tree,
context
)
: noop()(tree, context),
// adjust libs barrel for subFolder
(tree: Tree, context: SchematicContext) =>
options.needsIndex
? addToFeature('', 'component', options, 'libs', tree, '_base_index')(
tree,
context
)
: noop()(tree, context),