declapract-typescript-ehmpathy 0.47.35 → 0.47.37
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.
|
@@ -101,26 +101,26 @@ const ensureSection = (
|
|
|
101
101
|
): string => {
|
|
102
102
|
const lines = content.split('\n');
|
|
103
103
|
|
|
104
|
+
// find which entries are absent from the content
|
|
105
|
+
const entriesAbsent = section.entries.latest.filter(
|
|
106
|
+
(entry) => !content.includes(entry),
|
|
107
|
+
);
|
|
108
|
+
|
|
104
109
|
// find the header line index
|
|
105
110
|
const headerIndex = lines.findIndex(
|
|
106
111
|
(line) => line.trim() === section.header.latest,
|
|
107
112
|
);
|
|
108
113
|
|
|
109
|
-
// if header not found, append
|
|
114
|
+
// if header not found, append header and only absent entries
|
|
110
115
|
if (headerIndex === -1) {
|
|
111
116
|
return (
|
|
112
117
|
content.trimEnd() +
|
|
113
118
|
'\n\n' +
|
|
114
|
-
[section.header.latest, ...
|
|
119
|
+
[section.header.latest, ...entriesAbsent].join('\n') +
|
|
115
120
|
'\n'
|
|
116
121
|
);
|
|
117
122
|
}
|
|
118
123
|
|
|
119
|
-
// find which entries are absent
|
|
120
|
-
const entriesAbsent = section.entries.latest.filter(
|
|
121
|
-
(entry) => !content.includes(entry),
|
|
122
|
-
);
|
|
123
|
-
|
|
124
124
|
// if all entries present, no fix required
|
|
125
125
|
if (entriesAbsent.length === 0) return content;
|
|
126
126
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devDependencies": {
|
|
3
|
-
"rhachet": "@declapract{check.minVersion('1.
|
|
4
|
-
"rhachet-
|
|
5
|
-
"rhachet-
|
|
6
|
-
"rhachet-roles-
|
|
3
|
+
"rhachet": "@declapract{check.minVersion('1.28.2')}",
|
|
4
|
+
"rhachet-brains-anthropic": "@declapract{check.minVersion('0.3.0')}",
|
|
5
|
+
"rhachet-brains-xai": "@declapract{check.minVersion('0.2.0')}",
|
|
6
|
+
"rhachet-roles-bhrain": "@declapract{check.minVersion('0.7.3')}",
|
|
7
|
+
"rhachet-roles-bhuild": "@declapract{check.minVersion('0.7.0')}",
|
|
8
|
+
"rhachet-roles-ehmpathy": "@declapract{check.minVersion('1.17.34')}"
|
|
7
9
|
},
|
|
8
10
|
"scripts": {
|
|
9
|
-
"prepare:rhachet": "rhachet init --roles behaver mechanic reviewer"
|
|
11
|
+
"prepare:rhachet": "rhachet init --hooks --roles behaver mechanic reviewer",
|
|
12
|
+
"upgrade:rhachet": "rhachet upgrade"
|
|
10
13
|
}
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.47.
|
|
5
|
+
"version": "0.47.37",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"preversion": "npm run prepush",
|
|
44
44
|
"postversion": "git push origin HEAD --tags --no-verify",
|
|
45
45
|
"prepare:husky": "husky install && chmod ug+x .husky/*",
|
|
46
|
-
"prepare:rhachet": "npx rhachet init --roles behaver mechanic reviewer",
|
|
46
|
+
"prepare:rhachet": "npx rhachet init --hooks --roles behaver mechanic reviewer",
|
|
47
47
|
"prepare": "if [ -e .git ] && [ -z $CI ]; then npm run prepare:husky && npm run prepare:rhachet; fi"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
@@ -74,10 +74,11 @@
|
|
|
74
74
|
"esbuild-register": "3.6.0",
|
|
75
75
|
"husky": "8.0.3",
|
|
76
76
|
"jest": "30.2.0",
|
|
77
|
-
"rhachet": "1.
|
|
78
|
-
"rhachet-
|
|
79
|
-
"rhachet-roles-
|
|
80
|
-
"rhachet-roles-
|
|
77
|
+
"rhachet": "1.28.2",
|
|
78
|
+
"rhachet-brains-anthropic": "0.3.0",
|
|
79
|
+
"rhachet-roles-bhrain": "0.7.1",
|
|
80
|
+
"rhachet-roles-bhuild": "0.7.0",
|
|
81
|
+
"rhachet-roles-ehmpathy": "1.17.34",
|
|
81
82
|
"tsc-alias": "1.8.10",
|
|
82
83
|
"tsx": "4.20.6",
|
|
83
84
|
"type-fns": "0.8.1",
|