Skip to content

The open alternative to Salesforce, designed for AI.

Remove redundant self-build from Nx targets that compile on the fly (#17851)

Félix Malfait15fc85021200
diff --git a/packages/twenty-server/project.json b/packages/twenty-server/project.json
index 25159960a76..c26ea7eba1e 100644
--- a/packages/twenty-server/project.json
+++ b/packages/twenty-server/project.json
@@ -47,7 +47,7 @@
"start": {
"executor": "nx:run-commands",
"cache": false,
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"options": {
"cwd": "packages/twenty-server",
"command": "NODE_ENV=development nest start --watch"
@@ -70,10 +70,10 @@
},
"start:debug": {
"executor": "nx:run-commands",
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"options": {
"cwd": "packages/twenty-server",
- "command": "nx start --debug"
+ "command": "NODE_ENV=development nest start --watch --debug"
}
},
"reset:env": {
@@ -125,11 +125,11 @@
"cwd": "packages/twenty-server",
"command": "ts-node --transpile-only -P tsconfig.json ../../node_modules/typeorm/cli.js"
},
- "dependsOn": ["build"]
+ "dependsOn": ["^build"]
},
"ts-node": {
"executor": "nx:run-commands",
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"options": {
"cwd": "packages/twenty-server",
"command": "ts-node"
@@ -181,7 +181,7 @@
},
"database:migrate": {
"executor": "nx:run-commands",
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"options": {
"cwd": "packages/twenty-server",
"commands": [
@@ -198,7 +198,7 @@
},
"database:migrate:revert": {
"executor": "nx:run-commands",
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"options": {
"cwd": "packages/twenty-server",
"commands": [