Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(misc): remove deprecated code from @nx/workspace #19588

Merged
merged 3 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages-legacy/workspace/testing.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,9 @@ 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 } from './src/generators/convert-to-nx-project/convert-to-nx-project';

export const stringUtils = strings;
2 changes: 0 additions & 2 deletions packages/workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
"@nx/devkit": "file:../devkit",
"chalk": "^4.1.0",
"enquirer": "~2.3.6",
"ignore": "^5.0.4",
"rxjs": "^7.8.0",
"tslib": "^2.3.0",
"yargs-parser": "21.1.1"
},
Expand Down
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