rulesync 0.11.0 → 0.12.0
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.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -357,7 +357,7 @@ function validateFrontmatter(data, filepath) {
|
|
|
357
357
|
if (!Array.isArray(obj.targets)) {
|
|
358
358
|
throw new Error(`Invalid targets in ${filepath}: must be an array`);
|
|
359
359
|
}
|
|
360
|
-
const validTargets = ["copilot", "cursor", "cline", "*"];
|
|
360
|
+
const validTargets = ["copilot", "cursor", "cline", "claude", "roo", "*"];
|
|
361
361
|
for (const target of obj.targets) {
|
|
362
362
|
if (typeof target !== "string" || !validTargets.includes(target)) {
|
|
363
363
|
throw new Error(
|
|
@@ -555,7 +555,7 @@ async function createSampleFiles(aiRulesDir) {
|
|
|
555
555
|
{
|
|
556
556
|
filename: "coding-rules.md",
|
|
557
557
|
content: `---
|
|
558
|
-
|
|
558
|
+
root: true
|
|
559
559
|
targets: ["*"]
|
|
560
560
|
description: "General coding standards and best practices"
|
|
561
561
|
globs: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
|
|
@@ -582,7 +582,7 @@ globs: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
|
|
|
582
582
|
{
|
|
583
583
|
filename: "naming-conventions.md",
|
|
584
584
|
content: `---
|
|
585
|
-
|
|
585
|
+
root: false
|
|
586
586
|
targets: ["*"]
|
|
587
587
|
description: "Naming conventions for variables, functions, and files"
|
|
588
588
|
globs: ["**/*.ts", "**/*.js"]
|
|
@@ -608,8 +608,8 @@ globs: ["**/*.ts", "**/*.js"]
|
|
|
608
608
|
{
|
|
609
609
|
filename: "architecture.md",
|
|
610
610
|
content: `---
|
|
611
|
-
|
|
612
|
-
targets: [copilot, cursor]
|
|
611
|
+
root: false
|
|
612
|
+
targets: ["copilot", "cursor"]
|
|
613
613
|
description: "Architectural patterns and project structure guidelines"
|
|
614
614
|
globs: ["src/**/*.ts"]
|
|
615
615
|
---
|
package/dist/index.mjs
CHANGED
|
@@ -334,7 +334,7 @@ function validateFrontmatter(data, filepath) {
|
|
|
334
334
|
if (!Array.isArray(obj.targets)) {
|
|
335
335
|
throw new Error(`Invalid targets in ${filepath}: must be an array`);
|
|
336
336
|
}
|
|
337
|
-
const validTargets = ["copilot", "cursor", "cline", "*"];
|
|
337
|
+
const validTargets = ["copilot", "cursor", "cline", "claude", "roo", "*"];
|
|
338
338
|
for (const target of obj.targets) {
|
|
339
339
|
if (typeof target !== "string" || !validTargets.includes(target)) {
|
|
340
340
|
throw new Error(
|
|
@@ -532,7 +532,7 @@ async function createSampleFiles(aiRulesDir) {
|
|
|
532
532
|
{
|
|
533
533
|
filename: "coding-rules.md",
|
|
534
534
|
content: `---
|
|
535
|
-
|
|
535
|
+
root: true
|
|
536
536
|
targets: ["*"]
|
|
537
537
|
description: "General coding standards and best practices"
|
|
538
538
|
globs: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
|
|
@@ -559,7 +559,7 @@ globs: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx"]
|
|
|
559
559
|
{
|
|
560
560
|
filename: "naming-conventions.md",
|
|
561
561
|
content: `---
|
|
562
|
-
|
|
562
|
+
root: false
|
|
563
563
|
targets: ["*"]
|
|
564
564
|
description: "Naming conventions for variables, functions, and files"
|
|
565
565
|
globs: ["**/*.ts", "**/*.js"]
|
|
@@ -585,8 +585,8 @@ globs: ["**/*.ts", "**/*.js"]
|
|
|
585
585
|
{
|
|
586
586
|
filename: "architecture.md",
|
|
587
587
|
content: `---
|
|
588
|
-
|
|
589
|
-
targets: [copilot, cursor]
|
|
588
|
+
root: false
|
|
589
|
+
targets: ["copilot", "cursor"]
|
|
590
590
|
description: "Architectural patterns and project structure guidelines"
|
|
591
591
|
globs: ["src/**/*.ts"]
|
|
592
592
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rulesync",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -60,9 +60,11 @@
|
|
|
60
60
|
"dev": "tsx src/cli/index.ts",
|
|
61
61
|
"build": "tsup src/cli/index.ts --format cjs,esm --dts --clean",
|
|
62
62
|
"lint": "biome lint src/",
|
|
63
|
+
"lint:fix": "biome lint --write src/",
|
|
63
64
|
"format": "biome format --write src/",
|
|
64
65
|
"format:check": "biome format src/",
|
|
65
66
|
"check": "biome check src/",
|
|
67
|
+
"check:fix": "biome check --write src/",
|
|
66
68
|
"secretlint": "secretlint \"**/*\"",
|
|
67
69
|
"test": "vitest",
|
|
68
70
|
"test:watch": "vitest --watch",
|