Skip to content

Commit

Permalink
feat(misc): remove deprecated code from @nx/workspace
Browse files Browse the repository at this point in the history
remove deprecated and with v17 removal marked code from @nx/workspace
  • Loading branch information
Phillip9587 committed Oct 12, 2023
1 parent 5516752 commit e8d49b3
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 783 deletions.
17 changes: 0 additions & 17 deletions packages/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,12 @@ export {
serializeTarget,
} from './src/utils/cli-config-utils';

export {
getWorkspace,
updateWorkspace,
updateBuilderConfig,
} from './src/utils/workspace';
export { Linter } from './src/utils/lint';

export { addInstallTask } from './src/utils/rules/add-install-task';
export { formatFiles } from './src/utils/rules/format-files';
export { deleteFile } from './src/utils/rules/deleteFile';

export { visitNotIgnoredFiles } from './src/utils/rules/visit-not-ignored-files';
import * as strings from './src/utils/strings';

// TODO(v17): Remove this export.
export { checkAndCleanWithSemver } from './src/utils/version-utils';

export { moveGenerator } from './src/generators/move/move';
export { removeGenerator } from './src/generators/remove/remove';
export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
export {
convertToNxProjectGenerator,
convertToNxProjectSchematic,
} from './src/generators/convert-to-nx-project/convert-to-nx-project';

export const stringUtils = strings;
17 changes: 0 additions & 17 deletions packages/workspace/src/utilities/run-tasks-in-serial.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/workspace/src/utilities/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,3 @@ import {
getRelativePathToRootTsConfig as _getRelativePathToRootTsConfig,
getRootTsConfigPathInTree as _getRootTsConfigPathInTree,
} from './ts-config';

/**
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/
export function getRelativePathToRootTsConfig(tree: Tree, targetPath: string) {
return _getRelativePathToRootTsConfig(tree, targetPath);
}

/**
* @deprecated Please import this from @nx/js instead. This function will be removed in v17
*/
export function getRootTsConfigPathInTree(tree: Tree) {
return _getRootTsConfigPathInTree(tree);
}
12 changes: 0 additions & 12 deletions packages/workspace/src/utilities/version-utils.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/workspace/src/utils/ast-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { getSourceNodes } from '../utilities/typescript/get-source-nodes';

export { getSourceNodes } from '../utilities/typescript/get-source-nodes';
79 changes: 0 additions & 79 deletions packages/workspace/src/utils/fileutils.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/workspace/src/utils/rules/add-install-task.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/workspace/src/utils/rules/deleteFile.ts

This file was deleted.

82 changes: 0 additions & 82 deletions packages/workspace/src/utils/rules/format-files.ts

This file was deleted.

46 changes: 0 additions & 46 deletions packages/workspace/src/utils/rules/visit-not-ignored-files.ts

This file was deleted.

63 changes: 0 additions & 63 deletions packages/workspace/src/utils/strings.spec.ts

This file was deleted.

Loading

0 comments on commit e8d49b3

Please sign in to comment.