projectops 4.12.1 → 4.12.2
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.md +1 -1
- package/package.json +1 -1
- package/src/core/ide/adapters/cursor.js +11 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -8,6 +8,11 @@ import { migrateConfigRoot, isLegacyVersion } from "../legacy.js";
|
|
|
8
8
|
const LEGACY_NAMES = ["cassiiopeia", "suh-devops-template"];
|
|
9
9
|
const LEGACY_MAX_VERSION = "4.2.4";
|
|
10
10
|
|
|
11
|
+
// 스킬을 쓰는 사람에게 필요 없는 것. projectops 자신을 검사하는 테스트다.
|
|
12
|
+
// skills/ 는 통째로 복사되므로 여기서 걸러내지 않으면 사용자 홈에 그대로 쌓인다.
|
|
13
|
+
const SKIP_IN_COPY = new Set(["conftest.py", "pytest.ini"]);
|
|
14
|
+
const TEST_PATH = /(^|[\\/])(tests?|__pycache__)([\\/]|$)/;
|
|
15
|
+
|
|
11
16
|
function metaPath(io) { return join(io.home(), ".cursor/skills/cursor-skills-meta.json"); }
|
|
12
17
|
|
|
13
18
|
function detect(io) {
|
|
@@ -31,7 +36,12 @@ function apply(io, ctx = {}) {
|
|
|
31
36
|
try {
|
|
32
37
|
mkdirSync(dest, { recursive: true });
|
|
33
38
|
for (const e of readdirSync(src, { withFileTypes: true })) {
|
|
34
|
-
|
|
39
|
+
if (SKIP_IN_COPY.has(e.name)) continue;
|
|
40
|
+
cpSync(join(src, e.name), join(dest, e.name), {
|
|
41
|
+
recursive: true,
|
|
42
|
+
// 이 저장소 자기 코드를 검사하는 테스트는 남의 컴퓨터로 나갈 이유가 없다 (#591).
|
|
43
|
+
filter: (p) => !TEST_PATH.test(p),
|
|
44
|
+
});
|
|
35
45
|
}
|
|
36
46
|
writeMeta(io, dest, ctx.templateVersion);
|
|
37
47
|
io.log(` Cursor Skills 설치 완료 (${dest}/, v${ctx.templateVersion || "unknown"})`);
|