From 35dc40a5f653eaa7555f961bd5d851af83a087b1 Mon Sep 17 00:00:00 2001 From: Mark Drilling Date: Tue, 6 Nov 2018 08:55:23 -0600 Subject: [PATCH] add separate entrypoint for ng-packagr --- ui/package.json | 11 +++-------- ui/public_api.ts | 3 +++ 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 ui/public_api.ts diff --git a/ui/package.json b/ui/package.json index 7944f87b..91cc2fb9 100644 --- a/ui/package.json +++ b/ui/package.json @@ -16,9 +16,7 @@ "@angular/animations": "^5.2.0", "@angular/common": "^5.2.0", "@angular/compiler": "^5.2.0", - "@angular/compiler-cli": "^5.2.0", "@angular/core": "^5.2.0", - "@angular-devkit/core": "^7.0.4", "@angular/forms": "^5.2.0", "@angular/http": "^5.2.0", "@angular/language-service": "^5.2.0", @@ -31,7 +29,6 @@ "express": "^4.16.4", "file-saver": "1.3.3", "lodash": "^4.17.11", - "ng-packagr": "^2.0.0", "ng2-codemirror": "^1.1.3", "ngx-bootstrap": "^2.0.5", "osenv": "^0.1.5", @@ -45,7 +42,6 @@ "zone.js": "^0.8.26" }, "devDependencies": { - "@angular-devkit/core": "^7.0.4", "@angular/animations": "^5.2.0", "@angular/cli": "^1.6.8", "@angular/common": "^5.2.0", @@ -58,6 +54,7 @@ "@angular/platform-browser": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0", "@angular/router": "^5.2.0", + "@angular-devkit/core": "^7.0.4", "@types/d3": "^5.0.1", "@types/jasmine": "~2.5.53", "@types/jasminewd2": "^2.0.5", @@ -93,15 +90,13 @@ "typescript": "~2.6.2", "vkbeautify": "^0.99.3", "webcola": "^3.3.8", + "webpack": "^3.11.0", "x2js": "^3.2.1", "zone.js": "^0.8.26" }, "ngPackage": { "lib": { - "entryFile": "../src/main.ts" + "entryFile": "public_api.ts" } - }, - "dependencies": { - "webpack": "^3.11.0" } } diff --git a/ui/public_api.ts b/ui/public_api.ts new file mode 100644 index 00000000..e37dc3f7 --- /dev/null +++ b/ui/public_api.ts @@ -0,0 +1,3 @@ +import { DataservicesModule } from "./src/app/dataservices/dataservices.module"; + +export { DataservicesModule };