Fix prettier existence checks and import order

Use fs.pathExists instead of checking resolved path strings which are
always truthy. Fix import ordering in e2e-test runCommand.ts.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Patrik Oldsberg
2026-02-23 21:43:50 +01:00
parent 8c3802c5ba
commit 2a515460e8
6 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -27,11 +27,11 @@ import { waitFor, print } from '../lib/helpers';
import mysql from 'mysql2/promise';
import pgtools from 'pgtools';
import { OptionValues } from 'commander';
import { findOwnPaths, runOutput, run } from '@backstage/cli-common';
/* eslint-disable-next-line no-restricted-syntax */
const ownPaths = findOwnPaths(__dirname);
import { OptionValues } from 'commander';
const templatePackagePaths = [
'packages/cli/templates/frontend-plugin/package.json.hbs',