Skip to content

Commit

Permalink
chore: move detox-cli from globally installed to devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jul 26, 2024
1 parent 234738a commit 7ee68d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@
"chromedriver": "^123.0.1",
"depcheck": "^1.4.7",
"detox": "^20.20.3",
"detox-cli": "^20.0.0",
"dotenv": "^16.0.3",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.10.0",
Expand Down
12 changes: 3 additions & 9 deletions scripts/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ const rendererOptions = {
* FIXME: We shouldn't be making system wide installs without user consent.
* Should make it optional on non-CI environments
*/
const detoxGlobalInstallTask = {
title: 'Install Detox utils',
const utilsInstallTask = {
title: 'Install utils',
task: (_, task) => task.newListr([
{
title: 'Install detox-cli globally',
task: async () => {
await $`yarn global add detox-cli`;
}
},
{
title: 'Install applesimutils globally',
task: async (_, appSimTask) => {
Expand Down Expand Up @@ -148,7 +142,7 @@ const mainSetupTask = {
},
},
copyEnvVarsTask,
detoxGlobalInstallTask
utilsInstallTask
],
{
exitOnError: false,
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15731,6 +15731,13 @@ detect-node@^2.0.4:
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==

detox-cli@^20.0.0:
version "20.0.0"
resolved "https://registry.yarnpkg.com/detox-cli/-/detox-cli-20.0.0.tgz#ea70b45db7ff10cb8ca9e304b02e6593cc27a645"
integrity sha512-0xfPs6q8vxYlai0bjqmw34/iTmQle4PLAI9W/u5DldOq94/nMP2sZn4ZF3ieQ39oWrPeGHco/pXG845p5TSe3Q==
dependencies:
chalk "^4.0.0"

detox@^20.20.3:
version "20.20.3"
resolved "https://registry.yarnpkg.com/detox/-/detox-20.20.3.tgz#c39470523b1a75c4dc895666c5d749978978e42e"
Expand Down

0 comments on commit 7ee68d4

Please sign in to comment.