-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable to modify build step for nestjs with nx v19 #23236
Comments
i have the same problem |
@Nazar-Brunarskyi someone gave me a tip by adding the information to the
@ndcunningham but maybe this should be referenced in the documentation for nestjs |
@cre8 thanks!! |
Sure: {
"name": "issuer-backend",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/issuer-backend/src",
"projectType": "application",
"tags": [],
"targets": {
"init": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cp apps/issuer-backend/.env.example apps/issuer-backend/.env"
]
}
},
"serve": {
"executor": "@nx/js:node",
"defaultConfiguration": "development",
"options": {
"buildTarget": "issuer-backend:build"
},
"configurations": {
"development": {
"buildTarget": "issuer-backend:build:development"
},
"production": {
"buildTarget": "issuer-backend:build:production"
}
}
},
"container": {
"executor": "@nx-tools/nx-container:build",
"dependsOn": ["build"],
"options": {
"engine": "docker",
"push": true,
"metadata": {
"images": ["ghcr.io/cre8/wallet/issuer-backend"],
"load": true,
"tags": ["latest"]
}
}
}
}
} You do not need to reference the webpack file anywhere, nx will use it automatically. |
@cre8 it was really helpful thanks |
Current Behavior
In my nx v17 I was able to configure the build target to modify the options like adding the swagger pluging for nestjs:
When I add this target to a nx v19 project, it will respect the plugin, but the serve command will not work anymore.
Expected Behavior
It would be nice to have more information how to update the correct build target or how to append the information for it.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: