google / google/wireit

command gets re-executed even with no change in input files

Open
#262 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.4k
Forks
128
Avg merge
4d 10h
Merged PRs (30d)
4

Description

This might be me misunderstanding the nuances in the config. However, the command gets called every time I run `npm run buildDeps`

```json
"buildServer": {
"command": "tsc --pretty --project server/tsconfig.server.json",
"clean": "if-file-deleted",
"files": [ "./server/**/*.mts", "./server/**/*.html", "./server/tsconfig.server.json" ],
"output": [ "./dist/server" ]
},
"sharedSock": {
"command": "ng build --configuration production sharedSock",
"clean": true,
"files": [ "./projects/shared-sock/src/lib/**/*.ts" ],
"output": [ "./dist/shared-sock" ]
},
"buildDeps": {
"dependencies": [ "buildServer", "sharedSock" ]
},
```

I tried quite a number of things, but the command for the `"sharedSock"` dependency gets executed every time.
It might be me misunderstanding the setup, but it should skip the command if there is no change in the `files` of the `"sharedSock"` right?
I looked at #238 which pointed me to #245, but I seem to already have taken those steps?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.