@db-ux/agent-cli 4.5.2-agent-cli-pnpm-compatibility-ebd2994 → 4.5.3
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/CHANGELOG.md +10 -1
- package/README.md +2 -1
- package/build/index.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# @db-ux/agent-cli
|
|
2
2
|
|
|
3
|
-
## 4.5.
|
|
3
|
+
## 4.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(agent-cli): add pnpm compatibility by following symlinks in `node_modules` - [see commit 28606fd](https://github.com/db-ux-design-system/core-web/commit/28606fdae48ca991cbe341c6a7ea5e0c420b3a46)
|
|
8
|
+
|
|
9
|
+
## 4.5.2
|
|
4
10
|
|
|
5
11
|
_version bump_
|
|
6
12
|
|
|
13
|
+
## 4.5.1
|
|
14
|
+
|
|
15
|
+
_version bump_
|
|
7
16
|
|
|
8
17
|
## 4.5.0
|
|
9
18
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,8 @@ npx @db-ux/agent-cli
|
|
|
20
20
|
Or with pnpm:
|
|
21
21
|
|
|
22
22
|
```shell
|
|
23
|
-
pnpm
|
|
23
|
+
pnpm i @db-ux/agent-cli --save-dev
|
|
24
|
+
pnpm exec agent-cli
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
The DB UX Design System documentation will be added to (or replaced in subsequent runs, e.g. after a DB UX Design System update) in the file `.github/copilot-instructions.md` (if this file does not yet exist in your codebase, it will be created).
|
package/build/index.js
CHANGED
|
@@ -41,7 +41,8 @@ function findAllNodeModulesDirectories(directory, found = /* @__PURE__ */ new Se
|
|
|
41
41
|
var getInstructions = (rootPath) => {
|
|
42
42
|
const nodeModulesDirectories = findAllNodeModulesDirectories(rootPath);
|
|
43
43
|
if (nodeModulesDirectories.size === 0) {
|
|
44
|
-
|
|
44
|
+
console.error("No node_modules folders found in", rootPath);
|
|
45
|
+
return "";
|
|
45
46
|
}
|
|
46
47
|
let copilotInstructionsContent = "";
|
|
47
48
|
for (const nodeModulesPath of nodeModulesDirectories) {
|
|
@@ -65,7 +66,10 @@ var getInstructions = (rootPath) => {
|
|
|
65
66
|
if (!isDirectory && stats.isFile()) {
|
|
66
67
|
const content = fs.readFileSync(packagePath, "utf8").trim();
|
|
67
68
|
if (!content.includes("\n")) {
|
|
68
|
-
const targetPath = path.resolve(
|
|
69
|
+
const targetPath = path.resolve(
|
|
70
|
+
path.dirname(packagePath),
|
|
71
|
+
content
|
|
72
|
+
);
|
|
69
73
|
if (fs.existsSync(targetPath) && fs.statSync(targetPath).isDirectory()) {
|
|
70
74
|
isDirectory = true;
|
|
71
75
|
packagePath = targetPath;
|