OverrideAngularBuildScript overrides the build script to be the Angular build script.
(njsl *libcnb.Layer)
| 80 | |
| 81 | // OverrideAngularBuildScript overrides the build script to be the Angular build script. |
| 82 | func OverrideAngularBuildScript(njsl *libcnb.Layer) { |
| 83 | njsl.BuildEnvironment.Override(AppHostingBuildEnv, fmt.Sprintf("npm exec --prefix %s apphosting-adapter-angular-build", njsl.Path)) |
| 84 | } |
| 85 | |
| 86 | // ExtractAngularStartCommand inspects the given package.json file for an idiomatic `serve:ssr:APP_NAME` |
| 87 | // command. If one exists, its value is returned. If not, return an empty string. |