From c79d5f487116c1740239a3ba83ef1a853a8fddc4 Mon Sep 17 00:00:00 2001 From: GitHub CD bot Date: Fri, 9 Feb 2024 09:31:58 +0000 Subject: [PATCH 1/2] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 75d9bed..c39892f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-codeceptjs", - "version": "1.0.0", + "version": "1.0.1", "description": "Install CodeceptJS with all its dependencies in a single run", "main": "index.js", "bin": { 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 2/2] 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...');