You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$PROJECT_TYPE"="js" ] && [ "$HAS_JS_CHANGES"="true" ];then
115
+
if [ "$HAS_JS_CHANGES"="true" ];then
161
116
MESSAGE="JS/TS files were changed in a recent commit. Use the codeflash:optimize skill WITHOUT ANY ARGUMENTS to to optimize the JavaScript/TypeScript code for performance. Use npx to execute codeflash"
If this fails, the project configuration is missing. Walk upward from the current working directory to the git repository root, looking for a `pyproject.toml`.
51
+
Find the `pyproject.toml` file closest to the file/files of concern (the file passed to codeflash --file or the files which changed in the diff). Confirm that a `[tool.codeflash]` section exists in the pyproject file found.
56
52
57
-
- If a`pyproject.toml` exists but lacks `[tool.codeflash]`, run **Configuration Discovery (Python)** below and append the section.
58
-
- If no `pyproject.toml` exists, run **Configuration Discovery (Python)** and create one at the git repository root.
53
+
- If the`pyproject.toml` file exists but lacks `[tool.codeflash]`, run **Configuration Discovery (Python)** below and append the section.
54
+
- If no `pyproject.toml` exists, run **Configuration Discovery (Python)**below and create one.
59
55
60
56
#### Configuration Discovery (Python)
61
57
@@ -86,11 +82,7 @@ After writing, confirm the configuration with the user before proceeding.
If this fails, the project configuration is missing. Walk upward from the current working directory to the git repository root, looking for a `package.json`.
85
+
Find the `package.json` file closest to the file/files of concern (the file passed to codeflash --file or the files which changed in the diff). Confirm that a `codeflash` key exists in the package.json file found.
94
86
95
87
- If a `package.json` exists but lacks the `codeflash` key, run **Configuration Discovery (Javascript/Typescript)** below and append the section.
96
88
- If no `package.json` exists, run **Configuration Discovery (Javascript/Typescript)** and create one at the git repository root.
0 commit comments