feat(core): move forEachExecutorOptions to devkit (#15547)
This commit is contained in:
parent
46b3767303
commit
c3a58e9c1d
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
const executors = [
|
const executors = [
|
||||||
'@angular-devkit/build-angular:browser',
|
'@angular-devkit/build-angular:browser',
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
const nxJson = readNxJson(tree);
|
const nxJson = readNxJson(tree);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import type { Tree } from '@nrwl/devkit';
|
|||||||
import { formatFiles } from '@nrwl/devkit';
|
import { formatFiles } from '@nrwl/devkit';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import { Builders } from '@schematics/angular/utility/workspace-models';
|
import { Builders } from '@schematics/angular/utility/workspace-models';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { FileChangeRecorder } from '../../utils/file-change-recorder';
|
import { FileChangeRecorder } from '../../utils/file-change-recorder';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import type { Tree } from '@nrwl/devkit';
|
import type { Tree } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export function getMFProjects(
|
export function getMFProjects(
|
||||||
tree: Tree,
|
tree: Tree,
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import {
|
|||||||
updateJson,
|
updateJson,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { CypressExecutorOptions } from '../../executors/cypress/cypress.impl';
|
import { CypressExecutorOptions } from '../../executors/cypress/cypress.impl';
|
||||||
import {
|
import {
|
||||||
addConfigToTsConfig,
|
addConfigToTsConfig,
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import {
|
|||||||
updateJson,
|
updateJson,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import { CypressExecutorOptions } from '../../executors/cypress/cypress.impl';
|
import { CypressExecutorOptions } from '../../executors/cypress/cypress.impl';
|
||||||
@ -165,4 +165,5 @@ function cacheComponentTestTarget(tree: Tree) {
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
export default updateCypressConfigsPresets;
|
export default updateCypressConfigsPresets;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { CypressExecutorOptions } from '@nrwl/cypress/src/executors/cypress/cypress.impl';
|
import { CypressExecutorOptions } from '@nrwl/cypress/src/executors/cypress/cypress.impl';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
|
|||||||
@ -12,8 +12,8 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { checkAndCleanWithSemver } from '@nrwl/devkit/src/utils/semver';
|
import { checkAndCleanWithSemver } from '@nrwl/devkit/src/utils/semver';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import { gte } from 'semver';
|
import { gte } from 'semver';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import { extname } from 'path';
|
import { extname } from 'path';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import {
|
import {
|
||||||
|
GeneratorCallback,
|
||||||
getProjects,
|
getProjects,
|
||||||
|
installPackagesTask,
|
||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
updateJson,
|
updateJson,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
installPackagesTask,
|
|
||||||
GeneratorCallback,
|
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import {
|
import {
|
||||||
CallExpression,
|
CallExpression,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { addProjectConfiguration, Tree } from '@nrwl/devkit';
|
import { addProjectConfiguration, Tree } from 'nx/src/devkit-exports';
|
||||||
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
import { createTreeWithEmptyWorkspace } from 'nx/src/devkit-testing-exports';
|
||||||
|
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from './executor-options-utils';
|
||||||
|
|
||||||
describe('forEachExecutorOptions', () => {
|
describe('forEachExecutorOptions', () => {
|
||||||
let tree: Tree;
|
let tree: Tree;
|
||||||
@ -1,9 +1,9 @@
|
|||||||
import {
|
import type { Tree } from 'nx/src/generators/tree';
|
||||||
Tree,
|
import type { ProjectGraph } from 'nx/src/config/project-graph';
|
||||||
getProjects,
|
import type { ProjectConfiguration } from 'nx/src/config/workspace-json-project-json';
|
||||||
ProjectConfiguration,
|
import { requireNx } from '../../nx';
|
||||||
ProjectGraph,
|
|
||||||
} from '@nrwl/devkit';
|
const { getProjects } = requireNx();
|
||||||
|
|
||||||
type CallBack<T> = (
|
type CallBack<T> = (
|
||||||
currentValue: T,
|
currentValue: T,
|
||||||
@ -25,7 +25,7 @@ export function forEachExecutorOptions<Options>(
|
|||||||
* Callback that is called for each options configured for a builder
|
* Callback that is called for each options configured for a builder
|
||||||
*/
|
*/
|
||||||
callback: CallBack<Options>
|
callback: CallBack<Options>
|
||||||
) {
|
): void {
|
||||||
forEachProjectConfig(getProjects(tree), executorName, callback);
|
forEachProjectConfig(getProjects(tree), executorName, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ export function forEachExecutorOptionsInGraph<Options>(
|
|||||||
graph: ProjectGraph,
|
graph: ProjectGraph,
|
||||||
executorName: string,
|
executorName: string,
|
||||||
callback: CallBack<Options>
|
callback: CallBack<Options>
|
||||||
) {
|
): void {
|
||||||
const projects = new Map<string, ProjectConfiguration>();
|
const projects = new Map<string, ProjectConfiguration>();
|
||||||
Object.values(graph.nodes).forEach((p) => projects.set(p.name, p.data));
|
Object.values(graph.nodes).forEach((p) => projects.set(p.name, p.data));
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ function forEachProjectConfig<Options>(
|
|||||||
projects: Map<string, ProjectConfiguration>,
|
projects: Map<string, ProjectConfiguration>,
|
||||||
executorName: string,
|
executorName: string,
|
||||||
callback: CallBack<Options>
|
callback: CallBack<Options>
|
||||||
) {
|
): void {
|
||||||
for (const [projectName, project] of projects) {
|
for (const [projectName, project] of projects) {
|
||||||
for (const [targetName, target] of Object.entries(project.targets || {})) {
|
for (const [targetName, target] of Object.entries(project.targets || {})) {
|
||||||
if (executorName !== target.executor) {
|
if (executorName !== target.executor) {
|
||||||
@ -7,12 +7,12 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateJson,
|
updateJson,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import {
|
import {
|
||||||
addPropertyToJestConfig,
|
addPropertyToJestConfig,
|
||||||
removePropertyFromJestConfig,
|
removePropertyFromJestConfig,
|
||||||
} from '@nrwl/jest';
|
} from '@nrwl/jest';
|
||||||
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -5,13 +5,12 @@ import {
|
|||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import {
|
import {
|
||||||
addPropertyToJestConfig,
|
addPropertyToJestConfig,
|
||||||
removePropertyFromJestConfig,
|
removePropertyFromJestConfig,
|
||||||
} from '../../utils/config/update-config';
|
} from '../../utils/config/update-config';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
|
|
||||||
function updateJestConfig(tree: Tree) {
|
function updateJestConfig(tree: Tree) {
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { formatFiles, logger, stripIndents, Tree } from '@nrwl/devkit';
|
import { formatFiles, logger, stripIndents, Tree } from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import {
|
import {
|
||||||
addPropertyToJestConfig,
|
addPropertyToJestConfig,
|
||||||
|
|||||||
@ -6,9 +6,8 @@ import {
|
|||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import { addPropertyToJestConfig } from '../../utils/config/update-config';
|
import { addPropertyToJestConfig } from '../../utils/config/update-config';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { formatFiles, logger, stripIndents, Tree } from '@nrwl/devkit';
|
import { formatFiles, logger, stripIndents, Tree } from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import {
|
import {
|
||||||
addPropertyToJestConfig,
|
addPropertyToJestConfig,
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import {
|
import {
|
||||||
formatFiles,
|
formatFiles,
|
||||||
logger,
|
logger,
|
||||||
@ -8,6 +7,7 @@ import {
|
|||||||
updateJson,
|
updateJson,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { basename } from 'path';
|
import { basename } from 'path';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
readProjectConfiguration,
|
readProjectConfiguration,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import { jestConfigObject } from '../../utils/config/functions';
|
import { jestConfigObject } from '../../utils/config/functions';
|
||||||
import { nxVersion } from '../../utils/versions';
|
import { nxVersion } from '../../utils/versions';
|
||||||
|
|||||||
@ -10,9 +10,9 @@ import {
|
|||||||
updateJson,
|
updateJson,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { extname } from 'path';
|
import { extname } from 'path';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
|
|
||||||
const allowedExt = ['.ts', '.js'];
|
const allowedExt = ['.ts', '.js'];
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { addDependenciesToPackageJson, GeneratorCallback } from '@nrwl/devkit';
|
|
||||||
import type { Tree } from '@nrwl/devkit';
|
import type { Tree } from '@nrwl/devkit';
|
||||||
|
import { addDependenciesToPackageJson } from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsNodeVersion } from '../../utils/versions';
|
import { tsNodeVersion } from '../../utils/versions';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import type { BinaryExpression } from 'typescript';
|
import type { BinaryExpression } from 'typescript';
|
||||||
import type { JestExecutorOptions } from '../../executors/jest/schema';
|
import type { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { addDependenciesToPackageJson, readJson, Tree } from '@nrwl/devkit';
|
import { addDependenciesToPackageJson, readJson, Tree } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import { isStringLiteralLike, PropertyAssignment } from 'typescript';
|
import { isStringLiteralLike, PropertyAssignment } from 'typescript';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
const nxJson = readNxJson(tree);
|
const nxJson = readNxJson(tree);
|
||||||
|
|||||||
@ -1,15 +1,15 @@
|
|||||||
import {
|
import {
|
||||||
|
createProjectGraphAsync,
|
||||||
formatFiles,
|
formatFiles,
|
||||||
logger,
|
logger,
|
||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
createProjectGraphAsync,
|
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptionsInGraph } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { TS_QUERY_JEST_CONFIG_PREFIX } from '../../utils/ast-utils';
|
import { TS_QUERY_JEST_CONFIG_PREFIX } from '../../utils/ast-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import { JestExecutorOptions } from '../../executors/jest/schema';
|
import { JestExecutorOptions } from '../../executors/jest/schema';
|
||||||
import { forEachExecutorOptionsInGraph } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { findRootJestPreset } from '../../utils/config/find-root-jest-files';
|
import { findRootJestPreset } from '../../utils/config/find-root-jest-files';
|
||||||
|
|
||||||
export async function updateConfigsJest29(tree: Tree) {
|
export async function updateConfigsJest29(tree: Tree) {
|
||||||
@ -226,4 +226,5 @@ function getNodeWithComments(fullText: string, node: ts.Node) {
|
|||||||
}
|
}
|
||||||
return node.getText();
|
return node.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default updateConfigsJest29;
|
export default updateConfigsJest29;
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
visitNotIgnoredFiles,
|
visitNotIgnoredFiles,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptionsInGraph } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptionsInGraph } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import {
|
import {
|
||||||
CallExpression,
|
CallExpression,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { readProjectConfiguration, Tree, updateJson } from '@nrwl/devkit';
|
import { readProjectConfiguration, Tree, updateJson } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { SwcExecutorOptions } from '../../utils/schema';
|
import { SwcExecutorOptions } from '../../utils/schema';
|
||||||
import { defaultExclude } from '../../utils/swc/add-swc-config';
|
import { defaultExclude } from '../../utils/swc/add-swc-config';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { readProjectConfiguration, Tree, updateJson } from '@nrwl/devkit';
|
import { readProjectConfiguration, Tree, updateJson } from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { SwcExecutorOptions } from '../../utils/schema';
|
import { SwcExecutorOptions } from '../../utils/schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
export function excludeJestConfigSwcrc(tree: Tree) {
|
export function excludeJestConfigSwcrc(tree: Tree) {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { SwcExecutorOptions } from '../../utils/schema';
|
import { SwcExecutorOptions } from '../../utils/schema';
|
||||||
|
|
||||||
type OldSwcExecutorOptions = SwcExecutorOptions & { swcrcPath?: string };
|
type OldSwcExecutorOptions = SwcExecutorOptions & { swcrcPath?: string };
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { SwcExecutorOptions } from '../../utils/schema';
|
import { SwcExecutorOptions } from '../../utils/schema';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import type { TemplateSpan } from 'typescript';
|
import type { TemplateSpan } from 'typescript';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Tree } from '@nrwl/devkit';
|
import { Tree } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export function getEslintTargets(tree: Tree) {
|
export function getEslintTargets(tree: Tree) {
|
||||||
const eslintTargetNames = new Set<string>();
|
const eslintTargetNames = new Set<string>();
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function update(host: Tree) {
|
export default async function update(host: Tree) {
|
||||||
forEachExecutorOptions(
|
forEachExecutorOptions(
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function update(tree: Tree) {
|
export default async function update(tree: Tree) {
|
||||||
forEachExecutorOptions(
|
forEachExecutorOptions(
|
||||||
|
|||||||
@ -1,12 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
addDependenciesToPackageJson,
|
addDependenciesToPackageJson,
|
||||||
formatFiles,
|
formatFiles,
|
||||||
getProjects,
|
|
||||||
readProjectConfiguration,
|
readProjectConfiguration,
|
||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { nxVersion } from '@nrwl/workspace/src/utils/versions';
|
import { nxVersion } from '@nrwl/workspace/src/utils/versions';
|
||||||
|
|
||||||
export default async function update(host: Tree) {
|
export default async function update(host: Tree) {
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import {
|
import {
|
||||||
|
createProjectGraphAsync,
|
||||||
formatFiles,
|
formatFiles,
|
||||||
logger,
|
logger,
|
||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
createProjectGraphAsync,
|
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import * as ts from 'typescript';
|
import * as ts from 'typescript';
|
||||||
import { forEachExecutorOptionsInGraph } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptionsInGraph } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { TS_QUERY_JEST_CONFIG_PREFIX } from '@nrwl/jest/src/utils/ast-utils';
|
import { TS_QUERY_JEST_CONFIG_PREFIX } from '@nrwl/jest/src/utils/ast-utils';
|
||||||
import { findRootJestPreset } from '@nrwl/jest/src/utils/config/find-root-jest-files';
|
import { findRootJestPreset } from '@nrwl/jest/src/utils/config/find-root-jest-files';
|
||||||
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
@ -227,4 +227,5 @@ function getNodeWithComments(fullText: string, node: ts.Node) {
|
|||||||
}
|
}
|
||||||
return node.getText();
|
return node.getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default updateConfigsJest29;
|
export default updateConfigsJest29;
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import {
|
|||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
import { TEST_FILE_PATTERN } from '@nrwl/jest/src/utils/ast-utils';
|
import { TEST_FILE_PATTERN } from '@nrwl/jest/src/utils/ast-utils';
|
||||||
import { forEachExecutorOptionsInGraph } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptionsInGraph } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import {
|
import {
|
||||||
CallExpression,
|
CallExpression,
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import {
|
|||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -6,9 +6,9 @@ import {
|
|||||||
stripIndents,
|
stripIndents,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { removePropertyFromJestConfig } from '@nrwl/jest';
|
import { removePropertyFromJestConfig } from '@nrwl/jest';
|
||||||
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export async function updateExternalEmotionJsxRuntime(tree: Tree) {
|
export async function updateExternalEmotionJsxRuntime(tree: Tree) {
|
||||||
forEachExecutorOptions<any>(
|
forEachExecutorOptions<any>(
|
||||||
|
|||||||
@ -4,8 +4,8 @@ import {
|
|||||||
readProjectConfiguration,
|
readProjectConfiguration,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import type { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
import type { JestExecutorOptions } from '@nrwl/jest/src/executors/jest/schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import { StringLiteral } from 'typescript';
|
import { StringLiteral } from 'typescript';
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { basename } from 'path';
|
import { basename } from 'path';
|
||||||
import type { WebpackExecutorOptions } from '@nrwl/webpack';
|
import type { WebpackExecutorOptions } from '@nrwl/webpack';
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import {
|
|||||||
workspaceRoot,
|
workspaceRoot,
|
||||||
writeJson,
|
writeJson,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { Linter } from '@nrwl/linter';
|
import { Linter } from '@nrwl/linter';
|
||||||
import { join, relative } from 'path';
|
import { join, relative } from 'path';
|
||||||
import {
|
import {
|
||||||
@ -24,7 +25,6 @@ import {
|
|||||||
TsConfig,
|
TsConfig,
|
||||||
} from '../../utils/utilities';
|
} from '../../utils/utilities';
|
||||||
import { StorybookConfigureSchema } from './schema';
|
import { StorybookConfigureSchema } from './schema';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { UiFramework, UiFramework7 } from '../../utils/models';
|
import { UiFramework, UiFramework7 } from '../../utils/models';
|
||||||
|
|
||||||
const DEFAULT_PORT = 4400;
|
const DEFAULT_PORT = 4400;
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import {
|
|||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
workspaceRoot,
|
workspaceRoot,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import ts = require('typescript');
|
import ts = require('typescript');
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
import { formatFiles, readNxJson, Tree, updateNxJson } from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
const nxJson = readNxJson(tree);
|
const nxJson = readNxJson(tree);
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
updateNonAngularStorybookBuildTargets(tree);
|
updateNonAngularStorybookBuildTargets(tree);
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import {
|
|||||||
logger,
|
logger,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import ts = require('typescript');
|
|
||||||
import { removeRootConfig } from './remove-root-config';
|
import { removeRootConfig } from './remove-root-config';
|
||||||
|
import ts = require('typescript');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The purpose of this migrator is to help users move away
|
* The purpose of this migrator is to help users move away
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import {
|
|||||||
StringChange,
|
StringChange,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import ts = require('typescript');
|
|
||||||
import { getRootMainVariableName } from './add-addon-essentials-to-all';
|
import { getRootMainVariableName } from './add-addon-essentials-to-all';
|
||||||
|
import ts = require('typescript');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The purpose of this migrator is to help users move away
|
* The purpose of this migrator is to help users move away
|
||||||
|
|||||||
@ -5,12 +5,11 @@ import {
|
|||||||
readProjectConfiguration,
|
readProjectConfiguration,
|
||||||
Tree,
|
Tree,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
import { tsquery } from '@phenomnomnominal/tsquery';
|
import { tsquery } from '@phenomnomnominal/tsquery';
|
||||||
import { findNodes } from 'nx/src/utils/typescript';
|
import { findNodes } from 'nx/src/utils/typescript';
|
||||||
import ts = require('typescript');
|
|
||||||
import { normalizeViteConfigFilePathWithTree } from '../../utils/generator-utils';
|
import { normalizeViteConfigFilePathWithTree } from '../../utils/generator-utils';
|
||||||
|
import ts = require('typescript');
|
||||||
|
|
||||||
export async function removeProjectsFromViteTsConfigPaths(tree: Tree) {
|
export async function removeProjectsFromViteTsConfigPaths(tree: Tree) {
|
||||||
findAllProjectsWithViteConfig(tree);
|
findAllProjectsWithViteConfig(tree);
|
||||||
|
|||||||
@ -4,8 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
|
|
||||||
export async function setModeInConfiguration(tree: Tree) {
|
export async function setModeInConfiguration(tree: Tree) {
|
||||||
forAllProjectsUsingViteAddMode(tree);
|
forAllProjectsUsingViteAddMode(tree);
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { VitestExecutorOptions } from '../../executors/test/schema';
|
import { VitestExecutorOptions } from '../../executors/test/schema';
|
||||||
|
|
||||||
export function updateReportDirectoryPlaceholders(tree: Tree) {
|
export function updateReportDirectoryPlaceholders(tree: Tree) {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { WebpackExecutorOptions } from '../../executors/webpack/schema';
|
import { WebpackExecutorOptions } from '../../executors/webpack/schema';
|
||||||
import { basename } from 'path';
|
import { basename } from 'path';
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
import { WebpackExecutorOptions } from '../../executors/webpack/schema';
|
import { WebpackExecutorOptions } from '../../executors/webpack/schema';
|
||||||
|
|
||||||
export default async function (tree: Tree) {
|
export default async function (tree: Tree) {
|
||||||
|
|||||||
@ -4,7 +4,8 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export async function changeNpmScriptExecutor(tree: Tree) {
|
export async function changeNpmScriptExecutor(tree: Tree) {
|
||||||
forEachExecutorOptions(
|
forEachExecutorOptions(
|
||||||
|
|||||||
@ -4,7 +4,8 @@ import {
|
|||||||
Tree,
|
Tree,
|
||||||
updateProjectConfiguration,
|
updateProjectConfiguration,
|
||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { forEachExecutorOptions } from '@nrwl/workspace/src/utilities/executor-options-utils';
|
|
||||||
|
import { forEachExecutorOptions } from '@nrwl/devkit/src/generators/executor-options-utils';
|
||||||
|
|
||||||
export async function changeRunCommandsExecutor(tree: Tree) {
|
export async function changeRunCommandsExecutor(tree: Tree) {
|
||||||
forEachExecutorOptions(
|
forEachExecutorOptions(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user