Skip to content

Commit 3dd9919

Browse files
committed
chore(ts2dart): remove hand-written ts2dart typings
Now that we are on TS 1.6, we can use the new node module resolution strategy. Closes angular#4372
1 parent 589ce31 commit 3dd9919

File tree

5 files changed

+8
-27
lines changed

5 files changed

+8
-27
lines changed

npm-shrinkwrap.clean.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10026,7 +10026,7 @@
1002610026
}
1002710027
},
1002810028
"ts2dart": {
10029-
"version": "0.7.5",
10029+
"version": "0.7.7",
1003010030
"dependencies": {
1003110031
"source-map": {
1003210032
"version": "0.4.4",

npm-shrinkwrap.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"temp": "^0.8.1",
129129
"ternary-stream": "^1.2.3",
130130
"through2": "^0.6.1",
131-
"ts2dart": "^0.7.5",
131+
"ts2dart": "^0.7.7",
132132
"tsd": "^0.6.5-beta",
133133
"tslint": "^2.5.0",
134134
"typescript": "^1.6.2",

tools/broccoli/broccoli-ts2dart.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
/// <reference path="../typings/node/node.d.ts" />
22
/// <reference path="../typings/fs-extra/fs-extra.d.ts" />
3-
/// <reference path="./ts2dart.d.ts" />
43

54
import fs = require('fs');
65
import fse = require('fs-extra');
76
import path = require('path');
8-
import ts2dart = require('ts2dart');
7+
import * as ts2dart from 'ts2dart';
98
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
109

1110
class TSToDartTranspiler implements DiffingBroccoliPlugin {
1211
static includeExtensions = ['.ts'];
1312

14-
private basePath: string;
1513
private transpiler: ts2dart.Transpiler;
1614

17-
constructor(public inputPath: string, public cachePath: string, public options) {
15+
constructor(public inputPath: string, public cachePath: string,
16+
public options: ts2dart.TranspilerOptions) {
1817
options.basePath = inputPath;
1918
this.transpiler = new ts2dart.Transpiler(options);
2019
}

tools/broccoli/ts2dart.d.ts

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

0 commit comments

Comments
 (0)