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 #4372
This commit is contained in:
Alex Eagle
2015-09-25 14:32:45 -07:00
committed by Alex Eagle
parent 589ce31dfc
commit 3dd9919bbd
5 changed files with 8 additions and 27 deletions

View File

@ -1,20 +1,19 @@
/// <reference path="../typings/node/node.d.ts" />
/// <reference path="../typings/fs-extra/fs-extra.d.ts" />
/// <reference path="./ts2dart.d.ts" />
import fs = require('fs');
import fse = require('fs-extra');
import path = require('path');
import ts2dart = require('ts2dart');
import * as ts2dart from 'ts2dart';
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
class TSToDartTranspiler implements DiffingBroccoliPlugin {
static includeExtensions = ['.ts'];
private basePath: string;
private transpiler: ts2dart.Transpiler;
constructor(public inputPath: string, public cachePath: string, public options) {
constructor(public inputPath: string, public cachePath: string,
public options: ts2dart.TranspilerOptions) {
options.basePath = inputPath;
this.transpiler = new ts2dart.Transpiler(options);
}