Migrate from the command-exists-promise dependency to command-exists

Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
This commit is contained in:
Dominik Henneke
2021-06-14 10:38:24 +02:00
parent fdefd713b2
commit 4ca3228268
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
"@types/express": "^4.17.6",
"@types/git-url-parse": "^9.0.0",
"azure-devops-node-api": "^10.1.1",
"command-exists-promise": "^2.0.2",
"command-exists": "^1.2.9",
"compression": "^1.7.4",
"cors": "^2.8.5",
"cross-fetch": "^3.0.6",
@@ -18,7 +18,7 @@ const runCommand = jest.fn();
const commandExists = jest.fn();
jest.mock('./helpers', () => ({ runCommand }));
jest.mock('command-exists-promise', () => commandExists);
jest.mock('command-exists', () => commandExists);
jest.mock('fs-extra');
import { ContainerRunner } from '@backstage/backend-common';
@@ -21,7 +21,7 @@ import path from 'path';
import { runCommand } from './helpers';
import { TemplaterBase, TemplaterRunOptions } from './types';
const commandExists = require('command-exists-promise');
const commandExists = require('command-exists');
export class CookieCutter implements TemplaterBase {
private readonly containerRunner: ContainerRunner;