Skip to content

Commit ae275fa

Browse files
committed
chore(ts2dart): update ts2dart to 0.7.24
1 parent 3478d5d commit ae275fa

7 files changed

Lines changed: 24 additions & 12 deletions

File tree

modules/angular2/src/common/pipes/async_pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PromiseStrategy {
3333

3434
var _promiseStrategy = new PromiseStrategy();
3535
var _observableStrategy = new ObservableStrategy();
36-
36+
var __unused: Promise<any>; // avoid unused import when Promise union types are erased
3737

3838
/**
3939
* The `async` pipe subscribes to an Observable or Promise and returns the latest value it has

modules/angular2/test/web_workers/shared/web_worker_test_util.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import {MockEventEmitter} from './mock_event_emitter';
1717
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
1818
import {NgZone} from 'angular2/src/core/zone/ng_zone';
1919

20+
var __unused: Promise<any>; // avoid unused import when Promise union types are erased
21+
2022
/**
2123
* Returns two MessageBus instances that are attached to each other.
2224
* Such that whatever goes into one's sink comes out the others source.

npm-shrinkwrap.clean.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,6 +1886,9 @@
18861886
"dargs": {
18871887
"version": "4.0.1"
18881888
},
1889+
"dart-style": {
1890+
"version": "0.2.6"
1891+
},
18891892
"dart2jsaas": {
18901893
"version": "0.0.16",
18911894
"dependencies": {
@@ -5353,7 +5356,7 @@
53535356
}
53545357
},
53555358
"ts2dart": {
5356-
"version": "0.7.22",
5359+
"version": "0.7.24",
53575360
"dependencies": {
53585361
"source-map": {
53595362
"version": "0.4.4"
@@ -5836,5 +5839,5 @@
58365839
}
58375840
},
58385841
"name": "angular-srcs",
5839-
"version": "2.0.0-beta.5"
5842+
"version": "2.0.0-beta.6"
58405843
}

npm-shrinkwrap.json

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

tools/broccoli/angular_builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var broccoli = require('broccoli');
22
var fs = require('fs');
33
var makeBrowserTree = require('./trees/browser_tree');
44
var makeNodeTree = require('./trees/node_tree');
5-
var makeDartTree = require('./trees/dart_tree');
65
var path = require('path');
76
var printSlowTrees = require('broccoli-slow-trees');
87
var Q = require('q');
@@ -111,6 +110,8 @@ export class AngularBuilder {
111110
logs: this.options.logs,
112111
projects: projects
113112
};
113+
// Workaround for https://github.com/dart-lang/dart_style/issues/493
114+
var makeDartTree = require('./trees/dart_tree');
114115
let tree = makeDartTree(options);
115116
return new broccoli.Builder(tree);
116117
}

tools/broccoli/broccoli-ts2dart.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
import fs = require('fs');
55
import fse = require('fs-extra');
66
import path = require('path');
7-
import * as ts2dart from 'ts2dart';
87
import {wrapDiffingPlugin, DiffingBroccoliPlugin, DiffResult} from './diffing-broccoli-plugin';
98

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

13-
private transpiler: ts2dart.Transpiler;
12+
private transpiler: any /*ts2dart.Transpiler*/;
1413

1514
constructor(public inputPath: string, public cachePath: string,
16-
public options: ts2dart.TranspilerOptions) {
15+
public options: any /*ts2dart.TranspilerOptions*/) {
1716
options.basePath = inputPath;
17+
// Workaround for https://github.com/dart-lang/dart_style/issues/493
18+
var ts2dart = require('ts2dart');
1819
this.transpiler = new ts2dart.Transpiler(options);
1920
}
2021

tools/build/bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ var insert = require('gulp-insert');
55
var fs = require('fs-extra');
66
var browserify = require('browserify');
77
var path = require('path');
8-
var Builder = require('systemjs-builder');
98

109
module.exports.bundle = function(buildConfig, moduleName, outputFile, outputConfig,
1110
sfx) {
1211
var sfx = sfx || false;
12+
// Workaround for https://github.com/dart-lang/dart_style/issues/493
13+
var Builder = require('systemjs-builder');
1314
var builder = new Builder();
1415
builder.config(buildConfig);
1516
if (sfx) {

0 commit comments

Comments
 (0)