File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
goldens/public-api/angular/build
packages/angular/build/src/builders/application Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ export type ApplicationBuilderOptions = {
5757 progress?: boolean;
5858 scripts?: ScriptElement[];
5959 security?: Security;
60- server?: string ;
61- serviceWorker?: ServiceWorker_2 ;
60+ server?: Serv ;
61+ serviceWorker?: Serv ;
6262 sourceMap?: SourceMapUnion;
6363 ssr?: SsrUnion;
6464 statsJson?: boolean;
Original file line number Diff line number Diff line change @@ -259,10 +259,12 @@ export async function normalizeOptions(
259259 : await getTailwindConfig(searchDirectories, workspaceRoot, context);
260260
261261 let serverEntryPoint: string | undefined;
262- if (options.server) {
262+ if (typeof options.server === 'string') {
263+ if (options.server === '') {
264+ throw new Error('The "server" option cannot be an empty string.');
265+ }
266+
263267 serverEntryPoint = path.join(workspaceRoot, options.server);
264- } else if (options.server === '') {
265- throw new Error('The "server" option cannot be an empty string.');
266268 }
267269
268270 let prerenderOptions;
Original file line number Diff line number Diff line change 1717 "description": "The full path for the browser entry point to the application, relative to the current workspace."
1818 },
1919 "server": {
20- "type": "string",
2120 "description": "The full path for the server entry point to the application, relative to the current workspace.",
2221 "oneOf": [
2322 {
You can’t perform that action at this time.
0 commit comments