diff --git a/.changeset/beige-suits-tell.md b/.changeset/beige-suits-tell.md new file mode 100644 index 0000000000..e9e8c919a3 --- /dev/null +++ b/.changeset/beige-suits-tell.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Applied the fix from version `0.15.3` of this package, which is part of the `v0.71.1` release of Backstage. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 4e0d088adb..08704d48a8 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @backstage/cli +## 0.15.3 + +### Patch Changes + +- Fixed an issue where the CLI would try and fail to require the `package.json` of other Backstage packages, like `@backstage/dev-utils/package.json`. + ## 0.15.2 ### Patch Changes diff --git a/packages/cli/src/lib/version.ts b/packages/cli/src/lib/version.ts index d65e1e06d6..1cddf773f4 100644 --- a/packages/cli/src/lib/version.ts +++ b/packages/cli/src/lib/version.ts @@ -19,7 +19,8 @@ import semver from 'semver'; import { paths } from './paths'; import { Lockfile } from './versioning'; -/* eslint-disable import/no-extraneous-dependencies,monorepo/no-internal-import */ +/* eslint-disable monorepo/no-relative-import */ + /* This is a list of all packages used by the templates. If dependencies are added or removed, this list should be updated as well. @@ -33,16 +34,16 @@ Rollup will extract the value of the version field in each package at build time leaving any imports in place. */ -import { version as backendCommon } from '@backstage/backend-common/package.json'; -import { version as cli } from '@backstage/cli/package.json'; -import { version as config } from '@backstage/config/package.json'; -import { version as coreAppApi } from '@backstage/core-app-api/package.json'; -import { version as coreComponents } from '@backstage/core-components/package.json'; -import { version as corePluginApi } from '@backstage/core-plugin-api/package.json'; -import { version as devUtils } from '@backstage/dev-utils/package.json'; -import { version as testUtils } from '@backstage/test-utils/package.json'; -import { version as theme } from '@backstage/theme/package.json'; -import { version as scaffolderBackend } from '@backstage/plugin-scaffolder-backend/package.json'; +import { version as backendCommon } from '../../../../packages/backend-common/package.json'; +import { version as cli } from '../../../../packages/cli/package.json'; +import { version as config } from '../../../../packages/config/package.json'; +import { version as coreAppApi } from '../../../../packages/core-app-api/package.json'; +import { version as coreComponents } from '../../../../packages/core-components/package.json'; +import { version as corePluginApi } from '../../../../packages/core-plugin-api/package.json'; +import { version as devUtils } from '../../../../packages/dev-utils/package.json'; +import { version as testUtils } from '../../../../packages/test-utils/package.json'; +import { version as theme } from '../../../../packages/theme/package.json'; +import { version as scaffolderBackend } from '../../../../plugins/scaffolder-backend/package.json'; export const packageVersions: Record = { '@backstage/backend-common': backendCommon,