Emily Xiong ff25c8dc14
fix(expo): change force to be an option for yarn (#28115)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->
- currently --force is passed into every `expo install` command -> then
the package install command
- but it is not supported in yarn, change it to an option so it would
not get passed in everytime

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes https://github.com/nrwl/nx/issues/28062
2024-09-27 16:01:18 -04:00

45 lines
1.3 KiB
JSON

{
"name": "install",
"implementation": "/packages/expo/src/executors/install/install.impl.ts",
"schema": {
"cli": "nx",
"version": 2,
"outputCapture": "direct-nodejs",
"$id": "NxExpoInstall",
"$schema": "https://json-schema.org/schema",
"title": "Expo Install",
"description": "Install a module or other package to a project.",
"type": "object",
"properties": {
"packages": {
"type": "array",
"items": { "type": "string" },
"default": [],
"description": "The names of packages to install",
"$default": { "$source": "argv", "index": 0 }
},
"check": {
"type": "boolean",
"description": "Check which installed packages need to be updated",
"default": false
},
"fix": {
"type": "boolean",
"description": "Automatically update any invalid package versions",
"default": false
},
"force": {
"type": "boolean",
"description": "Force the installation of a package, even if it is already installed",
"default": false
}
},
"presets": []
},
"description": "Install a module or other package to a project.",
"aliases": [],
"hidden": false,
"path": "/packages/expo/src/executors/install/schema.json",
"type": "executor"
}