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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user