Compare commits

...

2 Commits

Author SHA1 Message Date
Jason Jean ad9d609054 Release 12.3.2 2021-05-14 19:04:46 -04:00
Jason Jean fe7b2b4390 fix(core): run workspace-generators within the same process 2021-05-14 17:47:32 -04:00
2 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nrwl/nx-source",
"version": "12.3.0",
"version": "12.3.2",
"description": "Powerful, Extensible Dev Tools",
"homepage": "https://nx.dev",
"private": true,
@@ -24,6 +24,7 @@ import { output } from '../utilities/output';
import type { CompilerOptions } from 'typescript';
import { Workspaces } from '@nrwl/tao/src/shared/workspace';
import { logger, normalizePath } from '@nrwl/devkit';
import { generate } from '@nrwl/tao/src/commands/generate';
const rootDirectory = appRootPath;
@@ -47,16 +48,12 @@ export async function workspaceGenerators(args: string[]) {
const generatorName = args[0];
const ws = new Workspaces(rootDirectory);
if (ws.isNxGenerator(collectionFile, generatorName)) {
try {
execSync(
`npx tao g "${collectionFile}":${generatorName} ${args
.slice(1)
.join(' ')}`,
{ stdio: ['inherit', 'inherit', 'inherit'] }
);
} catch (e) {
process.exit(1);
}
process.exitCode = await generate(
process.cwd(),
rootDirectory,
args.slice(1),
parsedArgs.verbose
);
} else {
const logger = require('@angular-devkit/core/node').createConsoleLogger(
parsedArgs.verbose,