File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
build-system-tests/scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ if [[ "$FRAMEWORK" == 'angular' ]]; then
120120 cat ./templates/components/angular/polifills-appendix.ts >> mega-apps/${MEGA_APP_NAME} /src/polyfills.ts
121121 if [[ " $FRAMEWORK_VERSION " -gt 15 || " $FRAMEWORK_VERSION " == " latest" ]]; then
122122 echo " add polyfills to angular.json"
123- echo " npx json -I -f mega-apps/${MEGA_APP_NAME} /angular.json -e \" this.projects[\\\" $MEGA_APP_NAME \\\" ].architect.build.options.polyfills.push(\\\" src/polyfills.ts\\\" )\" "
124- npx json -I -f mega-apps/${MEGA_APP_NAME} /angular.json -e " this.projects[\" $MEGA_APP_NAME \" ].architect.build.options.polyfills.push(\" src/polyfills.ts\" )"
123+ echo " npx json -I -f mega-apps/${MEGA_APP_NAME} /angular.json -e \" this.projects[\\\" $MEGA_APP_NAME \\\" ].architect.build.options.polyfills = this.projects[ \\\" $MEGA_APP_NAME \\\" ].architect.build.options.polyfills || []; this.projects[ \\\" $MEGA_APP_NAME \\\" ].architect.build.options.polyfills .push(\\\" src/polyfills.ts\\\" )\" "
124+ npx json -I -f mega-apps/${MEGA_APP_NAME} /angular.json -e " this.projects[\" $MEGA_APP_NAME \" ].architect.build.options.polyfills = this.projects[ \" $MEGA_APP_NAME \" ].architect.build.options.polyfills || []; this.projects[ \" $MEGA_APP_NAME \" ].architect.build.options.polyfills .push(\" src/polyfills.ts\" )"
125125 echo " strip comments from tsconfig.app.json and add polyfills.ts"
126126 echo " npx strip-json-comments mega-apps/${MEGA_APP_NAME} /tsconfig.app.json | npx json -a -e 'this.files.push(\" src/polyfills.ts\" )' >tsconfig.app.json.tmp && mv tsconfig.app.json.tmp ./mega-apps/$MEGA_APP_NAME /tsconfig.app.json && rm -f tsconfig.app.json.tmp"
127127 npx strip-json-comments mega-apps/${MEGA_APP_NAME} /tsconfig.app.json | npx json -a -e ' this.files = this.files || []; this.files.push("src/polyfills.ts")' > tsconfig.app.json.tmp && mv tsconfig.app.json.tmp ./mega-apps/$MEGA_APP_NAME /tsconfig.app.json && rm -f tsconfig.app.json.tmp
You can’t perform that action at this time.
0 commit comments