diff --git a/angular.json b/angular.json index cc8383985..4173faf7e 100644 --- a/angular.json +++ b/angular.json @@ -385,7 +385,8 @@ "production": { "tsConfig": "projects/adf-office-services-ext/tsconfig.lib.prod.json" } - } + }, + "defaultConfiguration": "production" }, "test": { "builder": "@angular-devkit/build-angular:karma", diff --git a/package.json b/package.json index 60f834e7f..bacffe893 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "prebuild": "mkdir -p ./app/.tmp && cp ./app/src/app.config.json.tpl ./app/.tmp/app.config.json", "build": "ng build content-ce", "build.release": "npm run build -- --configuration=production,release", - "build-libs": "ng build aca-shared", + "build-libs": "ng build aca-shared && ng build adf-office-services-ext", "test": "ng test", "test:ci": "ng test adf-office-services-ext && ng test content-ce --code-coverage", "lint": "NODE_OPTIONS=--max_old_space_size=4096 ng lint && npm run spellcheck && npm run e2e.typecheck", diff --git a/projects/aca-shared/package.json b/projects/aca-shared/package.json index 0778a821c..d2a695555 100644 --- a/projects/aca-shared/package.json +++ b/projects/aca-shared/package.json @@ -10,7 +10,6 @@ "@alfresco/adf-extensions": "6.0.0-A.1-37376", "@alfresco/js-api": "5.2.0", "@angular/animations": "14.1.2", - "@angular/cdk": "14.1.2", "@angular/common": "14.1.2", "@angular/compiler": "14.1.2", "@angular/core": "14.1.2", diff --git a/projects/adf-office-services-ext/ng-package.json b/projects/adf-office-services-ext/ng-package.json new file mode 100644 index 000000000..d8f31722a --- /dev/null +++ b/projects/adf-office-services-ext/ng-package.json @@ -0,0 +1,7 @@ +{ + "dest": "../../dist/@alfresco/adf-office-services-ext", + "lib": { + "entryFile": "src/public-api.ts" + }, + "assets": ["assets"] +} diff --git a/projects/adf-office-services-ext/package.json b/projects/adf-office-services-ext/package.json new file mode 100644 index 000000000..076a6a54b --- /dev/null +++ b/projects/adf-office-services-ext/package.json @@ -0,0 +1,8 @@ +{ + "name": "@alfresco/adf-office-services-ext", + "version": "2.0.1", + "main": "src/index.ts", + "dependencies": { + "tslib": "^2.0.0" + } +} diff --git a/projects/adf-office-services-ext/tsconfig.lib.prod.json b/projects/adf-office-services-ext/tsconfig.lib.prod.json index 6330633d9..64c8fa88a 100644 --- a/projects/adf-office-services-ext/tsconfig.lib.prod.json +++ b/projects/adf-office-services-ext/tsconfig.lib.prod.json @@ -1,7 +1,12 @@ { "extends": "./tsconfig.lib.json", "compilerOptions": { - "declarationMap": false + "declarationMap": false, + "paths": { + "@alfresco/aca-shared": ["dist/@alfresco/aca-shared"], + "@alfresco/aca-shared/store": ["dist/@alfresco/aca-shared/store"], + "@alfresco/aca-shared/rules": ["dist/@alfresco/aca-shared/rules"] + } }, "angularCompilerOptions": { "compilationMode": "partial" diff --git a/scripts/ci/npm/publish-libs.sh b/scripts/ci/npm/publish-libs.sh index ad922cb29..ec216eb4f 100755 --- a/scripts/ci/npm/publish-libs.sh +++ b/scripts/ci/npm/publish-libs.sh @@ -40,6 +40,7 @@ echo -e "Branch is '$TRAVIS_BRANCH', therefore publish with '$TAG_NPM' tag\n" PROJECTS=( 'aca-shared' + 'adf-office-services-ext' ); for PROJECT in "${PROJECTS[@]}"