From 681707a2089a69580e736824ef959951d123aa91 Mon Sep 17 00:00:00 2001 From: "akash.rathod@hyland.com" Date: Mon, 23 Dec 2024 12:53:10 +0100 Subject: [PATCH 1/5] ACS-9039 fix for export lib --- projects/aca-playwright-shared/package.json | 25 +++++++++++++++---- projects/aca-playwright-shared/project.json | 21 +++++++++++++--- .../aca-playwright-shared/tsconfig.lib.json | 5 +++- tsconfig.adf.json | 1 + tsconfig.json | 1 + 5 files changed, 44 insertions(+), 9 deletions(-) diff --git a/projects/aca-playwright-shared/package.json b/projects/aca-playwright-shared/package.json index 7738cb1097..d1c6401d95 100644 --- a/projects/aca-playwright-shared/package.json +++ b/projects/aca-playwright-shared/package.json @@ -1,12 +1,27 @@ { "name": "@alfresco/aca-playwright-shared", "version": "0.0.1", + "commit": "", "license": "LGPL-3.0", - "dependencies": { - "tslib": "^2.0.0" - }, - "publishConfig": { - "access": "public" + "scripts": {}, + "peerDependencies": { + "@alfresco/adf-content-services": ">=7.0.0-alpha.7-0", + "@alfresco/adf-core": ">=7.0.0-alpha.7-0", + "@alfresco/adf-extensions": ">=7.0.0-alpha.7-0", + "@alfresco/js-api": ">=8.0.0-alpha.7-0", + "@angular/animations": ">=15.2", + "@angular/common": ">=15.2", + "@angular/compiler": ">=15.2", + "@angular/core": ">=15.2", + "@angular/forms": ">=15.2", + "@angular/material": ">=15.2", + "@ngrx/effects": ">=15.2.0", + "@ngrx/router-store": ">=15.2", + "@ngrx/store": ">=15.2", + "@ngx-translate/core": ">=14.0.0", + "rxjs": ">=6.6.6", + "tslib": ">=2.0.0", + "zone.js": ">=0.11.8" }, "repository": { "type": "git", diff --git a/projects/aca-playwright-shared/project.json b/projects/aca-playwright-shared/project.json index 975c1aadf7..dba3f9cd73 100644 --- a/projects/aca-playwright-shared/project.json +++ b/projects/aca-playwright-shared/project.json @@ -17,9 +17,24 @@ } }, "defaultConfiguration": "production", - "outputs": [ - "{workspaceRoot}/dist/@alfresco/aca-playwright-shared" - ] + "outputs": ["{workspaceRoot}/dist/@alfresco/aca-playwright-shared"] + }, + "test": { + "executor": "@angular-devkit/build-angular:karma", + "options": { + "codeCoverage": true, + "main": "projects/aca-playwright-shared/test.ts", + "tsConfig": "projects/aca-playwright-shared/tsconfig.spec.json", + "karmaConfig": "projects/aca-playwright-shared/karma.conf.js", + "stylePreprocessorOptions": { + "includePaths": ["node_modules"] + } + }, + "configurations": { + "adfprod": { + "tsConfig": "projects/aca-playwright-shared/tsconfig.spec.adf.json" + } + } }, "lint": { "executor": "@angular-eslint/builder:lint" diff --git a/projects/aca-playwright-shared/tsconfig.lib.json b/projects/aca-playwright-shared/tsconfig.lib.json index e035678f30..305be11007 100644 --- a/projects/aca-playwright-shared/tsconfig.lib.json +++ b/projects/aca-playwright-shared/tsconfig.lib.json @@ -2,7 +2,9 @@ "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "../../out-tsc/lib", + "declarationMap": true, "target": "es2020", + "module": "es2015", "moduleResolution": "node", "declaration": true, "sourceMap": true, @@ -11,7 +13,8 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": ["dom", "es2020"] + "lib": ["dom", "es2018"], + "paths": {} }, "angularCompilerOptions": { "skipTemplateCodegen": true, diff --git a/tsconfig.adf.json b/tsconfig.adf.json index 731bc40ea5..aa6824bfd7 100644 --- a/tsconfig.adf.json +++ b/tsconfig.adf.json @@ -41,6 +41,7 @@ "@alfresco/aca-content/viewer": ["projects/aca-content/viewer/src/public-api.ts"], "@alfresco/aca-content/preview": ["projects/aca-content/preview/src/public-api.ts"], "@alfresco/aca-playwright-shared": ["projects/aca-playwright-shared/src/public-api.ts"], + "@alfresco/aca-playwright-shared/*": ["projects/aca-playwright-shared/src/*/index.ts"], "package.json": ["package.json"], "*": ["./node_modules/*"] } diff --git a/tsconfig.json b/tsconfig.json index 3ebb52028f..224ef27a15 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,6 +31,7 @@ "@alfresco/aca-shared/rules": ["projects/aca-shared/rules/src/public-api.ts"], "@alfresco/aca-shared/store": ["projects/aca-shared/store/src/public-api.ts"], "@alfresco/aca-playwright-shared": ["projects/aca-playwright-shared/src/public-api.ts"], + "@alfresco/aca-playwright-shared/*": ["projects/aca-playwright-shared/src/*/index.ts"], "package.json": ["package.json"] } }, From a8a4759cda4c1e8f28aa6053d08063ae9e88be70 Mon Sep 17 00:00:00 2001 From: Akash Rathod <41251473+akashrathod28@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:15:12 +0100 Subject: [PATCH 2/5] Update project.json to remove test config --- projects/aca-playwright-shared/project.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/projects/aca-playwright-shared/project.json b/projects/aca-playwright-shared/project.json index dba3f9cd73..6401579088 100644 --- a/projects/aca-playwright-shared/project.json +++ b/projects/aca-playwright-shared/project.json @@ -19,23 +19,6 @@ "defaultConfiguration": "production", "outputs": ["{workspaceRoot}/dist/@alfresco/aca-playwright-shared"] }, - "test": { - "executor": "@angular-devkit/build-angular:karma", - "options": { - "codeCoverage": true, - "main": "projects/aca-playwright-shared/test.ts", - "tsConfig": "projects/aca-playwright-shared/tsconfig.spec.json", - "karmaConfig": "projects/aca-playwright-shared/karma.conf.js", - "stylePreprocessorOptions": { - "includePaths": ["node_modules"] - } - }, - "configurations": { - "adfprod": { - "tsConfig": "projects/aca-playwright-shared/tsconfig.spec.adf.json" - } - } - }, "lint": { "executor": "@angular-eslint/builder:lint" } From 25f16dd15b657704ab1aacc9ada07c55634b37f4 Mon Sep 17 00:00:00 2001 From: "akash.rathod@hyland.com" Date: Mon, 23 Dec 2024 14:13:30 +0100 Subject: [PATCH 3/5] update package version --- projects/aca-playwright-shared/package.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/projects/aca-playwright-shared/package.json b/projects/aca-playwright-shared/package.json index d1c6401d95..9bca8acfef 100644 --- a/projects/aca-playwright-shared/package.json +++ b/projects/aca-playwright-shared/package.json @@ -1,14 +1,15 @@ { - "name": "@alfresco/aca-playwright-shared", + "name": "@alfresco/aca-akash", "version": "0.0.1", "commit": "", "license": "LGPL-3.0", "scripts": {}, "peerDependencies": { - "@alfresco/adf-content-services": ">=7.0.0-alpha.7-0", - "@alfresco/adf-core": ">=7.0.0-alpha.7-0", - "@alfresco/adf-extensions": ">=7.0.0-alpha.7-0", - "@alfresco/js-api": ">=8.0.0-alpha.7-0", + "@alfresco/adf-content-services": "7.0.0-alpha.7-12408701331", + "@alfresco/adf-core": "7.0.0-alpha.7-12408701331", + "@alfresco/adf-extensions": "7.0.0-alpha.7-12408701331", + "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12408701331", + "@alfresco/js-api": "8.0.0-alpha.7-12408701331", "@angular/animations": ">=15.2", "@angular/common": ">=15.2", "@angular/compiler": ">=15.2", From d1ba35292d4b2972faabfac5a762c686fca54afe Mon Sep 17 00:00:00 2001 From: "akash.rathod@hyland.com" Date: Tue, 24 Dec 2024 13:24:57 +0100 Subject: [PATCH 4/5] update package dependancy --- projects/aca-playwright-shared/package.json | 17 ++--------------- projects/aca-shared/package.json | 1 - 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/projects/aca-playwright-shared/package.json b/projects/aca-playwright-shared/package.json index 9bca8acfef..43f79cdfa2 100644 --- a/projects/aca-playwright-shared/package.json +++ b/projects/aca-playwright-shared/package.json @@ -1,7 +1,6 @@ { - "name": "@alfresco/aca-akash", + "name": "@alfresco/aca-playwright-shared", "version": "0.0.1", - "commit": "", "license": "LGPL-3.0", "scripts": {}, "peerDependencies": { @@ -10,19 +9,7 @@ "@alfresco/adf-extensions": "7.0.0-alpha.7-12408701331", "@alfresco/eslint-plugin-eslint-angular": "7.0.0-alpha.7-12408701331", "@alfresco/js-api": "8.0.0-alpha.7-12408701331", - "@angular/animations": ">=15.2", - "@angular/common": ">=15.2", - "@angular/compiler": ">=15.2", - "@angular/core": ">=15.2", - "@angular/forms": ">=15.2", - "@angular/material": ">=15.2", - "@ngrx/effects": ">=15.2.0", - "@ngrx/router-store": ">=15.2", - "@ngrx/store": ">=15.2", - "@ngx-translate/core": ">=14.0.0", - "rxjs": ">=6.6.6", - "tslib": ">=2.0.0", - "zone.js": ">=0.11.8" + "tslib": ">=2.0.0" }, "repository": { "type": "git", diff --git a/projects/aca-shared/package.json b/projects/aca-shared/package.json index 9a3a205281..5ebaf64471 100644 --- a/projects/aca-shared/package.json +++ b/projects/aca-shared/package.json @@ -1,7 +1,6 @@ { "name": "@alfresco/aca-shared", "version": "0.0.1", - "commit": "", "license": "LGPL-3.0", "scripts": {}, "peerDependencies": { From 84ed5a9daf8f41e7f8cbb1ead8cecb20ce4e27d8 Mon Sep 17 00:00:00 2001 From: Akash Rathod <41251473+akashrathod28@users.noreply.github.com> Date: Thu, 2 Jan 2025 10:46:45 +0100 Subject: [PATCH 5/5] Update package.json --- projects/aca-playwright-shared/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/aca-playwright-shared/package.json b/projects/aca-playwright-shared/package.json index 43f79cdfa2..d8d69c6dc0 100644 --- a/projects/aca-playwright-shared/package.json +++ b/projects/aca-playwright-shared/package.json @@ -3,6 +3,9 @@ "version": "0.0.1", "license": "LGPL-3.0", "scripts": {}, + "publishConfig": { + "access": "public" + }, "peerDependencies": { "@alfresco/adf-content-services": "7.0.0-alpha.7-12408701331", "@alfresco/adf-core": "7.0.0-alpha.7-12408701331",