Skip to content

Commit 34da522

Browse files
authored
feat: additional support for nx run nativescript-app:build (#29)
You can trigger a build via `nx build TARGET` or `nx run TARGET:build`. The latter is also being used if you run `nx affected:build` or something like `nx run-many --target build --all --prod --with-deps`. This would set `isBuild` to false.
1 parent 5e584e8 commit 34da522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/builders/build/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function runBuilder(options: BuildBuilderSchema, context: ExecutorContext
66
return new Promise((resolve, reject) => {
77
const projectConfig = context.workspace.projects[context.projectName];
88
// determine if running or building only
9-
const isBuild = process.argv.find((a) => a === 'build');
9+
const isBuild = process.argv.find((a) => a === 'build' || a.endsWith(":build"));
1010
if (isBuild) {
1111
// allow build options to override run target options
1212
const buildTarget = projectConfig.targets['build'];

0 commit comments

Comments
 (0)