Skip to content

Commit 9c28348

Browse files
committed
chore: build
1 parent f72a4c9 commit 9c28348

File tree

7 files changed

+7
-19
lines changed

7 files changed

+7
-19
lines changed

e2e/ivy-sample/package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"license": "SEE LICENSE IN <your-license-filename>",
1313
"repository": "<fill-your-repository-here>",
1414
"scripts": {
15-
"ngcc": "ngcc",
16-
"postinstall": "ngcc"
15+
"ngcc": "ngcc --properties es2015 module main --first-only",
16+
"postinstall": "npm run ngcc"
1717
},
1818
"dependencies": {
1919
"@angular/animations": "~9.0.1",
@@ -28,7 +28,6 @@
2828
"@nativescript/theme": "~2.2.0",
2929
"@nativescript/angular": "file:../../dist/nativescript-angular-scoped.tgz",
3030
"nativescript-angular": "file:../../dist/nativescript-angular-compat.tgz",
31-
"reflect-metadata": "~0.1.12",
3231
"rxjs": "^6.5.0",
3332
"tns-core-modules": "~6.3.0",
3433
"tslib": "~1.10.0",
@@ -37,7 +36,7 @@
3736
"devDependencies": {
3837
"@angular/compiler-cli": "~9.0.1",
3938
"@ngtools/webpack": "~9.0.1",
40-
"nativescript-dev-webpack": "~1.4.0",
39+
"nativescript-dev-webpack": "~1.5.0",
4140
"typescript": "~3.6.4"
4241
},
4342
"gitHead": "f0bdb5bcc6c991497ddf34d446ed0cb4ae4da091",

nativescript-angular/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from "./platform-providers";
1515
// import { NS_DIRECTIVES } from "./directives";
1616
import { ListViewComponent } from "./directives/list-view-comp";
17-
import { TemplateKeyDirective, SetupItemViewArgs, TemplatedItemsComponent } from "./directives/templated-items-comp";
17+
import { TemplateKeyDirective } from "./directives/templated-items-comp";
1818
import { TabViewDirective, TabViewItemDirective } from "./directives/tab-view";
1919
import {
2020
ActionBarComponent,

nativescript-angular/directives/dialogs.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
ComponentFactoryResolver,
33
ComponentRef,
4-
Directive,
54
Injectable,
65
Injector,
76
NgModuleRef,

nativescript-angular/directives/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export const NS_DIRECTIVES = [
2626
export {
2727
ListViewComponent,
2828
TemplateKeyDirective,
29-
SetupItemViewArgs,
3029
TemplatedItemsComponent,
3130
TabViewDirective,
3231
TabViewItemDirective,

nativescript-angular/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"disable-app-ng-ivy": "./bin/disable-app-ng-ivy"
3939
},
4040
"dependencies": {
41-
"nativescript-intl": "^3.0.0",
42-
"reflect-metadata": "^0.1.8"
41+
"nativescript-intl": "^3.0.0"
4342
},
4443
"peerDependencies": {
4544
"@angular/platform-browser-dynamic": "~9.0.0",

nativescript-angular/platform.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// Always import reflect-metadata before @angular/core.
2-
// It's needed to handle __metadata calls inside @angular/core
3-
import "reflect-metadata";
4-
5-
// Import platform-common immediately after reflect-metadata - because rest of the polyfills.
61
import {
72
NativeScriptPlatformRef,
83
AppOptions,

nativescript-angular/testing/src/util.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { View } from "tns-core-modules/ui/core/view";
33
import { Frame } from "tns-core-modules/ui/frame";
44
import { LayoutBase } from "tns-core-modules/ui/layouts/layout-base";
55
import { ComponentFixture, TestBed } from "@angular/core/testing";
6-
import { NgModule, Type } from "@angular/core";
6+
import { Type } from "@angular/core";
77
import { NativeScriptModule } from "../../nativescript.module";
88
import { platformBrowserDynamicTesting } from "@angular/platform-browser-dynamic/testing";
99
import { NS_COMPILER_PROVIDERS } from "../../platform";
@@ -105,10 +105,7 @@ export function nsTestBedBeforeEach(
105105
// There's got to be a better way... (o_O)
106106
TestBed.resetTestEnvironment();
107107
// TODO: this currently causes:
108-
/**
109-
* ../nativescript-angular/testing/src/util.ts:108:31 - error NG1010: Expected array when reading the NgModule.declarations of EntryComponentsTestModule
110-
declarations: entryComponents,
111-
*/
108+
// NG1010: Expected array when reading
112109
// @NgModule({
113110
// declarations: entryComponents,
114111
// exports: entryComponents,

0 commit comments

Comments
 (0)