From e5570a7997f1296641ac9484fcfe0c7633a75122 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Thu, 13 Oct 2022 19:38:36 -0400 Subject: [PATCH] chore(core): remove @nrwl/workspace/src/utils/app-root (#12590) BREAKING CHANGES: importing @nrwl/workspace/src/utils/app-root will break. It has been deprecated since v13 --- packages/workspace/src/utils/app-root.ts | 2 -- packages/workspace/src/utils/runtime-lint-utils.ts | 2 +- scripts/documentation/internal-link-checker.ts | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 packages/workspace/src/utils/app-root.ts diff --git a/packages/workspace/src/utils/app-root.ts b/packages/workspace/src/utils/app-root.ts deleted file mode 100644 index 1946df9020..0000000000 --- a/packages/workspace/src/utils/app-root.ts +++ /dev/null @@ -1,2 +0,0 @@ -// TODO(v15): Remove this file -export { appRootPath, workspaceRoot } from '@nrwl/devkit'; diff --git a/packages/workspace/src/utils/runtime-lint-utils.ts b/packages/workspace/src/utils/runtime-lint-utils.ts index 95b5180557..f7c30f4b2f 100644 --- a/packages/workspace/src/utils/runtime-lint-utils.ts +++ b/packages/workspace/src/utils/runtime-lint-utils.ts @@ -8,9 +8,9 @@ import { parseJson, ProjectGraphExternalNode, joinPathFragments, + workspaceRoot, } from '@nrwl/devkit'; import { join } from 'path'; -import { workspaceRoot } from './app-root'; import { getPath, pathExists } from './graph-utils'; import { existsSync } from 'fs'; import { readFileIfExisting } from 'nx/src/project-graph/file-utils'; diff --git a/scripts/documentation/internal-link-checker.ts b/scripts/documentation/internal-link-checker.ts index 39a9af8ee0..f38ee2ba5e 100644 --- a/scripts/documentation/internal-link-checker.ts +++ b/scripts/documentation/internal-link-checker.ts @@ -1,4 +1,4 @@ -import { workspaceRoot } from '@nrwl/workspace/src/utils/app-root'; +import { workspaceRoot } from '@nrwl/devkit'; import { XMLParser } from 'fast-xml-parser'; import * as glob from 'glob'; import { readFileSync } from 'node:fs';