Skip to content

Commit 916bc85

Browse files
committed
chore: add platform common exports in compat, clean ups
1 parent 0a25c40 commit 916bc85

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Diff for: e2e/renderer/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
}
2424
},
2525
"include": [
26-
"./node_modules/nativescript-angular",
26+
"../../nativescript-angular-package",
27+
"../../nativescript-angular",
2728
"**/*"
2829
],
2930
"exclude": [

Diff for: nativescript-angular-package/platform-common.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "@nativescript/angular/platform-common";

Diff for: nativescript-angular/http-client/http-client.module.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { NgModule } from "@angular/core";
22

3-
// IMPORTant: Importing "@angular/common/http" for the first time overwrites the
4-
// global.__extends function.
5-
const cachedExtends = global.__extends;
63
import { HttpClientModule, HttpBackend } from "@angular/common/http";
7-
global.__extends = cachedExtends;
84

95
import { NSFileSystem } from "../file-system/ns-file-system";
106
import { NsHttpBackEnd } from "./ns-http-backend";

Diff for: ng-sample/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@angular/platform-browser": "~8.2.0",
3535
"@angular/platform-browser-dynamic": "~8.2.0",
3636
"@angular/router": "~8.2.0",
37-
"nativescript-angular": "file:../nativescript-angular",
37+
"nativescript-angular": "file:../nativescript-angular-package",
3838
"rxjs": "^6.4.0",
3939
"tns-core-modules": "next",
4040
"tns-platform-declarations": "next",

Diff for: ng-sample/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@
2828
},
2929
"include": [
3030
"../nativescript-angular",
31+
"../nativescript-angular-package",
3132
"**/*"
3233
],
3334
"exclude": [
35+
"../nativescript-angular-package/node_modules",
3436
"../nativescript-angular/node_modules",
37+
"../nativescript-angular-package/**/*.d.ts",
3538
"../nativescript-angular/**/*.d.ts",
3639
"node_modules",
3740
"platforms"

0 commit comments

Comments
 (0)