add-dependencies
npm run add:dependenciesInteractive, or with args (positional or named; --args optional):
npm run add:dependencies -- --args <workspacePkg> <dependencies>npm run add:dependencies -- @app/core zod date-fns
npm run add:dependencies -- --workspacePkg @app/core --dependencies zod date-fnsLess of a generator and more of a utility script, this installs Expo SDK compatible versions of the specified dependencies in the selected workspace’s package.json.
- add-dependencies.ts
Prompt Arguments
| Argument | Type | Question / Description |
|---|---|---|
| workspacePkg | autocomplete | Where would you like to install these dependencies? => e.g. @app/core or some-package |
| dependencies | text | Which dependencies should we install Expo SDK compatible versions for? => string (comma separated) |
Resulting File Changes
# Installs dependencies in the selected workspace's package.json ❇️