From cae534ce6c52deba54e36e764a4b75304fc0c256 Mon Sep 17 00:00:00 2001 From: KobeN <7845001+kobenguyent@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:36:21 +0100 Subject: [PATCH] fix: support force mode --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 0103c43..709e84a 100755 --- a/index.js +++ b/index.js @@ -133,6 +133,11 @@ async function createCodecept(opts) { deps.push(enginePackages.playwright); } + if (opts.force) { + deps.push('--force'); + } + + if (!existsSync('package.json')) { console.log('package.json file does not exist in current dir, creating it...');