rulesync 0.13.0 → 0.14.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/README.ja.md +3 -3
- package/README.md +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -219,7 +219,7 @@ npx rulesync gitignore
|
|
|
219
219
|
root: true | false # 必須: ルールレベル (概要の場合true、詳細の場合false)
|
|
220
220
|
targets: ["*"] # 必須: ターゲットツール (* = すべて、または特定のツール)
|
|
221
221
|
description: "簡潔な説明" # 必須: ルールの説明
|
|
222
|
-
globs:
|
|
222
|
+
globs: "**/*.ts,**/*.js" # 必須: ファイルパターン (カンマ区切りまたは空文字列)
|
|
223
223
|
---
|
|
224
224
|
```
|
|
225
225
|
|
|
@@ -231,7 +231,7 @@ globs: ["**/*.ts", "**/*.js"] # 必須: ファイルパターン (空の配
|
|
|
231
231
|
root: true
|
|
232
232
|
targets: ["*"]
|
|
233
233
|
description: "プロジェクト概要と開発思想"
|
|
234
|
-
globs:
|
|
234
|
+
globs: "src/**/*.ts"
|
|
235
235
|
---
|
|
236
236
|
|
|
237
237
|
# プロジェクト開発ガイドライン
|
|
@@ -245,7 +245,7 @@ globs: ["src/**/*.ts"]
|
|
|
245
245
|
root: false
|
|
246
246
|
targets: ["copilot", "cursor", "roo"]
|
|
247
247
|
description: "TypeScriptコーディング標準"
|
|
248
|
-
globs:
|
|
248
|
+
globs: "**/*.ts,**/*.tsx"
|
|
249
249
|
---
|
|
250
250
|
|
|
251
251
|
# TypeScriptコーディングルール
|
package/README.md
CHANGED
|
@@ -219,7 +219,7 @@ Each rule file must include frontmatter with the following fields:
|
|
|
219
219
|
root: true | false # Required: Rule level (true for overview, false for details)
|
|
220
220
|
targets: ["*"] # Required: Target tools (* = all, or specific tools)
|
|
221
221
|
description: "Brief description" # Required: Rule description
|
|
222
|
-
globs:
|
|
222
|
+
globs: "**/*.ts,**/*.js" # Required: File patterns (comma-separated or empty string)
|
|
223
223
|
---
|
|
224
224
|
```
|
|
225
225
|
|
|
@@ -231,7 +231,7 @@ globs: ["**/*.ts", "**/*.js"] # Required: File patterns (can be empty array)
|
|
|
231
231
|
root: true
|
|
232
232
|
targets: ["*"]
|
|
233
233
|
description: "Project overview and development philosophy"
|
|
234
|
-
globs:
|
|
234
|
+
globs: "src/**/*.ts"
|
|
235
235
|
---
|
|
236
236
|
|
|
237
237
|
# Project Development Guidelines
|
|
@@ -245,7 +245,7 @@ This project follows TypeScript-first development with clean architecture princi
|
|
|
245
245
|
root: false
|
|
246
246
|
targets: ["copilot", "cursor", "roo"]
|
|
247
247
|
description: "TypeScript coding standards"
|
|
248
|
-
globs:
|
|
248
|
+
globs: "**/*.ts,**/*.tsx"
|
|
249
249
|
---
|
|
250
250
|
|
|
251
251
|
# TypeScript Coding Rules
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,7 @@ function generateCursorMarkdown(rule) {
|
|
|
214
214
|
lines.push("---");
|
|
215
215
|
lines.push(`description: ${rule.frontmatter.description}`);
|
|
216
216
|
if (rule.frontmatter.globs.length > 0) {
|
|
217
|
-
lines.push(`globs:
|
|
217
|
+
lines.push(`globs: ${rule.frontmatter.globs.join(",")}`);
|
|
218
218
|
}
|
|
219
219
|
let ruletype;
|
|
220
220
|
if (rule.frontmatter.root === true) {
|
package/dist/index.mjs
CHANGED
|
@@ -191,7 +191,7 @@ function generateCursorMarkdown(rule) {
|
|
|
191
191
|
lines.push("---");
|
|
192
192
|
lines.push(`description: ${rule.frontmatter.description}`);
|
|
193
193
|
if (rule.frontmatter.globs.length > 0) {
|
|
194
|
-
lines.push(`globs:
|
|
194
|
+
lines.push(`globs: ${rule.frontmatter.globs.join(",")}`);
|
|
195
195
|
}
|
|
196
196
|
let ruletype;
|
|
197
197
|
if (rule.frontmatter.root === true) {
|
package/package.json
CHANGED