Skip to content

Commit 39813c7

Browse files
committed
fix(ng2 blueprint typing): fix typings/ location to allow TS compilation
When the src/ directory was being copied to the tmp/ directory for compilation, relative referencing of the typescript definition file was not working properly, and the build was failing. Moving the typings/ folder into src/ fixes this.
1 parent 4c2d0bb commit 39813c7

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

addon/ng2/blueprints/ng2-component/files/src/component/__name__/__name__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../../../typings/angular2/angular2.d.ts"/>
1+
/// <reference path="./../../typings/angular2/angular2.d.ts"/>
22
import {Component, View} from 'angular2/angular2';
33

44
@Component({

addon/ng2/blueprints/ng2/files/src/__name__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../typings/angular2/angular2.d.ts"/>
1+
/// <reference path="./typings/angular2/angular2.d.ts"/>
22
import {Component, View, bootstrap} from 'angular2/angular2';
33

44
@Component({

addon/ng2/blueprints/ng2/files/tsd.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"version": "v4",
33
"repo": "borisyankov/DefinitelyTyped",
44
"ref": "master",
5-
"path": "typings",
6-
"bundle": "typings/tsd.d.ts",
5+
"path": "src/typings",
6+
"bundle": "src/typings/tsd.d.ts",
77
"installed": {
88
"angular2/angular2.d.ts": {
99
"commit": "a6d979c0d0c210399bef224a451b13bcd62317a2"

0 commit comments

Comments
 (0)