Open guillempuche opened 4 months ago
you can manually change sync-deps target:
"sync-deps": {
"executor": "@nx/expo:sync-deps",
"options": {
"excludeImplicit": true,
"exclude": ["@nx/devkit", "@nx/eslint", "@nx/jest", "@nx/js", "@nx/react", "@nx/web", "@nx/webpack"]
}
},
I might miss something. Nx adds more than only Nx's plugins.
Why does it add these?
"chalk": "*",
"enhanced-resolve": "*",
"fs-extra": "*",
"metro-resolver": "*",
"node-fetch": "*",
"tsconfig-paths": "*",
I have the same problem, but with some additional dependencies added:
Node : 20.11.0
OS : darwin-arm64
Native Target : aarch64-macos
yarn : 1.22.22
nx : 19.8.4
@nx/js : 19.8.4
@nx/jest : 19.8.4
@nx/linter : 19.8.4
@nx/eslint : 19.8.4
@nx/workspace : 19.8.4
@nx/cypress : 19.8.4
@nx/detox : 19.8.4
@nx/devkit : 19.8.4
@nx/eslint-plugin : 19.8.4
@nx/expo : 19.8.4
@nx/react : 19.8.4
@nx/react-native : 19.8.4
@nx/rollup : 19.8.4
@nx/storybook : 19.8.4
@nrwl/tao : 19.8.4
@nx/web : 19.8.4
@nx/webpack : 19.8.4
nx-cloud : 19.1.0
typescript : 5.3.3
These are added to dependencies:
"@nx/devkit": "*",
"@nx/eslint": "*",
"enhanced-resolve": "*",
"metro-resolver": "*",
"node-fetch": "*",
"picocolors": "*",
"ajv": "*",
"chalk": "*",
"glob": "*",
"ignore": "*"
Is the recommended advice just to exclude these? Like @guillempuche these things seem to populate from nowhere.
Current Behavior
I create a blank Expo project with Nx create with this package https://github.com/guillempuche/test-nx-expo/blob/main/apps/expo/package.json (Emily already fixed a problem https://github.com/nrwl/nx/issues/26285#issuecomment-2159343424).
The problem happens when running
npm exec nx run expo:sync-deps
from the root, it adds packages independencies
that will be bundled in the app.// apps/expo/package.json
Expected Behavior
// apps/expo/package.json
GitHub Repo
https://github.com/guillempuche/test-nx-expo/
Steps to Reproduce
npm i
npm exec nx run expo:sync-deps
Nx Report
Failure Logs
No response
Package Manager Version
npm 10.7.0
Operating System
Additional Information
No response