create-nx-workspace
Advanced tools
Comparing version 20.2.0-beta.4 to 20.2.0-beta.5
@@ -38,2 +38,3 @@ import * as yargs from 'yargs'; | ||
ssr: boolean; | ||
serverRouting: boolean; | ||
prefix: string; | ||
@@ -40,0 +41,0 @@ } |
@@ -652,2 +652,3 @@ "use strict"; | ||
let ssr = undefined; | ||
let serverRouting = undefined; | ||
const standaloneApi = parsedArgs.standaloneApi; | ||
@@ -760,2 +761,21 @@ const routing = parsedArgs.routing; | ||
} | ||
if (parsedArgs.serverRouting !== undefined) { | ||
serverRouting = parsedArgs.serverRouting; | ||
} | ||
else if (ssr && bundler === 'esbuild') { | ||
const reply = await enquirer.prompt([ | ||
{ | ||
name: 'serverRouting', | ||
message: 'Would you like to use the Server Routing and App Engine APIs (Developer Preview) for this server application?', | ||
type: 'autocomplete', | ||
choices: [{ name: 'Yes' }, { name: 'No' }], | ||
initial: 1, | ||
skip: !parsedArgs.interactive || (0, is_ci_1.isCI)(), | ||
}, | ||
]); | ||
serverRouting = reply.serverRouting === 'Yes'; | ||
} | ||
else { | ||
serverRouting = false; | ||
} | ||
e2eTestRunner = await determineE2eTestRunner(parsedArgs); | ||
@@ -771,2 +791,3 @@ return { | ||
ssr, | ||
serverRouting, | ||
prefix, | ||
@@ -773,0 +794,0 @@ }; |
{ | ||
"name": "create-nx-workspace", | ||
"version": "20.2.0-beta.4", | ||
"version": "20.2.0-beta.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Smart Monorepos · Fast CI", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110444
3003