wile 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +7 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7878,6 +7878,13 @@ var resolveAgentDir = () => {
|
|
|
7878
7878
|
if (override && existsSync3(override)) {
|
|
7879
7879
|
return override;
|
|
7880
7880
|
}
|
|
7881
|
+
const initCwd = process.env.INIT_CWD;
|
|
7882
|
+
if (initCwd) {
|
|
7883
|
+
const initAgentDir = join3(initCwd, "packages", "agent");
|
|
7884
|
+
if (existsSync3(initAgentDir)) {
|
|
7885
|
+
return initAgentDir;
|
|
7886
|
+
}
|
|
7887
|
+
}
|
|
7881
7888
|
const cwdAgentDir = join3(process.cwd(), "packages", "agent");
|
|
7882
7889
|
if (existsSync3(cwdAgentDir)) {
|
|
7883
7890
|
return cwdAgentDir;
|