You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor adapter build configuration logic into @apphosting/common module (#204)
* refactor build configuration logic into @apphosting/common pkg
* update deps to include shared module
* provide runBuild() fn
* update github action for publish common pkg
// Nx uses a project.json file in lieu of an angular.json file, so if the app is in an Nx workspace,
30
+
// we check if Nx's project.json configures the build to use the Angular application builder.
31
+
if(opts.buildCommand==="nx"){
32
+
constoutput=execSync(`npx nx show project ${opts.projectName}`);
33
+
constprojectJson=JSON.parse(output.toString());
34
+
constbuilder=projectJson.targets.build.executor;
35
+
if(builder!==REQUIRED_BUILDER){
36
+
thrownewError(
37
+
"Only the Angular application builder is supported. Please refer to https://angular.dev/tools/cli/build-system-migration#for-existing-applications guide to upgrade your builder to the Angular application builder. ",
38
+
);
39
+
}
40
+
return;
41
+
}
42
+
34
43
// dynamically load Angular so this can be used in an NPX context
constoutput=execSync(`npx nx show project ${target}`);
77
-
constprojectJson=JSON.parse(output.toString());
78
-
builder=projectJson.targets.build.executor;
79
-
}
80
-
if(builder!==REQUIRED_BUILDER){
81
-
thrownewError(
82
-
"Only the Angular application builder is supported. Please refer to https://angular.dev/tools/cli/build-system-migration#for-existing-applications guide to upgrade your builder to the Angular application builder. ",
83
-
);
84
-
}
85
-
}
86
-
87
79
// Populate file or directory paths we need for generating output directory
0 commit comments