From 0cab288414a6a75dffeca3494ff32ab0cac77aae Mon Sep 17 00:00:00 2001 From: Aleksander Sklorz Date: Mon, 24 Apr 2023 13:07:03 +0200 Subject: [PATCH] ACS-4534 Removed redundant build-libs script --- .github/actions/publish-libs/action.yml | 2 +- docs/extending/publish-to-npm.md | 4 ++-- package.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/publish-libs/action.yml b/.github/actions/publish-libs/action.yml index 7f240e5b3b..e375332c0b 100644 --- a/.github/actions/publish-libs/action.yml +++ b/.github/actions/publish-libs/action.yml @@ -38,7 +38,7 @@ runs: - name: Build Libraries shell: bash - run: npm ci && npm run build-libs + run: npm ci && npm run build - uses: actions/setup-node@v3 name: setup GH registry diff --git a/docs/extending/publish-to-npm.md b/docs/extending/publish-to-npm.md index d7f31dc5cc..52966ff385 100644 --- a/docs/extending/publish-to-npm.md +++ b/docs/extending/publish-to-npm.md @@ -17,10 +17,10 @@ ng generate @schematics/angular:library aca-new-lib ### Build library -In order to publish new library, we need to build it first. You need to add build of your library to `build-libs` command in `package.json` +In order to publish new library, we need to build it first. Building is done by following command from `package.json` ```sh -"build-libs": "ng build aca-shared && ng build aca-new-lib", +"build": "nx build content-ce" ``` ### Update publish script diff --git a/package.json b/package.json index cb355bf5af..106f876a4b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "prebuild": "mkdir -p ./app/.tmp && cp ./app/src/app.config.json.tpl ./app/.tmp/app.config.json", "build": "nx build content-ce", "build.release": "npm run build -- --configuration=production,release", - "build-libs": "nx build aca-shared && nx build adf-office-services-ext && nx build aca-about && nx build aca-viewer && nx build aca-preview && nx build aca-folder-rules && nx build aca-content", "test": "nx test", "lint": "NODE_OPTIONS=--max_old_space_size=4096 nx run-many --all --target=lint", "update-webdriver": "./scripts/update-webdriver.sh",