Skip to content

Commit

Permalink
Added references for Typescript 1.6
Browse files Browse the repository at this point in the history
Typescript 1.6 introduced a new way of resolving module names
(https://github.com/Microsoft/TypeScript/wiki/Typings-for-npm-packages).
This stopped tsify from working (I guess tsc wouldn't compile either but
didn't check) so added references like mocha and assert in the
Navigation Tests
  • Loading branch information
grahammendick committed Dec 5, 2015
1 parent d7aa968 commit 1a25ef2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion NavigationAngular/src/LinkUtility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Navigation = require('navigation');
/// <reference path="navigation.d.ts" />
/// <reference path="angular.d.ts" />
/// <reference path="jquery.d.ts" />
import Navigation = require('navigation');
import angular = require('angular');
import jquery = require('jquery');

Expand Down
4 changes: 3 additions & 1 deletion NavigationKnockout/src/LinkUtility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Navigation = require('navigation');
/// <reference path="navigation.d.ts" />
/// <reference path="knockout.d.ts" />
import Navigation = require('navigation');
import ko = require('knockout');

class LinkUtility {
Expand Down
4 changes: 3 additions & 1 deletion NavigationReact/src/LinkUtility.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Navigation = require('navigation');
/// <reference path="navigation.d.ts" />
/// <reference path="react.d.ts" />
import Navigation = require('navigation');
import React = require('react');

class LinkUtility {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"gulp-header": "^1.2.2",
"gulp-mocha": "^2.0.0",
"gulp-rename": "^1.2.0",
"gulp-tsc": "^0.10.1",
"gulp-tsc": "^1.1.4",
"gulp-uglify": "^1.1.0",
"tsify": "^0.8.1",
"tsify": "^0.13.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
},
Expand Down

0 comments on commit 1a25ef2

Please sign in to comment.