Skip to content

Commit 6a8cd91

Browse files
committed
Fixed generation schematics for some chart types
1 parent aa3e7f0 commit 6a8cd91

File tree

9 files changed

+9
-10
lines changed

9 files changed

+9
-10
lines changed

projects/ng2-charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-charts",
3-
"version": "3.0.6",
3+
"version": "3.0.7",
44
"publishConfig": {
55
"registry": "https://registry.npmjs.org/"
66
},

projects/ng2-charts/schematics/collection.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"factory": "./ng-add/setup-project",
1414
"schema": "./ng-add/schema.json"
1515
},
16-
1716
"bar": {
1817
"description": "Generate a component with a bar chart.",
19-
"factory": "./ng-generate/index",
18+
"factory": "./ng-generate/bar/index",
2019
"schema": "./ng-generate/schema.json"
2120
},
2221
"bubble": {

projects/ng2-charts/schematics/ng-generate/bar/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/bubble/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/doughnut/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/pie/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/polar-area/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/radar/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

projects/ng2-charts/schematics/ng-generate/scatter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { chain, noop, Rule } from "@angular-devkit/schematics";
22
import { buildComponent } from "@angular/cdk/schematics";
33
import { addChartsModulesToModule } from "../../utils/project"
44

5-
export function index(options: any): Rule {
5+
export default function(options: any): Rule {
66
return chain([
77
buildComponent(
88
{...options},

0 commit comments

Comments
 (0)