From 042c63563beb12e0fd5dc5788fd1963b60386974 Mon Sep 17 00:00:00 2001 From: Ahmed Halat Date: Wed, 11 Sep 2024 16:46:21 -0400 Subject: [PATCH] refactor: update angular.json and package.json for build --- angular.json | 17 ++++++++++++++++- package.json | 6 ++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 5f53e51..a097b70 100644 --- a/angular.json +++ b/angular.json @@ -9,7 +9,7 @@ "sourceRoot": "projects/astral-accessibility/src", "prefix": "lib", "architect": { - "build": { + "e2e": { "builder": "ngx-build-plus:browser", "options": { "outputPath": "dist/astral-accessibility-angular-output", @@ -48,6 +48,21 @@ }, "defaultConfiguration": "production" }, + "build": { + "builder": "@angular-devkit/build-angular:ng-packagr", + "options": { + "project": "projects/astral-accessibility/ng-package.json" + }, + "configurations": { + "development": { + "tsConfig": "projects/astral-accessibility/tsconfig.app.json" + }, + "production": { + "tsConfig": "projects/astral-accessibility/tsconfig.app.json" + } + }, + "defaultConfiguration": "development" + }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { diff --git a/package.json b/package.json index af35bf8..42cc8e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "astral-accessibility", "version": "0.1.0", + "author": "verto-health", + "license": "MIT", + "main": "dist/astral-accessibility", "scripts": { "ng": "ng", "start": "ng serve astral-accessibility", @@ -8,13 +11,12 @@ "watch": "ng build --watch --configuration development", "test": "ng test", "cypress": "cypress open", - "build:lib": "ng build --single-bundle --output-hashing=none", + "build:lib": "ng e2e --single-bundle --output-hashing=none", "build:lib:dev": "ng build --watch --configuration=development --single-bundle", "start:demo-server": "lite-server -c projects/demo/lite-server-config.json", "start:demo": "npm-run-all -p build:lib:dev start:demo-server", "start:test-server": "npm-run-all build:lib start:demo-server" }, - "private": true, "dependencies": { "@angular/animations": "^14.1.0", "@angular/common": "^14.1.0",