rulesync 3.1.0 → 3.1.1
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/index.cjs +9 -2
- package/dist/index.js +9 -2
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -122,6 +122,12 @@ async function readFileContent(filepath) {
|
|
|
122
122
|
logger.debug(`Reading file: ${filepath}`);
|
|
123
123
|
return (0, import_promises.readFile)(filepath, "utf-8");
|
|
124
124
|
}
|
|
125
|
+
function addTrailingNewline(content) {
|
|
126
|
+
if (!content) {
|
|
127
|
+
return "\n";
|
|
128
|
+
}
|
|
129
|
+
return content.trimEnd() + "\n";
|
|
130
|
+
}
|
|
125
131
|
async function writeFileContent(filepath, content) {
|
|
126
132
|
logger.debug(`Writing file: ${filepath}`);
|
|
127
133
|
await ensureDir((0, import_node_path.dirname)(filepath));
|
|
@@ -199,7 +205,8 @@ var FeatureProcessor = class {
|
|
|
199
205
|
*/
|
|
200
206
|
async writeAiFiles(aiFiles) {
|
|
201
207
|
for (const aiFile of aiFiles) {
|
|
202
|
-
|
|
208
|
+
const contentWithNewline = addTrailingNewline(aiFile.getFileContent());
|
|
209
|
+
await writeFileContent(aiFile.getFilePath(), contentWithNewline);
|
|
203
210
|
}
|
|
204
211
|
return aiFiles.length;
|
|
205
212
|
}
|
|
@@ -6789,7 +6796,7 @@ globs: ["**/*"]
|
|
|
6789
6796
|
}
|
|
6790
6797
|
|
|
6791
6798
|
// src/cli/index.ts
|
|
6792
|
-
var getVersion = () => "3.1.
|
|
6799
|
+
var getVersion = () => "3.1.1";
|
|
6793
6800
|
var main = async () => {
|
|
6794
6801
|
const program = new import_commander.Command();
|
|
6795
6802
|
const version = getVersion();
|
package/dist/index.js
CHANGED
|
@@ -99,6 +99,12 @@ async function readFileContent(filepath) {
|
|
|
99
99
|
logger.debug(`Reading file: ${filepath}`);
|
|
100
100
|
return readFile(filepath, "utf-8");
|
|
101
101
|
}
|
|
102
|
+
function addTrailingNewline(content) {
|
|
103
|
+
if (!content) {
|
|
104
|
+
return "\n";
|
|
105
|
+
}
|
|
106
|
+
return content.trimEnd() + "\n";
|
|
107
|
+
}
|
|
102
108
|
async function writeFileContent(filepath, content) {
|
|
103
109
|
logger.debug(`Writing file: ${filepath}`);
|
|
104
110
|
await ensureDir(dirname(filepath));
|
|
@@ -176,7 +182,8 @@ var FeatureProcessor = class {
|
|
|
176
182
|
*/
|
|
177
183
|
async writeAiFiles(aiFiles) {
|
|
178
184
|
for (const aiFile of aiFiles) {
|
|
179
|
-
|
|
185
|
+
const contentWithNewline = addTrailingNewline(aiFile.getFileContent());
|
|
186
|
+
await writeFileContent(aiFile.getFilePath(), contentWithNewline);
|
|
180
187
|
}
|
|
181
188
|
return aiFiles.length;
|
|
182
189
|
}
|
|
@@ -6766,7 +6773,7 @@ globs: ["**/*"]
|
|
|
6766
6773
|
}
|
|
6767
6774
|
|
|
6768
6775
|
// src/cli/index.ts
|
|
6769
|
-
var getVersion = () => "3.1.
|
|
6776
|
+
var getVersion = () => "3.1.1";
|
|
6770
6777
|
var main = async () => {
|
|
6771
6778
|
const program = new Command();
|
|
6772
6779
|
const version = getVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"commander": "14.0.1",
|
|
42
42
|
"consola": "3.4.2",
|
|
43
43
|
"es-toolkit": "1.39.10",
|
|
44
|
-
"fast-xml-parser": "5.
|
|
44
|
+
"fast-xml-parser": "5.3.0",
|
|
45
45
|
"gray-matter": "4.0.3",
|
|
46
46
|
"js-yaml": "4.1.0",
|
|
47
47
|
"micromatch": "4.0.8",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"zod": "4.1.11"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@anthropic-ai/claude-agent-sdk": "0.1.
|
|
53
|
-
"@biomejs/biome": "2.2.
|
|
54
|
-
"@eslint/js": "9.
|
|
52
|
+
"@anthropic-ai/claude-agent-sdk": "0.1.8",
|
|
53
|
+
"@biomejs/biome": "2.2.5",
|
|
54
|
+
"@eslint/js": "9.37.0",
|
|
55
55
|
"@secretlint/secretlint-rule-preset-recommend": "11.2.4",
|
|
56
56
|
"@tsconfig/node24": "24.0.1",
|
|
57
57
|
"@types/js-yaml": "4.0.9",
|
|
58
58
|
"@types/micromatch": "4.0.9",
|
|
59
59
|
"@types/node": "24.6.2",
|
|
60
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
60
|
+
"@typescript/native-preview": "7.0.0-dev.20251004.1",
|
|
61
61
|
"@vitest/coverage-v8": "3.2.4",
|
|
62
62
|
"cspell": "9.2.1",
|
|
63
|
-
"eslint": "9.
|
|
63
|
+
"eslint": "9.37.0",
|
|
64
64
|
"eslint-plugin-import": "2.32.0",
|
|
65
65
|
"eslint-plugin-no-type-assertion": "1.3.0",
|
|
66
66
|
"eslint-plugin-oxlint": "1.19.0",
|