Skip to content

Commit e400033

Browse files
committed
👷 Fixed ng build command of npm scripts
1 parent 05de8eb commit e400033

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

‎.github/workflows/build_release.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444
npm run test:unit:${{ inputs.PACKAGE_NAME }}:no-watch
4545
- name: Build lib
4646
run: |
47-
npx -c 'ng b @ngx-toolset/${{ inputs.PACKAGE_NAME }}'
48-
# Somehow calling build script via npm run does not work as of now.
49-
# npm run build:${{ inputs.PACKAGE_NAME }}
47+
npm run build:${{ inputs.PACKAGE_NAME }}
5048
- name: Copy CHANGELOG
5149
run: |
5250
cp projects/${{ inputs.PACKAGE_NAME }}/CHANGELOG.md dist/${{ inputs.PACKAGE_NAME }}/CHANGELOG.md

‎.github/workflows/pr_validation.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,4 @@ jobs:
108108
npm run test:unit:${{ inputs.PACKAGE_NAME }}:no-watch
109109
- name: Build lib
110110
run: |
111-
npx -c 'ng b @ngx-toolset/${{ inputs.PACKAGE_NAME }}'
112-
# Somehow calling build script via npm run does not work as of now.
113-
# npm run build:${{ inputs.PACKAGE_NAME }}
111+
npm run build:${{ inputs.PACKAGE_NAME }}

‎package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.0.0",
44
"scripts": {
55
"start": "ng serve",
6-
"build:api-token-interceptor": "ng b @ngx-toolset/api-token-interceptor",
6+
"build:api-token-interceptor": "ng b @ngx-toolset/api-token-interceptor && cd ./projects/api-token-interceptor && npm run build",
77
"build:api-token-interceptor:watch": "npm run build:api-token-interceptor -- --watch -c development",
8-
"build:date-interceptors": "ng b @ngx-toolset/date-interceptors",
8+
"build:date-interceptors": "ng b @ngx-toolset/date-interceptors",
99
"build:date-interceptors:watch": "npm run build:date-interceptors -- --watch -c development",
10-
"build:lazy-dialogs": "ng b @ngx-toolset/lazy-dialogs",
10+
"build:lazy-dialogs": "ng b @ngx-toolset/lazy-dialogs",
1111
"build:lazy-dialogs:watch": "npm run build:lazy-dialogs -- --watch -c development",
12-
"build:template-type-checker": "ng b @ngx-toolset/template-type-checker",
12+
"build:template-type-checker": "ng b @ngx-toolset/template-type-checker",
1313
"build:template-type-checker:watch": "npm run build:template-type-checker -- --watch -c development",
1414
"test:unit:api-token-interceptor": "ng t @ngx-toolset/api-token-interceptor",
1515
"test:unit:api-token-interceptor:no-watch": "npm run test:unit:api-token-interceptor -- --watch=false",

0 commit comments

Comments
 (0)