X Tutup
Skip to content

Commit 1f1ee83

Browse files
committed
WIP: fixup stuff after facade remerging
1 parent c0a771d commit 1f1ee83

26 files changed

+72
-719
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ do
3131
echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json ====="
3232
$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json
3333

34-
if (false); then
34+
if (true); then
3535
echo "====== BUNDLING: ${SRCDIR} ====="
3636
(
3737
cd ${SRCDIR}

modules/@angular/common/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ export default {
66
format: 'umd',
77
moduleName: 'ng.common',
88
globals: {
9-
'@angular/facade': 'ng.facade',
10-
'@angular/core': 'ng.core'
9+
'@angular/core': 'ng.core',
10+
'rxjs/Subject': 'Rx',
11+
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs b.6 so we need to fix it when we update.
12+
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
13+
'rxjs/Observable': 'Rx'
1114
},
1215
plugins: [
1316
// nodeResolve({ jsnext: true, main: true }),

modules/@angular/compiler/core_private.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ export var ValueUnwrapper: typeof t.ValueUnwrapper = r.ValueUnwrapper;
3030
export var TemplateRef_: typeof t.TemplateRef_ = r.TemplateRef_;
3131
export type RenderDebugInfo = t.RenderDebugInfo;
3232
export var RenderDebugInfo: typeof t.RenderDebugInfo = r.RenderDebugInfo;
33+
export var createProvider: typeof t.createProvider = r.createProvider;
34+
export var isProviderLiteral: typeof t.isProviderLiteral = r.isProviderLiteral;

modules/@angular/compiler/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"author": "angular",
99
"license": "MIT",
1010
"peerDependencies": {
11-
"@angular/core": "$$ANGULAR_VERSION$$",
12-
"@angular/facade": "$$ANGULAR_VERSION$$"
11+
"@angular/core": "$$ANGULAR_VERSION$$"
1312
}
1413
}

modules/@angular/compiler/rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ export default {
66
format: 'umd',
77
moduleName: 'ng.compiler',
88
globals: {
9-
'@angular/facade': 'ng.facade',
10-
'@angular/core': 'ng.core'
9+
'@angular/core': 'ng.core',
10+
'rxjs/Subject': 'Rx',
11+
'rxjs/observable/PromiseObservable': 'Rx', // this is wrong, but this stuff has changed in rxjs b.6 so we need to fix it when we update.
12+
'rxjs/operator/toPromise': 'Rx.Observable.prototype',
13+
'rxjs/Observable': 'Rx'
1114
},
1215
plugins: [
1316
// nodeResolve({ jsnext: true, main: true }),

modules/@angular/compiler/src/runtime_metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {hasLifecycleHook} from './directive_lifecycle_reflector';
3737
import {MODULE_SUFFIX, sanitizeIdentifier} from './util';
3838
import {assertArrayOfStrings} from './assertions';
3939
import {getUrlScheme} from './url_resolver';
40-
import {createProvider, isProviderLiteral} from "../../core/src/di/provider_util";
40+
import {createProvider, isProviderLiteral} from "../core_private";
4141

4242

4343
@Injectable()

modules/@angular/compiler/src/schema/dom_element_schema_registry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {Injectable} from '@angular/core';
2-
import {isPresent, StringMapWrapper} from '@angular/facade';
2+
import {isPresent} from '../facade/lang';
3+
import {StringMapWrapper} from '../facade/collection';
34
import {ElementSchemaRegistry} from './element_schema_registry';
45

56
const EVENT = 'event';

modules/@angular/compiler/tsconfig-es2015.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"moduleResolution": "node",
99
"outDir": "../../../dist/packages-dist/compiler/esm",
1010
"paths": {
11-
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"],
12-
"@angular/facade/*": ["../../../dist/packages-dist/facade/*"]
11+
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"]
1312
},
1413
"rootDir": ".",
1514
"sourceMap": true,

modules/@angular/compiler/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"moduleResolution": "node",
99
"outDir": "../../../dist/packages-dist/compiler/",
1010
"paths": {
11-
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"],
12-
"@angular/facade/*": ["../../../dist/packages-dist/facade/*"]
11+
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"]
1312
},
1413
"rootDir": ".",
1514
"sourceMap": true,

modules/@angular/core/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@
1010
"peerDependencies": {
1111
"rxjs": "5.0.0-beta.2",
1212
"zone.js": "^0.6.6"
13-
},
14-
"dependencies": {
15-
"@angular/facade": "$$ANGULAR_VERSION$$"
1613
}
1714
}

0 commit comments

Comments
 (0)
X Tutup