DEV Community

Discussion on: Building full-stack web-applications with Angular, NestJS and Nx - a match made in heaven

Collapse
 
eta32carinae profile image
Saman Sajedi

Thank you for your great tutorial.

I have this postinstall line in my package.json file which doesn't allow me to run npm install --production successfully, unless I move @angular/cli and @angular/compiler-cli from devDependencies to dependencies.

"scripts": {
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main"
...
}

Is moving dependencies ok? What's the best way to solve this problem?