You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@backstage/cli-common

Package Overview
Dependencies
Maintainers
3
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/cli-common - npm Package Compare versions

Comparing version
0.2.0-next.2
to
0.2.0
+34
-0
CHANGELOG.md
# @backstage/cli-common
## 0.2.0
### Minor Changes
- 56bd494: Added `targetPaths` and `findOwnPaths` as replacements for `findPaths`, with a cleaner separation between target project paths and package-relative paths.
To migrate existing `findPaths` usage:
```ts
// Before
import { findPaths } from '@backstage/cli-common';
const paths = findPaths(__dirname);
// After — for target project paths (cwd-based):
import { targetPaths } from '@backstage/cli-common';
// paths.targetDir → targetPaths.dir
// paths.targetRoot → targetPaths.rootDir
// paths.resolveTarget('src') → targetPaths.resolve('src')
// paths.resolveTargetRoot('yarn.lock') → targetPaths.resolveRoot('yarn.lock')
// After — for package-relative paths:
import { findOwnPaths } from '@backstage/cli-common';
const own = findOwnPaths(__dirname);
// paths.ownDir → own.dir
// paths.ownRoot → own.rootDir
// paths.resolveOwn('config/jest.js') → own.resolve('config/jest.js')
// paths.resolveOwnRoot('tsconfig.json') → own.resolveRoot('tsconfig.json')
```
### Patch Changes
- e44b6a9: The `findOwnRootDir` utility now searches for the monorepo root by traversing up the directory tree looking for a `package.json` with `workspaces`, instead of assuming a fixed `../..` relative path. If no workspaces root is found during this traversal, `findOwnRootDir` now throws to enforce stricter validation of the repository layout.
- 9361965: Fixed `runCheck` to ignore stdio of the spawned process, preventing unwanted output from leaking to the terminal.
## 0.2.0-next.2

@@ -4,0 +38,0 @@

+3
-3
{
"name": "@backstage/cli-common",
"version": "0.2.0-next.2",
"version": "0.2.0",
"description": "Common functionality used by cli, backend, and create-app",

@@ -59,3 +59,3 @@ "backstage": {

"dependencies": {
"@backstage/errors": "1.2.7",
"@backstage/errors": "^1.2.7",
"cross-spawn": "^7.0.3",

@@ -66,3 +66,3 @@ "global-agent": "^3.0.0",

"devDependencies": {
"@backstage/cli": "0.36.0-next.2",
"@backstage/cli": "^0.36.0",
"@types/cross-spawn": "^6.0.2",

@@ -69,0 +69,0 @@ "@types/node": "^22.13.14"