Skip to content

Commit

Permalink
feat(schematics): fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alQlagin committed Oct 22, 2019
1 parent 1c4e940 commit 00a7991
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions projects/core/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ const packageJson = readFileSync(path.join(__dirname, '..', '..', 'package.json'
const version = JSON.parse(packageJson).version;
// Just return the tree
export function ngAdd(): Rule {
return (tree: Tree, _context: SchematicContext) => {
addPackageJsonDependency(
tree,
{
type: NodeDependencyType.Default,
version: version,
name: '@ngxd/core'
}
);
_context.addTask(new NodePackageInstallTask());
return tree;
};
return (tree: Tree, _context: SchematicContext) => {
addPackageJsonDependency(tree, {
type: NodeDependencyType.Default,
version: version,
name: '@ngxd/core',
});
_context.addTask(new NodePackageInstallTask());
return tree;
};
}

0 comments on commit 00a7991

Please sign in to comment.