Skip to content

Commit b8bd8cd

Browse files
committed
Update the build and test to use latest packages
1 parent 25e792b commit b8bd8cd

File tree

6 files changed

+14
-44
lines changed

6 files changed

+14
-44
lines changed

build/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"start": "tsc && node ./build.js"
1010
},
1111
"dependencies": {
12-
"@types/js-yaml": "^3.5.28",
13-
"@types/node": "^6.0.39",
14-
"js-yaml": "^3.6.1",
15-
"plist": "^2.0.1",
16-
"typescript": "^2.1.0-dev.20160920"
12+
"@types/js-yaml": "latest",
13+
"@types/node": "latest",
14+
"js-yaml": "latest",
15+
"plist": "latest",
16+
"typescript": "latest"
1717
}
1818
}

tests/.tsdrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/build.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference path="typings/node/node.d.ts" />
2-
31
import * as vt from 'vscode-textmate/release/main';
42
import fs = require('fs');
53
import path = require('path');
@@ -43,7 +41,7 @@ const tsReactGrammarInfo = getGrammarInfo(tsReactGrammarFileName);
4341

4442
interface Grammar {
4543
grammar: vt.IGrammar;
46-
ruleStack?: vt.StackElement[];
44+
ruleStack?: vt.StackElement;
4745
}
4846

4947
function initGrammar(grammar: vt.IGrammar): Grammar {

tests/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
"description": "",
66
"main": "test.ts",
77
"scripts": {
8-
"postinstall": "tsd install",
98
"pretest": "node ../build/build.js && tsc && node ./build.js",
109
"test": "mocha test.js"
1110
},
1211
"dependencies": {
13-
"chai": "^3.4.1",
14-
"mocha": "^2.3.4",
15-
"typescript": "^1.6.2",
16-
"vscode-textmate": "^1.0.6"
17-
},
18-
"devDependencies": {
19-
"tsd": "^0.6.5"
12+
"@types/chai": "latest",
13+
"@types/mocha": "latest",
14+
"@types/node": "latest",
15+
"chai": "latest",
16+
"mocha": "latest",
17+
"typescript": "latest",
18+
"vscode-textmate": "latest"
2019
}
21-
}
20+
}

tests/test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/// <reference path="typings/mocha/mocha.d.ts" />
2-
/// <reference path="typings/chai/chai.d.ts" />
3-
41
import fs = require('fs');
52
import chai = require('chai');
63

tests/tsd.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)