-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move dependencies to devDependencies (nx, ts-morph, tslib, @nx/devkit, angular-eslint/bundled-angular-compiler) #410
Comments
Last comment on #304
|
Moving to What we can do is to deprecate # instead of
# ng add ngxtension
# we will have
npm i ngxtension
npm i -D @nx/devkit
npx ng g ngxtension:init For migrations (and npm i -D ts-morph @angular-eslint/bundled-angular-compiler
npx ng update ngxtension The DX does decrease a bit but we will not have bloated node_modules anymore and also unblock @marcj as well. |
Have you looked into This PR gives an example for |
@jdegand |
Is there any progress on this issue? I am most interested in splitting into two packages, personally. That would at least solve the problem of someone wanting to use the awesome helpers like |
For everyone, who needs a quick solution: "overrides": {
"ngxtension": {
"nx": "npm:[email protected]",
"@nx/devkit": "npm:[email protected]",
"ts-morph": "npm:[email protected]"
}
} to my package.json, which replaces the dependencies with empty packages. |
In the
ngxtension
package we have lots of dependencies that will be installed in a project that hasngxtension
as dependency: https://github.com/ngxtension/ngxtension-platform/blob/main/libs/ngxtension/package.json#L32None of these are actually required. Please remove them or move them to
devDependencies
.In my current project I try to build the angular package via Docker based on Alpine, which fails because it thanks to ngextension it tries to pull in
nx
:This prevents me from using ngextension, since I deploy on ARM machines. Also this bloats my node_modules and installs
nx
every time unnecessarily.The text was updated successfully, but these errors were encountered: