Skip to content

Commit 25513fc

Browse files
JakeAiJake Ihasz
andauthored
fix: add quotes to file replacement switch (#54)
When more than 1 file replacement is present, the comma would break the command. Co-authored-by: Jake Ihasz <[email protected]>
1 parent ff0793f commit 25513fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/utils/executors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function commonExecutor(options: BuildExecutorSchema | TestExecutorSchema
205205

206206
if (nsCliFileReplacements.length) {
207207
// console.log('nsCliFileReplacements:', nsCliFileReplacements);
208-
nsOptions.push(`--env.replace=${nsCliFileReplacements.join(',')}`);
208+
nsOptions.push(`--env.replace="${nsCliFileReplacements.join(',')}"`);
209209
}
210210
// always add --force (unless explicity set to false) for now since within Nx we use @nativescript/webpack at root only and the {N} cli shows a blocking error if not within the app
211211
if (options?.force !== false) {

0 commit comments

Comments
 (0)