Skip to content

Commit daebbde

Browse files
committed
ci: add ngcc to postinstall hook
1 parent d25c173 commit daebbde

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ jobs:
6969
${{ runner.os }}-
7070
- name: Install dependencies
7171
run: yarn install
72-
- name: Run Angular Compatibility Compiler
73-
run: yarn ngcc
7472

7573
- run: yarn test --max-parallel=$NX_MAX_PARALLEL
7674

@@ -99,8 +97,6 @@ jobs:
9997
${{ runner.os }}-
10098
- name: Install dependencies
10199
run: yarn install
102-
- name: Run Angular Compatibility Compiler
103-
run: yarn ngcc
104100

105101
- run: yarn build --max-parallel=$NX_MAX_PARALLEL
106102
- run: yarn scully
@@ -168,7 +164,5 @@ jobs:
168164
${{ runner.os }}-
169165
- name: Install dependencies
170166
run: yarn install
171-
- name: Run Angular Compatibility Compiler
172-
run: yarn ngcc
173167

174168
- run: yarn e2e --configuration=ci --max-parallel=$NX_MAX_PARALLEL

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "0.0.0",
66
"license": "MIT",
77
"scripts": {
8-
"postinstall": "node ./decorate-angular-cli.js && yarn patch-commonjs-dependencies",
8+
"postinstall": "node ./decorate-angular-cli.js && yarn patch-commonjs-dependencies && yarn ngcc",
99
"patch-commonjs-dependencies": "json -I -f node_modules/rss-parser/package.json -e \"this.main = 'dist/rss-parser.js';\"",
1010
"ngcc": "ngcc --first-only --properties es2015 module fesm2015 esm2015 browser main --create-ivy-entry-points",
1111
"ng": "nx",

0 commit comments

Comments
 (0)